[PHP] Execing problems

2002-02-07 Thread Jason Rennie
Hi all, I have a seperate perl script that I need to start running from a php script. The script does a fork into the backgroup and exits. when i do an exec(funky script stuff here); The page just hangs trying to load again, apparently after I call the exec. I've also tried exec(script

RE: [PHP] Execing problems

2002-02-07 Thread Jason Rennie
does using system() work? what about back-ticks? - `funky script stuff here`; I'll give it a go, i hadn't tried that Although I thought system would return the output. I was using exec because it didn't (oops I think I forgot to mention that.) Jason -- PHP General Mailing List

[PHP] Syntax high lighting

2002-02-04 Thread Jason Rennie
Hi all, A few months ago I saw a php class (?) for doing syntax high lighting of various programming languages. But I lost the link in a compter crash and now I cant find it again. does anybody know of a php script to do this sort of code highlighting similar to the show_source() function for

[PHP] Global Arrays ?

2001-12-20 Thread Jason Rennie
Hi all, I've got an array in the global scope called $g_months which oddly enough contains the names of the months. Now when I try to import this into a function as global $g_months; it doesn't work. When php prints out the array as an option box I just wind up with no options. Any ideas why

Re: [PHP] Global Arrays ?

2001-12-20 Thread Jason Rennie
Sounds quite odd - you may try an echo(serialize($g_months)) in the function and see what you get... It may be that the code generating the option box has problems - this way you make sure $g_months is empty indeed. Thanks for that. IT appears to be a problem with the function itself, as the

Re: [PHP] Global Arrays ?

2001-12-20 Thread Jason Rennie
It may be a bug in your PHP - walking an array with each probably sets some internal position marker which may be buggy for your very situation (global variable in local function - something like that). Thanks for that. I tried it with foreach and it works now. Jason -- Hofstadter's Law :

[PHP] Bookmarking pages

2001-12-20 Thread Jason Rennie
Hi all, again, I need to be able to have working bookmarkable pages in a system. The user has session ID's which have to time out, so when they do the user is kicked out of the system. But i've been asked to set it up so that after a user gets kicked to a login screen becasue they have an

[PHP] Quoting strings

2001-11-29 Thread Jason Rennie
Hi all, I have a fnction that needs to quote a strings in php to make them easy to stick into an mysql db. I need to do basically $msg, which is easy enough, but I would like to not quote strings that are already quoted and also escape any single or double quotes in the string. IS there a

[PHP] php 4.0.6 and imap support

2001-08-13 Thread Jason Rennie
Hi all, I tried to find an answer to this but nothing seemed to work. I need to build php 4.0.6 with imap support. I'm running redhat 7.1 and have build and installed the imap-2000-9 rpm's (including devel), php will build correctly but complains about an undefined symbol mxdriver. Has the

[PHP] Modssl php 4 fears

2001-07-23 Thread Jason Rennie
Hi again all, I recompiled apache with modssl and it works. (Well the snake oil inc cert's work ;) But i get a warning on apache load about, loading a standard module (php4.so) and how this may crash becasue it isn't compiled to work with EAPI. Please comile with -DEAPI Now the question is,

[PHP] HTTP Authentication and PHP

2001-07-22 Thread Jason Rennie
Hi all, I've been playing around with PHP authentication via HTTP. I'm using apache, and when i use the header('WWW_Auth...) headers i get a username/password dialog pop up (as i wanted). How do i get those values unset in the browser, so that i can get a user to re authenticate ? I need to

[PHP] mod_ssl php4

2001-07-21 Thread Jason Rennie
Hi all, Are there any known problems with php4, modssl and apache 1.3.20 ? I looked around but all of the information was dated. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] File Upload Abject Misery Solved

2001-07-20 Thread Jason Rennie
Thank you for everybody tried to help with the file uploading problem. I figured out the problem. Don't you hate it how the obvious mistakes are the hardest to find. The answer was, it is ENCTYPE not ENC_TYPE doh! Thanks again everybody Jason -- PHP General Mailing List

Re: [PHP] Re: More upload Problems

2001-07-19 Thread Jason Rennie
Check your php.ini file to see if file_uploads = on - it is often turned off for security. Yep it is turned on. And php.ini is in /usr/local/php/lib/php.ini Any other ideas ? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Re: More upload Problems

2001-07-19 Thread Jason Rennie
Check your php.ini file to see if file_uploads = on - it is often turned off for security. Yep it is turned on. And php.ini is in /usr/local/php/lib/php.ini Any other ideas ? Jason need to see some code... Here is the total chunk of code to date. It does currently

Re: [PHP] Re: More upload Problems

2001-07-19 Thread Jason Rennie
Check your php.ini file to see if file_uploads = on - it is often turned off for security. Yep it is turned on. And php.ini is in /usr/local/php/lib/php.ini Any other ideas ? Jason need to see some code... Here is the total chunk of code to date. It does currently

[PHP] File Upload Headaches

2001-07-18 Thread Jason Rennie
Hi all, Can anybody see what is wrong with this code ?? echo \$userfile = $userfile; echo $HTTP_POST_FILES['userfile']['tmp_name']; // now to provide an assignment submission box print P; print FORM

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Jason Rennie
$resolution = SCRIPT LANGUAGE=\JavaScript\document.write(screen.width)/SCRIPT; if ($resolution = '1024') { $resolution = 1024; } else { $resolution = 800; } echo $resolution; It always output 1024 At a guess becasue your mixing and matching languages. If you got

RE: [PHP] learning PHP from scratch

2001-07-16 Thread Jason Rennie
This approach worked pretty well with previous people i teached PHP, but they already had some sort of programming background. This guy hasn't. I find that he has some difficulties picking it up. And I have some difficulties to further help him. Is he having problems with PHP, or

[PHP] Session questions

2001-07-15 Thread Jason Rennie
Hi all, This might be a dumb question but can anybody tell me why on earth this doesn't work ? session_start() $logged_in = session_is_registered(auth); if($logged_in != true) { if(!(pam_auth($usernamelogin,$pass,$error))) { // send an error if it doens't login

[PHP] Session questions

2001-07-15 Thread Jason Rennie
Hi all, This might be a dumb question but can anybody tell me why on earth this doesn't work ? session_start() $logged_in = session_is_registered(auth); if($logged_in != true) { if(!(pam_auth($usernamelogin,$pass,$error))) { // send an error if it doens't login

[PHP] User Authentication

2001-07-03 Thread Jason Rennie
Hi all, Is there a way in php4 to authenticate a user against the system passwords? I have to write a php program to handle student assignment submissions. These users need to authenticated against an winnt PDC. Samba has a package called winbind that will let me map the pdc's usernames and