> 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 (http://ww
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 s
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 ph
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 expir
> 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
> 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
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
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 re
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 libr
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, do
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 g
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 the
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 (http://www.ph
> That's an unusual location for php.ini? It might be worth checking
> through phpinfo() that your installation is looking there and that it
> thinks file_uploads is on.
>
phpinfo agree that /usr/local/php/lib/php.ini is the ini file location,
and that file uploads are on.
I know that when i
> > > 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
> > > 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
> 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 additi
Hi all,
It appears when i try to upload a file in a form, and pass it to php, it
never arrives.
I'm doing a POST from a form, and i all but copied the example straight
from the php manual on file uploading.
But the $HTTP_POST_FILES[] array is never set, and is_uploaded_file always
returns fals
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 "";
print "\n";
pr
> $resolution = " LANGUAGE=\"JavaScript\">document.write(screen.width)";
>
> 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 g
> > 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
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 log
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 log
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 gr
24 matches
Mail list logo