PDA

View Full Version : LoadVars.load/.send



Dravos
November 8th, 2002, 07:17 PM
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


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 :P

Dravos
November 8th, 2002, 09:07 PM
OK load works now


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?

Dravos
November 8th, 2002, 09:54 PM
ok so i need to get php,mysql and apache, where did you all get those from??

h88
November 9th, 2002, 05:39 AM
http://www.php.net
http://www.mysql.com
http://www.apache.com

Dravos
November 9th, 2002, 05:44 AM
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


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

richie
November 9th, 2002, 05:15 PM
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.

Dravos
November 11th, 2002, 04:33 AM
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