[PHP] WinXP+Apache2+php4+php5=almost true

2003-11-17 Thread Øystein Håland
I had no problem installing php4 as sapi module and php5 as cgi executeable. The server starts with no error messages. BUT, when I try opening a file (phpinfo.php5 with content the server return a 500 Internal Server Error. Have the following lines added to httpd.conf LoadModule php4_module "D:/p

[PHP] WinXP+Apache2+php4+php5=almost true

2003-11-17 Thread Øystein Håland
I had no problem installing php4 as sapi module and php5 as cgi executeable. The server starts with no error messages. BUT, when I try opening a file (phpinfo.php5 with content the server return a 500 Internal Server Error. Have the following lines added to httpd.conf LoadModule php4_module "D:/p

[PHP] Re: What's best, using a temp-file or a temp-table

2003-06-26 Thread Øystein Håland
) == true) $separator = "\t"; // om texten är > > if(isset($_POST['users']) > { > $_SESSION['temp_users'] = $_POST['users']; > } > if (ereg("\t", $_SESSION['temp_users'][0]) == true) $separator = "\t"; > ...

[PHP] Oops, sessions. I need to study the subject

2003-06-26 Thread Øystein Håland
> if(isset($_POST['users']) > { > $_SESSION['temp_users'] = $_POST['users']; > } > if (ereg("\t", $_SESSION['temp_users'][0]) == true) $separator = "\t"; > ...etc > > hope it helps > Pete > Will take a look at function.serialize too. Thank you guys -- PHP General Mailing List (http://www.ph

[PHP] What's best, using a temp-file or a temp-table

2003-06-26 Thread Øystein Håland
I want to give the visitor a possibility to create plenty of new user accounts by letting the him paste the userinfo from a tab-, comma- or semicolonseparated file to a textarea (form.php). Then some checking needs to be done (check_users.php) before the final result is written to the db (add_users

Re: [PHP] from a textfile/textarea to a mysql INSERT

2003-06-22 Thread Øystein Håland
"John W. Holmes" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Øystein Håland wrote: > >>From Excel you can save a table as a tab separated txt-file. I want to take > > this and execute INSERT queries (by uploading the file or by copying the &g

[PHP] from a textfile/textarea to a mysql INSERT

2003-06-21 Thread Øystein Håland
>From Excel you can save a table as a tab separated txt-file. I want to take this and execute INSERT queries (by uploading the file or by copying the content into a textarea). Anyone who has a script to do this? My platform is Windows, but the script will be used on a Linux web server. -- PHP G

[PHP] Re: PATH_TRANSLATED

2003-06-08 Thread Øystein Håland
em occure i my update script: if (date("M",filemtime($_SERVER['PATH_TRANSLATED']))=="Jan") {..} ) > "ØYstein HåLand" <[EMAIL PROTECTED]> skrev i meddelandet > news:[EMAIL PROTECTED] > > Is there some way to retrieve the phpvariabl

Re: [PHP] PATH_TRANSLATED

2003-06-07 Thread Øystein Håland
That gives the following error: Notice: Undefined index: PATH_TRANSLATED and the reason is the variable isn't set by Apache/PHP "Matt" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > > - Original Message ----- > From: "Øystein Håland

[PHP] PATH_TRANSLATED

2003-06-07 Thread Øystein Håland
Is there some way to retrieve the phpvariable PATH_TRANSLATED on my local win2k+Apache2+php4.3.2 box? Using phpinfo() does not show PATH_TRANSLATED -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Browser detection script (css)

2003-06-06 Thread Øystein Håland
HTTP_USER_AGENT"], 'Gecko')) > { > // ... set gecko css > $css='main.gecko.css'; > } > ?> > > > Some title > > > > > . > . > . > "ØYstein HåLand" <[EMAIL PROTECTED]> pí¹e v diskusním pø

Re: [PHP] Re: Migration once again

2003-06-05 Thread Øystein Håland
I'm sorry Dan, but it don.t make any difference. Here's almost the complete code: "; if (ereg("/math", $_SERVER['PHP_SELF']) == true) { echo " some javascript here "; } else if (ereg("/prov/", $_SERVER['PHP_SELF']) == true) { echo " some more javascript here "; } echo "