# LoadVars.load/.send

**URL:** <https://forum.kirupa.com/t/loadvars-load-send/7851>\
**Category:** flash\
**Created:** [November 9, 2002, 12:17am UTC](https://forum.kirupa.com/t/loadvars-load-send/7851 "2002-11-09T00:17:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dravos](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@Dravos](https://forum.kirupa.com/u/Dravos)\
**Post date:** [November 9, 2002, 12:17am UTC](https://forum.kirupa.com/t/loadvars-load-send/7851/1 "2002-11-09T00:17:31Z")

</div>

I followed kirupas tute and it works fine but is there a way i can access the data using variables rather than dynamic text fields??

here is my code

```php

myVars=new LoadVars();
myVars.load("mytext.txt");
myVars.onLoad=function()
{myText.text=this.textual;
trace(myVars.toString());

```

trace(this.textual);}

why can i not do:

trace(this.textual);

??

and when i do send it doesnt write a file??

PLease help If yOu kNoW 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2002, 2:07am UTC](https://forum.kirupa.com/t/loadvars-load-send/7851/2 "2002-11-09T02:07:16Z")

</div>

OK load works now

```php
myVars=new LoadVars();
myVars.load("mytext.txt");
myVars.onLoad=function()
{
	myText.text=this.textual;
	var message=myVars.textual;
	trace(message);
	message="nope";
	myVars.textual=message;
	myVars.send("mytext.txt");
}

```

Does send not send the data to the file, is there a way i can write the updated value back to a txt file?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2002, 2:54am UTC](https://forum.kirupa.com/t/loadvars-load-send/7851/3 "2002-11-09T02:54:06Z")

</div>

ok so i need to get php,mysql and apache, where did you all get those from??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2002, 10:39am UTC](https://forum.kirupa.com/t/loadvars-load-send/7851/4 "2002-11-09T10:39:30Z")

</div>

[http://www.php.net](http://www.php.net)  
[http://www.mysql.com](http://www.mysql.com)

> **[Apache - Apache Digital Corporation](http://www.apache.com)**
>
> The best Apache web server resource for helpful tips, advice, and configuration. Get help with configuring the Apache server for your use.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2002, 10:44am UTC](https://forum.kirupa.com/t/loadvars-load-send/7851/5 "2002-11-09T10:44:19Z")

</div>

thanks , have u installed these??  
im running windows xp  
apache installled fine  
php has as well but said i need to configure the httpd.conf file myself and add these three lines

```php

 LoadModule php4_module c:/php/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php

```

but when i add them the server dont run anymore

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2002, 10:15pm UTC](https://forum.kirupa.com/t/loadvars-load-send/7851/6 "2002-11-09T22:15:04Z")

</div>

ScriptAlias /php/ “c:/php/”  
AddType application/x-httpd-php .php .phtml  
Action application/x-httpd-php “/php/php.exe”  
LoadModule php4\_module c:/php/sapi/php4apache.dll  
AddType application/x-httpd-php-source .phps

these is the lines i added to my httpd.conf, i am running windows xp too. but let me say something, friday i was in the job, and i was working with a pc with win98, a new pc, and i downloaded the latest versions of both apache and php. and the message was the same that you saw: problems loading php4apache.dll, it started to run fine when i executed the php.exe in the c:\php folder, after that all became just fine. Try to do this, just one more thing, apache too i needed to start, but in the start menu in windows, both apache and php had a little dos window that tells they are running.

i don’t now if i was strainght, but, try to do this, and if it didn’t work, tell me then i’ll see more things to help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 9:33am UTC](https://forum.kirupa.com/t/loadvars-load-send/7851/7 "2002-11-11T09:33:38Z")

</div>

PHP havent written anything to handle apache 2 as far as i can tell so i have downloaded the latest apache 1 and now it all seems to run fine

Thanx for the help
