Re: [PHP] From: Newman, using and ' or ` in My Sql

2002-03-16 Thread mnc
On Sat, 16 Mar 2002, Philip J. Newman wrote: A few of us folk at PhilipNZ.com would like to know about using and ' or ` in My Sql when calling information from the database. we have always used $sql = SELECT * FROM `hyperlinks` ORDER BY `clicks` DESC LIMIT 0, 10; but where told that

Re: [PHP] Weird?

2002-03-16 Thread scott furt
... i think you might have to create the $date directory before writing a file to it. writing to /tmp/dir/file.txt will fail if the directory dir doesn't exist. jtjohnston wrote: Does anyone have time to run this code? This is definitely weird. Either a Windows or a code problem. If I set:

[PHP] Increment a value in a MySQL database with one query?

2002-03-16 Thread Kevin Stone
Is there a MySQL function that I can use to increment the integer value of a row entry with one query? Here's the combined PHP and SQL in psuedo code form... UPDATE mytable SET myval++ Something like that. So I dont have to pull the value from the database, increment it, then post it back to

Re: [PHP] Increment a value in a MySQL database with one query?

2002-03-16 Thread mnc
On Sat, 16 Mar 2002, Kevin Stone wrote: Is there a MySQL function that I can use to increment the integer value of a row entry with one query? Here's the combined PHP and SQL in psuedo code form... UPDATE mytable SET myval++ Something like that. So I dont have to pull the value from the

[PHP] IMAGE Manipulation

2002-03-16 Thread Dani
Hi, I'm trying to resize images from a big image to smaller image in dimension and also file size so that when a user upload an image into server, when a browser display the picture it desn't have to be as big. I hope my question make sense. I just don't know where to start. may be somebody

[PHP] Re: IMAGE Manipulation

2002-03-16 Thread Marcel Besancon
Hi Dani, I'm trying to resize images from a big image to smaller image in dimension and also file size so that when a user upload an image into server, when a browser display the picture it desn't have to be as big. I hope my question make sense. a good way for working with images is

[PHP] QA help needed

2002-03-16 Thread James Cox
firstly, apologies for the cross post, but I urgently need a Windows 98 / PHP / PWS environment to test an issue on. if anyone could help out with that, please email me back directly. Thanks, James -- James Cox :: [EMAIL PROTECTED] :: Landonize It! http://landonize.it/ Was I helpful?

[PHP] RE: [PHP-QA] QA help needed

2002-03-16 Thread Liz
James, Firstly I have a suggestion for you, I downloaded a copy of something called VMWare, it allows you to install virtual machines, ie, depending on your disk space you can run mutliple operating systems without multi boot. It even has the ability to forget changes, so you can have a stable

[PHP] Formatting input text?

2002-03-16 Thread Andre Dubuc
I wonder whether this is possible? I would like to format a text input so that the first letter of the input (as the user is typing it in) would automatically be converted to Uppercase (capitals). Furthermore, if it is possible, I would like to pre-format the date input type=text so that

[PHP] Problem with sessions.

2002-03-16 Thread Carlos Costa Portela
Hello all: I am playing with sessions and I have a problem with the session_destroy() function. If I do a session_register() after calling it, the session recover the previous values (values that I supposed forgot by the session). At

[PHP] PHP Document not found

2002-03-16 Thread Jan Weidhaase
Hi If I try to open a non-existing PHP document by my Apache server I got an internal server error massage. All other documents that were not found bring me to a error 404 document. 4 days ago I updated from PHP3 to PHP4.0.3pl1 and with the former version i got a error massage like: no php file

[PHP] where is http_cookie ?

2002-03-16 Thread Bas Jobsen
Hello, I have installed php 4.1.2. as a cgi module. But http_cookie isn't set. I don' know whats wrong. You can find the output of phpinfo() at http://www.tgp2stats.com/test.php Tnx, Bas Jobsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] server load

2002-03-16 Thread caspar kennerdale
Would a 10kb file which has 5kb of comments take longer to process in php than the same file wihout the comments which is 5kb? Or are the comments ignored as far as server load and speed to delivery are concerned? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

php-general Digest 16 Mar 2002 17:13:08 -0000 Issue 1230

2002-03-16 Thread php-general-digest-help
php-general Digest 16 Mar 2002 17:13:08 - Issue 1230 Topics (messages 88732 through 88749): Re: Newman, using and ' or ` in My Sql 88732 by: Jason Wong 88735 by: David Robley 88736 by: mnc.stoic.net Somebody knows about SecureLink? 88733 by: Jan Grafström

Re: [PHP] server load

2002-03-16 Thread Andrey Hristov
Flex - the tools that parses the code skips everything between /* and */ and for this no token is given back. Of course if you don't have 5kb comments Flex will be a little faster but possibly few %. Regards, Andrey - Original Message - From: caspar kennerdale [EMAIL PROTECTED] To: PHP

[PHP] Re: where is http_cookie ?

2002-03-16 Thread Ray Hunter
Try using the predefined variable $_COOKIE instead and see if that works for you... Bas Jobsen [EMAIL PROTECTED] wrote in message 02031617361309.10531@bjobsen">news:02031617361309.10531@bjobsen... Hello, I have installed php 4.1.2. as a cgi module. But http_cookie isn't set. I don' know

[PHP] Re: PHP Document not found

2002-03-16 Thread Ray Hunter
You should try moving to the current version of php and then try it... Ray Hunter Jan Weidhaase [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi If I try to open a non-existing PHP document by my Apache server I got an internal server error massage. All

RE: [PHP] server load

2002-03-16 Thread caspar kennerdale
So you could have as much commented text without any detriment to the pages performance? great -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: 16 March 2002 17:17 To: caspar kennerdale Cc: [EMAIL PROTECTED] Subject: Re: [PHP] server load Flex - the tools

Re: [PHP] server load

2002-03-16 Thread Andrey Hristov
However write short but meaningful comments. Keep in mind that the scripts has to be loaded in the memory from the disk. Although after first request it is in some cache. Andrey - Original Message - From: caspar kennerdale [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March

RE: [PHP] server load

2002-03-16 Thread caspar kennerdale
I am thinking of using a documentation parser such as javadoc (called phpdoc) which will create a separate html document on the functions and feastures of the classes I am writing,as well as examples and tutorial info. I am just considering whether or no I have two versions - a no comments

[PHP] Download do Manual

2002-03-16 Thread Márcio Santos
Olá pessoal! Gostaria que alguém me enviasse o manual de php em portugues descompactado, pois tenho tido problemas em descompacta-lo, mesmo em pdf. Com os melhores cumprimentos: ++ | Marcio Santos | | Estudante de Ensino de Informatica |

Re: [PHP] server load

2002-03-16 Thread Andrey Hristov
I have :))) Andrey - Original Message - From: caspar kennerdale [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 16, 2002 7:40 PM Subject: RE: [PHP] server load I am thinking of using a documentation parser such as javadoc (called phpdoc) which will create a separate

Re: [PHP] Problem with sessions.

2002-03-16 Thread Tom Rogers
Hi When you create the new session give it a different name. Tom At 01:49 AM 17/03/2002, Carlos Costa Portela wrote: Hello all: I am playing with sessions and I have a problem with the session_destroy() function. If I do a session_register() after calling it, the session

[PHP] Re: Variable Variables and Mulitdimensional Arrays

2002-03-16 Thread Joe Webster
You seem to have three different ideas/questions... let me attempt to answer them: Hi. I want to be able to access a key in a multidimensional array at some depth n without knowing before runtime what the keys are. let's take a multidimensional array $x $x = array( somevar, array(

Re: [PHP] server load

2002-03-16 Thread Andrey Hristov
I've just tested on the productional test server a sample php consisting from 62kb comment. Benchmarked with ab 1-st bench - ten connections Server Port:80 Document Path: /test.php Document Length:0 bytes Concurrency Level: 10 Time taken for tests: 0.552

Re: [PHP] Formatting input text?

2002-03-16 Thread Edward van Bilderbeek - Bean IT
Just use javascript... (be careful, what works with IE, doesn't automatically work with Netscape)... Greets, Edward - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 16, 2002 4:44 PM Subject: [PHP] Formatting input text? I wonder

Re: [PHP] Problem with sessions.

2002-03-16 Thread Edward van Bilderbeek - Bean IT
maybe you better use: session_unregister(counter); Greets, Edward - Original Message - From: Carlos Costa Portela [EMAIL PROTECTED] To: php-general mailing list [EMAIL PROTECTED] Sent: Saturday, March 16, 2002 4:49 PM Subject: [PHP] Problem with sessions. Hello all: I am playing

Re: [PHP] Formatting input text?

2002-03-16 Thread Andre Dubuc
Hi Edward, If I wanted to avoid Javascript, could I still accomplish this in PHP? Regards, Andre On Saturday 16 March 2002 13:33, you wrote: Just use javascript... (be careful, what works with IE, doesn't automatically work with Netscape)... Greets, Edward - Original Message -

[PHP] Update: [PHP] Weird?

2002-03-16 Thread jtjohnston
I have created date :) $date = date (MD); That's not it. It seems to fail at one level or another, I think, becuase the function calls itself - and probably gets lost somehow. John ... i think you might have to create the $date directory before writing a file to it. writing to

Re: [PHP] Formatting input text?

2002-03-16 Thread heinisch
At 16.03.2002 10:44, you wrote: I wonder whether this is possible? I would like to format a text input so that the first letter of the input (as the user is typing it in) would automatically be converted to Uppercase (capitals). Furthermore, if it is possible, I would like to pre-format the

[PHP] PHPMyAdmin: [PHP] From: Newman, using and ' or ` in My Sql

2002-03-16 Thread jtjohnston
The standard quote (') should be used to delimit string literals in MYSQL statements. Use it to surround strings you're inserting into or comparing against VARCHARs, CHARs, TEXTs, etc. $sql = UPDATE mytable SET name='Best Table Of All' WHERE id=3; That is ok if you call MySQL in your .php.

Re: [PHP] Formatting input text?

2002-03-16 Thread Edward van Bilderbeek - Bean IT
As Oliver says, it is possible in PHP, but then you have to do it, AFTER the form is submitted... Just do some regular expressions on your data before displaying / storing it... Edward - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL

[PHP] Weird INCLUDE / mySQL problem

2002-03-16 Thread Dan Tappin
I have a simple INCLUDE file that creates a default dynamic tab style table of contact for the top of each of my pages. I wanted a solution where I could control the content by simply changing an integer in mySQL indicating weather a tab was visible or not. It works but I now have a strange

Re: [PHP] where is http_cookie ?

2002-03-16 Thread Bas Jobsen
Hi, Well okay. But now i'm using this code: test.php (http://www.tgp2stats.com/test.php): -- ? $test=bas; session_start(); session_register(test); header(Location: test2.php); ? -- test2.php (http://www.tgp2stats.com/test2.php): -- ? session_start(); session_register(test); echo test: .$test;

[PHP] Re: Help Out A Newbie In Configuring PHP.INI

2002-03-16 Thread Dr. Shim
Well, I was stupid posting this question anyway. Don't worry about my problem. I have it fixed. =) Again, I will be more careful not to repeat posts (or post things I can find the answer for somewhere else). ---Original Message--- Well, aroung 14 Feb I ended up saying this to an

[PHP] From: Newman, PHP on non PHP servers?

2002-03-16 Thread Philip J. Newman
Ok say I have a top ten list of something in a MySql db on server lisa.philipnz.com which runs php scripts. Is it possable to call, using a javascript information from say http://www.geocities.com/philip_newman/ this list, will the PHP exacute on lisa.philipnz.com when the script is

Re: [PHP] Formatting input text?

2002-03-16 Thread Jason Wong
On Saturday 16 March 2002 23:44, Andre Dubuc wrote: I wonder whether this is possible? I would like to format a text input so that the first letter of the input (as the user is typing it in) would automatically be converted to Uppercase (capitals). Furthermore, if it is possible, I would

Re: [PHP] Targetted redirection?

2002-03-16 Thread anders nawroth
I use this code to break out of frames: if (top.frames.length!=0) top.location=self.document.location; Put this code in the head section between script tags. If the document isn't on top, it soon will be. (This solution slows the loading of the page a bit, the browser will have to go thru

[PHP] Success Using PEAR?

2002-03-16 Thread Bryan Henry
anyone had success using PEAR? I have read the documentation and been trying to use the PEAR files that came with PHP 4.1.2 , PEAR cvs and PHP4/PEAR cvs with no success. I wish there was some updated documentation, and more explanation on which files to use for stable development. Every

Re: [PHP] From: Newman, PHP on non PHP servers?

2002-03-16 Thread heinisch
At 17.03.2002 08:02, you wrote: Ok say I have a top ten list of something in a MySql db on server lisa.philipnz.com which runs php scripts. Is it possable to call, using a javascript information from say http://www.geocities.com/philip_newman/ this list, will the PHP exacute on

[PHP] php.ini and fixing timeouts

2002-03-16 Thread DigitalKoala
hi folks, I'm running a php script from a console - it includes quite a lot of heavy database queries - and takes a while to run. Problem is that the the script keeps on timing out and I get Fatal error: Maximum execution time of 30 seconds exceeded ... I've set the MAX EXECUTION time in

Re: [PHP] From: Newman, PHP on non PHP servers?

2002-03-16 Thread Michael Geier
create a page on the PHP server that returns the results as an html page... than use an include or frameset to put the results into the geocities page... if it wasn't a geocities site, you could use an SSI include or PHP include. -- Michael Geier CDM Sports, Inc. - Systems Administrator

Re: [PHP] Update: [PHP] Weird?

2002-03-16 Thread scott furt
I meant, have you created a physical directory named $date? That's your problem. There's no directory named $date on your computer, and you're trying to write files into a non-existent directory. jtjohnston wrote: I have created date :) $date = date (MD); That's not it. It seems to fail at

Re: [PHP] Driving me nuts, need one second of your time

2002-03-16 Thread scott furt
It's not absurd at all. What is absurd is that you're coding without checking for any error conditions :-) As a rule of thumb, if a function returns a success flag, check it. it'll immediately cut out about 90% of all weird errors. cosmin laslau wrote: ? $query = SELECT * from mytable;

Re: [PHP] Success Using PEAR?

2002-03-16 Thread James Arthur
On Saturday 16 Mar 2002 20:32, Bryan Henry wrote: anyone had success using PEAR? I have read the documentation and been trying to use the PEAR files that came with PHP 4.1.2 , PEAR cvs and PHP4/PEAR cvs with no success. I wish there was some updated documentation, and more explanation on

Re: [PHP] regular expression for (NOT 'word')

2002-03-16 Thread scott furt
Try this... it should only print out Some webpage data $text = script somethingscript data./script Some webpage data script somethinganother script data /script ; print preg_replace('/script (.*?)/script(.*?)\/script/', '', $text); Ando Saabas wrote: Ok let me explain my problem further

Re: [PHP] From: Newman, PHP on non PHP servers?

2002-03-16 Thread Philip J. Newman
I'm thinking of more around the site of haveing something that can be included in peoples homepages like a top ten list that changes, but they don't have to change it ... thats why I was thinking about javascript. script language=JavaScript src=http://lisa.philipnz.com/javatopten.php;/script

[PHP] problems with 4.1.2 build

2002-03-16 Thread Phil Glatz
I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23 installation, and am having some resolution problems I haven't seen before. This is on a dusty old Free BSD 2.2.2 system, but I was able to build 4.1.1 with no problems with the same configuration. It uses gcc version 2.7.2.1

RE: [PHP] problems with 4.1.2 build

2002-03-16 Thread Stephano Mariani
Upgrade binutils? Stephano Mariani -Original Message- From: Phil Glatz [mailto:[EMAIL PROTECTED]] Sent: Saturday, 16 March 2002 10:30 PM To: [EMAIL PROTECTED] Subject: [PHP] problems with 4.1.2 build I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23

[PHP] mktime on W2K?

2002-03-16 Thread Jeff Oien
I use this on a Unix server to get yesterday's date if it's a Saturday: if ($day == '6') { $today1 = date(Y:m:d, mktime(0,0,0,$month,$day-1,$year)); } But on my Windows 2000 machine it thinks it's 1999:12:05. How can I do this on Windows? Thanks. Jeff Oien -- PHP General Mailing List

Re: [PHP] php.ini and fixing timeouts

2002-03-16 Thread heinisch
At 16.03.2002 20:59, you wrote: hi folks, I'm running a php script from a console - it includes quite a lot of heavy database queries - and takes a while to run. Problem is that the the script keeps on timing out and I get Fatal error: Maximum execution time of 30 seconds exceeded ... I've

[PHP] retrieving remote web page

2002-03-16 Thread Andy Aldridge
Hi, I'm wanting to retrieve a remote page and extract information from it to insert into my own page. I know that this can be done with fopen, however the page I am wishing to retrieve is generated with a POSTed form. Is there any way that I can retrieve a page that has been created by the

[PHP] Getting TOTAL DB Size of a MySQL Database

2002-03-16 Thread eric.coleman
Anyone have a small snippet I could use to get the total size of any certin MySQL database.. Just want to disply it in my browser using a little php script, have any ideas? Thanks, Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OBJECT£ºWHAT'S THE RALATION BETWEEN A,B AND C?

2002-03-16 Thread bob
?php class A { function A($i) { $this-value = $i; // try to figure out why we do not need a reference here $this-b = new B($this); } function createRef() { $this-c = new B($this); } function echoValue() { echo br,class

[PHP] Sessions and enable-trans-sid

2002-03-16 Thread lists
I have compiled php with the enable-trans-sid (for the site I am using I can NOT use cookies) when I start a session or store something in _SESSION['varname'] varname can not be accessed on other pages nor is there a file in the /tmp file nor does my URI change with a session id Any

RE: [PHP] retrieving remote web page

2002-03-16 Thread Dave
have a look at CURL Dave -Original Message- From: Andy Aldridge [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 16, 2002 7:46 PM To: [EMAIL PROTECTED] Subject: [PHP] retrieving remote web page Hi, I'm wanting to retrieve a remote page and extract information from it to insert into

[PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Dr. Shim
I've tried repediately to have a PHP script validate a form when the form is submitted. I'm quite new to PHP, and I'd really appreciate the help anybody could give me. I've been stuck on this problem far to long. I have a form (here's the code): form method=post action=?php $PHP_SELF; ?

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Mike Gohlke
Dr. Shim wrote: I've tried repediately to have a PHP script validate a form when the form is submitted. I'm quite new to PHP, and I'd really appreciate the help anybody could give me. I've been stuck on this problem far to long. I have a form (here's the code): form method=post action=?php

[PHP] No Sense: [PHP] Update: [PHP] Weird?

2002-03-16 Thread jtjohnston
No!? $date is a string?! $date = date (MD); How does that make a difference? $to_path = c:\\ccl_www\\.$date.\\ccl_www\\; You want me to change it to: $to_path = c:\\ccl_www\\$date\\ccl_www\\; Does anyone follow why? Scott Furt wrote: I meant, have you created a physical directory named

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Dr. Shim
I've changed form method=post action=?php $PHP_SELF; ? To form method=post action=?php =$PHP_SELF; ? And I get a parse error. Could you possibly help me correct this? (I'm a newbie, so have pity on me. =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Jason Wong
On Sunday 17 March 2002 11:46, Dr. Shim wrote: I've changed form method=post action=?php $PHP_SELF; ? To form method=post action=?php =$PHP_SELF; ? And I get a parse error. Could you possibly help me correct this? (I'm a newbie, so have pity on me. =) Use: form method=post

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Dr. Shim
Sorry about the subject heading. I've put in form method=post action=?php echo $PHP_SELF; ? But still when I click on the Log In button, thing happens. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Dr. Shim
Oh, by the way, the if...then claus runs successfully, but the function never is called. Am I wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Jason Wong
On Sunday 17 March 2002 12:04, Dr. Shim wrote: Sorry about the subject heading. I've put in form method=post action=?php echo $PHP_SELF; ? But still when I click on the Log In button, thing happens. Please post the rest of your code and also which version of PHP you're using. -- Jason

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Dr. Shim
I'm using PHP 4.1.1 (for Windows). Here is *all* of my code. html head titleAdministrative Log-In Page/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF Please enter your username and password below in the fields below. form method=post

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread pong-TC
[EMAIL PROTECTED] writes: I'm using PHP 4.1.1 (for Windows). Here is *all* of my code. html head titleAdministrative Log-In Page/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF Please enter your username and password below in the fields below.

[PHP] Re: No Sense: [PHP] Update: [PHP] Weird?

2002-03-16 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... No!? $date is a string?! $date = date (MD); How does that make a difference? $to_path = c:\\ccl_www\\.$date.\\ccl_www\\; You want me to change it to: $to_path = c:\\ccl_www\\$date\\ccl_www\\; Does anyone follow why?

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Jason Wong
On Sunday 17 March 2002 12:12, Dr. Shim wrote: I'm using PHP 4.1.1 (for Windows). Here is *all* of my code. html head titleAdministrative Log-In Page/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF Please enter your username and

php-general Digest 17 Mar 2002 05:16:56 -0000 Issue 1231

2002-03-16 Thread php-general-digest-help
php-general Digest 17 Mar 2002 05:16:56 - Issue 1231 Topics (messages 88750 through 88803): Re: server load 88750 by: Andrey Hristov 88753 by: caspar kennerdale 88754 by: Andrey Hristov 88755 by: caspar kennerdale 88757 by: Andrey Hristov

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Jason Wong
On Sunday 17 March 2002 13:14, Jason Wong wrote: You're using 4.1.1, $HTTP_POST_VARS{} has been replaced by $_POST[] (see changelog/history/php.ini for details). Sorry a typo: $HTTP_POST_VARS[] has been replaced by $_POST[] -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /*

Re: [PHP] check on pictures

2002-03-16 Thread Martin Kampherbeek
Thanks for repying. Yes, the page has pictures. But all jpg pictures must link to another jpg pictures. A gif is alowed to link to a html file. The minium numers of jpg pictures must be 12. Cheers, Martin. - Original Message - From: Boaz Yahav [EMAIL PROTECTED] To: Martin Kampherbeek

[PHP] send fax

2002-03-16 Thread Senih
Hi, is it possible to send automated faxes via PHP? Thanks in advance, Senih

[PHP] Class Function Issue

2002-03-16 Thread Jason Bell
Hi! I'm building a class, and am trying to include an authorization function the code works when used outside of the class, but when I put it inside the class, for some reason my session variables won't get set. Am I attempting the impossible, or am I missing something that I need to

[PHP] problem with file writing

2002-03-16 Thread Ben Waldher
I'm having some trouble writing data to a file, when I use this code it works fine: ?php $file = fopen(template.txt, w); fwrite ($file, $temp); fclose ($file); ? But several problems with this occur: ?php $stuff = include (news.txt); $file = fopen (news.txt, w); $newnews = include

Re: [PHP] problem with file writing

2002-03-16 Thread Jason Wong
On Sunday 17 March 2002 12:53, Ben Waldher wrote: I'm having some trouble writing data to a file, when I use this code it works fine: ?php $file = fopen(template.txt, w); fwrite ($file, $temp); fclose ($file); ? But several problems with this occur: ?php $stuff = include

[PHP] Re: [PHP] Weird?

2002-03-16 Thread jtjohnston
Dave, That's just the problem with the code. See the snippet, http://www.php.net/manual/en/function.copy.php The function should MKDIR for me one level at a time as the function calls itself. It should MKDIR and copy *.* if (is_dir($file)) { rec_copy ($from_path.$file./,

[PHP] Copy *.*

2002-03-16 Thread jtjohnston
Does anyone know of another snippet any place where I can copy *.* (files and all sub-directories) from one drive to another? In other words, a backing-up function. The snippet I got from http://www.php.net/manual/en/function.copy.php has been a disaster. John -- PHP General Mailing List