Re: [PHP] core files

2005-09-20 Thread Jochem Maas


... I hope you have a sense of humor Jon...

Jon wrote:

I am trying to copy the files needed to run a php commandline script so that
I can send them to a different computer and run as a scheduled task.  I do
not know what I am missing but for some reason my file commands do not seem
to be working.  fopen does not work and so fwrite does not work either.  I


what does not work? what is the error?


am on a windows machine.  My script runs from my core version and it runs on


whats a 'core' version? is it a dance remix?


a different computer with an xampplite install but for some reason I have
not found the file that I am missing. Any help would be appreciated.


why do you think you are missing a file? (I think I'm 'missing' a Volvo X90,
could someone send me one?)


Thanks.


Only god can answer you're question with the (lack of) information
you provided ... you may have noticed what a shitstorm has been
brewing on planet earth for at least the last 5000 years, god is busy
and we can only help if you provide details of your OS, php 
version/setup/config,
some code, error msgs, etc. thats because we are not omnipotent
(actually John Nichel might be but he'll deny it - he can't handle the
publicity ;-)





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] core files

2005-09-20 Thread Jon
OK, OK,  Ha-ha  Thought that you guys could read my mind...

Here is the error
Warning: fopen(C:\windows\Desktop\php\php pages\phpout.txt)
[function.fopen]: failed to open stream: No such file or directory in
C:\windows\Desktop\php\php pages\phpout.txt on line 12
and of course the fwrite and fclose do not work cause the file is an invalid
stream.

I have a few computers with php installed they are all Win based except for
one nix based server.  The script that I want to make portable will need to
run on a Windows ME/9X box and an XP box.

On my testing computer I have an Installed version of PHP 5.0.3
when I run my script with this version I have no problems

On a different computer I have xampplite from
http://www.apachefriends.org/en/xampp-windows.html#646 The version in it is
5.0.4 according to the website.
I have no problems with this version either

What I have been trying to do is get the files needed for my script to run
and not have to have a lot of files that I don't need.  So I made a dir on
my desktop and copied in the files that I know I need and modified the
php.ini accordingly but for some reason fwrite is not working. It is not
creating the file.
 I have a file list if it is necessary.

Thanks again...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] core files

2005-09-20 Thread Jochem Maas

Jon wrote:

OK, OK,  Ha-ha  Thought that you guys could read my mind...


no this is php-generals not php-psychics - easy mistake to make tho ;-)
glad to see you can take a little stick :-) you'll do well here ;-)

to start with, it will probably help to track down the problem if
you turn off safe_mode and don't use open_basedir for the moment. (don't know 
if you do)



Here is the error
Warning: fopen(C:\windows\Desktop\php\php pages\phpout.txt)
[function.fopen]: failed to open stream: No such file or directory in
C:\windows\Desktop\php\php pages\phpout.txt on line 12


what does your fopen() line look like?


and of course the fwrite and fclose do not work cause the file is an invalid
stream.

I have a few computers with php installed they are all Win based except for
one nix based server.  The script that I want to make portable will need to
run on a Windows ME/9X box and an XP box.


Wind ME/9x are you mad? I would drop that shit quick (jmho).



On my testing computer I have an Installed version of PHP 5.0.3
when I run my script with this version I have no problems

On a different computer I have xampplite from
http://www.apachefriends.org/en/xampp-windows.html#646 The version in it is
5.0.4 according to the website.
I have no problems with this version either


so the problem is with the *nix box? which machine has problems?
a path like 'C:\windows\Desktop\php\php pages\phpout.txt' is not going to
work on a *nix box for sure, and also if its a *nix box you probably need to
set the permissions so that the user which php/webserver is running as
can create/modify a file in the relevant dir



What I have been trying to do is get the files needed for my script to run
and not have to have a lot of files that I don't need.  So I made a dir on
my desktop and copied in the files that I know I need and modified the
php.ini accordingly but for some reason fwrite is not working. It is not
creating the file.
 I have a file list if it is necessary.

Thanks again...



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] core files

2005-09-19 Thread Jon
I am trying to copy the files needed to run a php commandline script so that
I can send them to a different computer and run as a scheduled task.  I do
not know what I am missing but for some reason my file commands do not seem
to be working.  fopen does not work and so fwrite does not work either.  I
am on a windows machine.  My script runs from my core version and it runs on
a different computer with an xampplite install but for some reason I have
not found the file that I am missing. Any help would be appreciated.
Thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php