[PHP] Naming a variable with a variable

2003-06-17 Thread Antti
Ho can I create (name) a variable with other variables value? If $foo = "bar"; then the variable I want to create is $bar. How do I do this? -antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Test tables existance

2003-03-30 Thread Antti
How do I test if a mysql table exists or not? Is there a function for this? I didn't find a good one. -antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Directory size

2003-02-02 Thread Antti
How do I get the directory size? Suppose there is a function for this. antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unable to upload multiple files

2003-02-01 Thread Antti
You don't even have a "file" form element, or an element named "userfile" so your FOR loop will never run... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ Yes I do. I just forgot to put it

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
the proglem. After all these changes it still doesn't work =(... antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
Marek Kilimajer wrote: Show us the code Antti wrote: 1lt John W. Holmes wrote: Ok now I am able to send the request. I set the post_max_size into 50M and now when the request is sent the whole apache goes down giving: "The document containd no data" everytime I send a reques

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
1lt John W. Holmes wrote: Ok now I am able to send the request. I set the post_max_size into 50M and now when the request is sent the whole apache goes down giving: "The document containd no data" everytime I send a request. I tried also 10M but same happens. What the h**l is this? Do you have

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
1lt John W. Holmes wrote: Ok now I am able to send the request. I set the post_max_size into 50M and now when the request is sent the whole apache goes down giving: "The document containd no data" everytime I send a request. I tried also 10M but same happens. What the h**l is this? Do you have

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
Marek Kilimajer wrote: check max_post_size in php.ini Antti wrote: When I push the submit button it starts to send the request to my server and uploads a file, but if I upload more than one at a time it doesn't even start to upload them. My upload max should be like 50M in php.ini. Wh

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
12:03 AM, Antti ([EMAIL PROTECTED]) wrote: When I push the submit button it starts to send the request to my server and uploads a file, but if I upload more than one at a time it doesn't even start to upload them. My upload max should be like 50M in php.ini. What is the problem. antti

[PHP] Unable to upload multiple files

2003-01-31 Thread Antti
When I push the submit button it starts to send the request to my server and uploads a file, but if I upload more than one at a time it doesn't even start to upload them. My upload max should be like 50M in php.ini. What is the problem. antti -- PHP General Mailing List (http://www.ph

[PHP] Send commands to a shell program

2003-01-30 Thread Antti
I want to for example give commands to mpg321 when it is executed with the -R option (remote control mode). Is this possible with exec() or other execute php functions. What I mean is to execute commands while being in a shell program. Hope you got it! antti -- PHP General Mailing List (http

[PHP] Upload multiple files

2003-01-18 Thread Antti
7;$value3')"; mysql_query($query) or die ("Couldn't make query!"); print "File Upload and rename succesful!"; } else { print "File Upload failed!"; } } antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session variables

2002-12-18 Thread Antti
7;); session_unregister('variable') ?> and into: session_start(); $_SESSION['variable'] = 'foo'; $_SESSION['variable'] = 'bah'; unset($_SESSION['variable']); ?> MUCH cleaner to work with :) Justin on 17/12/02 10:35 PM, Antti ([E

Re: [PHP] session variables

2002-12-18 Thread Antti
7;); session_unregister('variable') ?> and into: session_start(); $_SESSION['variable'] = 'foo'; $_SESSION['variable'] = 'bah'; unset($_SESSION['variable']); ?> MUCH cleaner to work with :) Justin on 17/12/02 10:35 PM, Antti ([E

[PHP] session variables

2002-12-17 Thread Antti
How can I change the values of session variables (session_register('variable');) in a session. Do I just unset($variable); and do session_register() again and give it a new value. I tried this and it seems that it doesn't work. Antti -- PHP General Mailing List (http://w

Re: [PHP] take text before '-' and after it

2002-12-12 Thread Antti
$array = explode("-",$song); ---John Holmes... Ok, I got this. But still I don't know how to read the files from a directory and put them into an array so I can explode them. antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] take text before '-' and after it

2002-12-12 Thread Antti
[EMAIL PROTECTED] wrote: Wouldn't it be simpler to just remove the '-'? $var = str_replace("-","",$var); Ed On Thu, 12 Dec 2002, Antti wrote: How can I take some text before the mark - and after it and put them for example in array. The purpose of thi

[PHP] take text before '-' and after it

2002-12-12 Thread Antti
How can I take some text before the mark - and after it and put them for example in array. The purpose of this is to read trough mp3 files which are in the form of artist - song.mp3 and put them into a text file so I can put them into mysql db. antti -- PHP General Mailing List (http

[PHP] Count lines from php files

2002-12-12 Thread Antti
How can I count how many code lines I have written? I have many php files in one directory. I'm using linux.Do you know any non-php way to count the lines. thanks, antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Add lines to a text file

2002-12-11 Thread Antti
Sean Burlington wrote: Antti wrote: How can I add lines to a text file? I didn't find any function for this. Thanks, antti. just open it in the right mode if you just need to add to the end of the file without doing anything else with it first $fp = fopen ("/home/rasmus/fil

[PHP] Add lines to a text file

2002-12-11 Thread Antti
How can I add lines to a text file? I didn't find any function for this. Thanks, antti. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apostrophe checks

2001-04-09 Thread Antti Boman
> Ive got a textarea control on a form where a user will enter info, i > want to enter this info into an interbase db,ive limited the space to > 200 characters in the text area [snip] Also remember that you must never trust what you get from the browser. Make the script check out that the input i