Re: [PHP] Re: rename

2005-06-18 Thread Mister Jack
ok depper into it. (since i've been bitten by it with my website being 'blank page' since it grew out of space...) Thanks, On 6/18/05, Bob Winter <[EMAIL PROTECTED]> wrote: > Look at http://us2.php.net/manual/en/function.rename.php > > Mister Jack wrote: > > Hi, >

[PHP] rename

2005-06-18 Thread Mister Jack
Hi, I would like to know precisely what rename do in case of error. any link for that ? I do a : @rename($old, $new), what happens if I run out of space ? is the rename just an alias for C function library ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] fwrite/fopen

2005-06-11 Thread Mister Jack
gt; successfully... > > Your best bet would be to put the filename into a database table, then run > a cron job that deletes all the files in that table, and only takes them > out of the table if they are successfully deleted. > > Course, you then want to be sure you have UNIQUE fi

[PHP] fwrite/fopen

2005-06-10 Thread Mister Jack
Hi, I having a problem at the moment, I open a file, try to write in it, and then remove the file if the write goes wrong (if write count != of my initial buffer length). But I still get some empty file (and then a blank page). Could possibly fopen (with a 'wb' flag, and under freebsd 4.11) failed

Re: [PHP] Re: cache class

2005-03-22 Thread Mister Jack
; good test, try this: > > [...trial code...] > > echo 'test run finished'; > exit; > > /* > [...unknown code...] > */ > ?> > > Hope this helps, > > Jeremy > > > Mister Jack wrote: > > Hi, > > > > I'm having a bit of a proble

[PHP] cache class

2005-03-22 Thread Mister Jack
Hi, I'm having a bit of a problem. I include a class in my script, the first time run fine, and then if I change anything in my class, changes are not reflected on the browser, it's like it's still the old class which is used. I've cleared the browser cache, force a pragma no-cache, but no, nothin

Re: [PHP] class and global

2005-03-21 Thread Mister Jack
axs(); function return_freedb_search($array) { global $freedb; [snip] $freedb->freedb_search($txt); } this is the one working. On Sun, 20 Mar 2005 11:37:53 +, Mister Jack <[EMAIL PROTECTED]> wrote: > Ok, I've tried with a dummy class : > > class dummy { >

Re: [PHP] class and global

2005-03-20 Thread Mister Jack
PHP 4.3.10-8 thanks for your help, On Sat, 19 Mar 2005 20:45:55 +, Mister Jack <[EMAIL PROTECTED]> wrote: > there is no database connection involved here. if I displace the > $freedb =& new freedbaxs(); > inside the function it's works. > > I should give a try wit

Re: [PHP] class and global

2005-03-19 Thread Mister Jack
there is no database connection involved here. if I displace the $freedb =& new freedbaxs(); inside the function it's works. I should give a try with a dummy object. (but the constructor, only initialize empty array) On Sat, 19 Mar 2005 21:17:02 +0200, BAO RuiXian <[EMAIL PROTECTED]> wrote: >

Re: [PHP] class and global

2005-03-19 Thread Mister Jack
The initialisation seems to be ok, since : Function return_freedb_search($array) { global $freedb; $freedb =& new freedbaxs(); [snip] $freedb->freedb_search($txt); //line 16... } works and also $freedb =& new freedbaxs(); $freedb->freedb_search("ploplop"); Function return_freedb_search($array)

Re: [PHP] global and object

2005-03-19 Thread Mister Jack
Oops, sorry for double posting. my mistake. accept my apologies :-p On Fri, 18 Mar 2005 23:51:15 +, pooly <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to use a global object (declared at a upper level), but all I > got is : > Call to a member function on a non-object in > /home/pooly/publ