php-general Digest 18 Mar 2005 13:07:01 -0000 Issue 3345

2005-03-18 Thread php-general-digest-help
php-general Digest 18 Mar 2005 13:07:01 - Issue 3345 Topics (messages 211004 through 211039): download files with header 211004 by: helene malamoud Re: Setting cookies for other domains 211005 by: Chris W. Parker 211006 by: Chris Shiflett 211009 by: Brian

Re: [PHP] passing return value from fucntion

2005-03-18 Thread Forest Liu
I donot understand your problem clearly yet. I think there must be a caller and a callee (called function) when we talking about passing arguments. That is to say, you write in your main program: ... echo calc($rs).br; ... and make sure there is a function named calc: function calc($rightsid){

Re: [PHP] Setting cookies for other domains

2005-03-18 Thread Scott Haneda
on 3/17/05 6:32 PM, Brian Dunning at [EMAIL PROTECTED] wrote: I suspect it's for sub-domains of sites you administer and not completely different domains altogether. If this is true, and it's not possible for a site to set a cookie for a completely different domain, then why do browsers

[PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-18 Thread Leonidas Savvides
How from an html/web form I may go to a php script output(of form values) ? I mean the programming for the result : A visitor to webpage-A.php when press submit of a webform go to a webpage-B.php where as a php script uses the previous form data , and for example there's output of these data

Re: [PHP] passing return value from fucntion

2005-03-18 Thread William Stokes
Never mind I got it figured out. Had to set a global variable to make it visible. Thanks anyway -Will Forest Liu [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] I donot understand your problem clearly yet. I think there must be a caller and a callee (called function) when we talking

[PHP] Custom errors handling class problem

2005-03-18 Thread Mihai Frisan
hi, I need some help, this is my problem: I use a custom errors handling class, which set one of its methods as the php errors handler. All works well when I use this class in a file with only procedural code (all errors are caught by the custom errors handling class), but if I instantiate

RE: [PHP] passing return value from fucntion

2005-03-18 Thread Ford, Mike
-Original Message- From: William Stokes Sent: 18/03/05 07:33 Hello, Just simple question (I think?) How to pass return value from function to the main program? Here's example: do some code in funtion to set the $res value: } elseif ($rightsid == $oik6) { $res = ok;

Re: [PHP] passing return value from fucntion

2005-03-18 Thread Forest Liu
No...I think it is not a proper way to program.If you have programming experiences with any other language, you'll understand this naturally. The original purpose of making a function is tell it some arguments, and you get a result. It should have the fewest relationship with the environment

[PHP] change the font color of a string variable in PHP

2005-03-18 Thread babu
Hi all i am newbie, I have a php code like this ?php foreach($_SESSION['history'] as $item) { $item = str_replace(;,,$item); echo option $item/option; //echo option$item/option; }//foreach ? I want to set the color of the srting in $item. Are there any PHP functions

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread Chris Ramsay
On Fri, 18 Mar 2005 09:42:13 + (GMT), babu [EMAIL PROTECTED] wrote: Hi all i am newbie, I have a php code like this ?php foreach($_SESSION['history'] as $item) { $item = str_replace(;,,$item); echo option $item/option; //echo option$item/option; If I understand your

Re: [PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-18 Thread Forest Liu
I donot know what happened in Frontpage. I just use Dreamweaver to design the page layout, and then UltraEdit to add php code. I think you are asking about the page submit. You can find the exact example in the php manual, which can be obtained from php.net a.php: form method=post action=b.php

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread babu
Chris Ramsay [EMAIL PROTECTED] wrote:On Fri, 18 Mar 2005 09:42:13 + (GMT), babu wrote: Hi all i am newbie, I have a php code like this foreach($_SESSION['history'] as $item) { $item = str_replace(;,,$item); echo $item; //echo $item; If I understand your question, you are

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread Chris Ramsay
Babu, Check out: http://www.trans4mind.com/personal_development/StyleSheets/formElements.htm or google http://www.google.com/search?hl=enq=option+text+colourmeta= HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread babu
Hi chris, i am using mssql and php, so i trying to get the query result when the user enters the query and submits the execute button. i want to differentiate the syntactically correct query and the incorrect query with differ colors. here i am posting my code if (-1 == $connection)

[PHP] More function troubles

2005-03-18 Thread AndreaD
Still strugglin through with the PHP stuff.. I keep getting a Warning: Missing argument 2 for check_zero() in c:\Inetpub\wwwroot\ecurry\order.php on line 5 if ($name == andrea) { $experience= 2; $age= 24 check_zero($age, $experience); } This calls check which is at the very top of the

Re: [PHP] More function troubles

2005-03-18 Thread Chris Ramsay
On Fri, 18 Mar 2005 10:15:08 -, AndreaD [EMAIL PROTECTED] wrote: Still strugglin through with the PHP stuff.. I keep getting a Warning: Missing argument 2 for check_zero() in c:\Inetpub\wwwroot\ecurry\order.php on line 5 if ($name == andrea) { $experience= 2; $age= 24 where's

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread Chris Ramsay
Babu, but it doe not work can you pls tell me. for example you can define 'red' as a css class either in the head of your document output (within style tags) or as an external linked .css document. 'red' is defined so: .red { color:#FF; } Then your option html is like: echo

Re: [PHP] More function troubles

2005-03-18 Thread Chris Ramsay
Sorry, didn't actually answer your question! Missing argument 2 for check_zero() in c:\Inetpub\wwwroot\ecurry\order.php on line 5 means that you have not supplied all the neccessary arguments to the function you are calling - is it check($arg1, $arg2) or check_zero($arg1, $arg2)?... CHeers

Re: [PHP] Files upload - Encrypt into a variable - Do not inject into db (PHP/Apache/MySQL)

2005-03-18 Thread Marek Kilimajer
Steven Altsman wrote: Yes, the link is http://www.radinks.com/upload/config.php file_uploads = On upload_max_filesize = 40M max_input_time = 9000 (seconds) memory_limit (not limited, per handload config, from source) max_execution_time = 9000 (seconds) post_max_size = 40M also, hidden INPUT tag

[PHP] Reading all headers sent

2005-03-18 Thread martin
Hi, I wanted to know if there is some way to expose the full headers sent to a php page. I found in google that for windows there is $_SERVER['ALL_HTTP'] to read all the headers sent but I'm using php on linux/apache. There is any way to get in a variable the full headers sent to a page ? Best

[PHP] Referer checking is able to be referer spoofed

2005-03-18 Thread dan rossi
Hi there I am building a syndicate feed system for a client, it is based on referer checking and a id is passed over, I could do what I do with the expired url and generate a random string of some sort to login the user automatically, but then it relies on the third party to have php. I have

Re: [PHP] Reading all headers sent

2005-03-18 Thread Jesper Goos
The $SERVER variable is an array, so try this: ? echo pre; print_r($_SERVER); echo /pre; ? regards Jesper martin wrote: Hi, I wanted to know if there is some way to expose the full headers sent to a php page. I found in google that for windows there is $_SERVER['ALL_HTTP'] to read all the

Re: [PHP] Reading all headers sent

2005-03-18 Thread martin
Thanks for the answer, what I'm trying to achieve is a php proxy that receives any GET/POST request with correspoding headers and brings back the results to the caller. Let's say I do a google search request with curl: // I would like all this to be sent by another page --- (header + xml) $data

Re: [PHP] Reading all headers sent

2005-03-18 Thread M. Sokolewicz
Jesper Goos wrote: The $SERVER variable is an array, so try this: ? echo pre; print_r($_SERVER); echo /pre; ? regards Jesper martin wrote: Hi, I wanted to know if there is some way to expose the full headers sent to a php page. I found in google that for windows there is $_SERVER['ALL_HTTP'] to

[PHP] does your mail() base64 encode messages?

2005-03-18 Thread John W. List
I have an unexpected and perplexing problem. PHP's mail() function is base64 encoding all message bodies as an ill-formed MIME attachment resulting in the recipient seeing an uninteligable base64 encoded string. This only happens to my account with my host and neither I or the sysadmin can see why

[PHP] sessioncookies?

2005-03-18 Thread William Stokes
Hello, I have a following line in my code to set a session cookie when user logs in. It works fine. setcookie(sess_id,$sess_id,0,/); Can I store more information to the session cookie? I mean other variables. Like I tried it like this with no success.

[PHP] ldap_get_values warning

2005-03-18 Thread Jeff Bunting
Hi, I'm retrieving a user via LDAP and am getting a warning from this line: $values = ldap_get_values($ldapconn, $entry, middleName); because middleName is not present in $entry. This doesn't seem to agree with the documentation for ldap_get_values: array ldap_get_values ( resource

Re: [PHP] getting text with strange encodng

2005-03-18 Thread Diana Castillo
no, its not html entity, it doesnt have a semicolon, its exactly as I wrote it. Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Diana Castillo wrote: Does anyone know what kind of string encoding this is : regreg mAreg and how can I decode this? That looks almost

[PHP] Re: getting text with strange encodng

2005-03-18 Thread Diana Castillo
from a text description provided via an xml Jim Plush [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Where did the string come from? Jim PHP WebBlog = http://www.litfuel.net/plush/ Diana Castillo wrote: Does anyone know what kind of string encoding this is : regreg mAreg

Re: [PHP] Setting cookies for other domains

2005-03-18 Thread Brian Dunning
You are misinterpreting the prefs in browsers, they can not do what you ask. That's fine, I'm perfectly willing to accept this - but can someone explain what the pref IS for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sessioncookies?

2005-03-18 Thread Ken
No, you'll have to use another cookie name. Alternatively, you can use arrays setcookie('cookiename['arrayname']', $value, time()); On Fri, 18 Mar 2005 15:07:34 +0200, William Stokes [EMAIL PROTECTED] wrote: Hello, I have a following line in my code to set a session cookie when user logs

Re: [PHP] New Website for PHP Coders.. www,lifenit.com

2005-03-18 Thread Ryan A
Stupid damn sites dont even open, get yourself some decient hosting...and after you do that DONT SPAM THIS LIST,DUMBASS. On 3/17/2005 8:22:17 PM, freshersworld .com ([EMAIL PROTECTED]) wrote: Hi All, This is a very interesting website. Visit www.lifenit.com Also I can refer one more

[PHP] Memory exhausted message wrong

2005-03-18 Thread Andrew Hill
Hi all, I'm trying to run phpDocumentor 1.3.0RC3 under PHP 4.3.10, and I get the following error: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 3668 bytes) in /usr/local/lib/php/PhpDocumentor/phpDocumentor/phpDocumentorTWordParser. inc on line 236 The problem

[PHP] Referer checking is able to be referer spoofed

2005-03-18 Thread Dan Rossi
Hi there I am building a syndicate feed system for a client, it is based on referer checking and a id is passed over, I could do what I do with the expired url and generate a random string of some sort to login the user automatically, but then it relies on the third party to have php. I have

Re: [PHP] Memory exhausted message wrong

2005-03-18 Thread Marek Kilimajer
Andrew Hill wrote: Hi all, I'm trying to run phpDocumentor 1.3.0RC3 under PHP 4.3.10, and I get the following error: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 3668 bytes) in /usr/local/lib/php/PhpDocumentor/phpDocumentor/phpDocumentorTWordParser. inc on line

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-18 Thread Dan Rossi
On 19/03/2005, at 2:06 AM, [EMAIL PROTECTED] wrote: the other side of this is blocking legit users. if you base your access (at least in part) on the referrer (aka referer), you will block anyone who has turned them off in their browser or who is behind a firewall that doesn't pass them. both of

RE: [PHP] Memory exhausted message wrong

2005-03-18 Thread Andrew Hill
Marek Kilimajer wrote: Andrew Hill wrote: The problem is that in my php.ini file, I have the line: memory_limit = 8M So, why is PHP reporting that the allowed memory size is 256M? The phpinfo() function correctly reports that memory_limit is set to 8M. Are you running phpini()

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-18 Thread Marek Kilimajer
Dan Rossi wrote: On 19/03/2005, at 2:06 AM, [EMAIL PROTECTED] wrote: the other side of this is blocking legit users. if you base your access (at least in part) on the referrer (aka referer), you will block anyone who has turned them off in their browser or who is behind a firewall that doesn't

RE: [PHP] Memory exhausted message wrong

2005-03-18 Thread Andrew Hill
Andrew Hill wrote: The problem is that in my php.ini file, I have the line: memory_limit = 8M So, why is PHP reporting that the allowed memory size is 256M? The phpinfo() function correctly reports that memory_limit is set to 8M. I've just been informed off-list that

[PHP] preg_replace with rawurlencoded?

2005-03-18 Thread BlackDex
I have a litle problem with replaceing a string in some HTML code. the html code is: --- img width=240 height=180 src=01%20-%20Raptor%20AMD%20Sempron_image001.jpg --- I want to change the 01%20-%20Raptor%20AMD%20Sempron_image001.jpg becouse the location of the file will be changed after the

[PHP] build an array of checkbox

2005-03-18 Thread Tomás Rodriguez Orta
Hello people. I have a doubt, I want to build an array of checkbox, why? well because I list a recordset from data base, and I want to delete the current record when the check is selected by the click mouse. for example the editor of mail.yahoo.xx, that you can delete any mail when you

Re: [PHP] sessioncookies?

2005-03-18 Thread William Stokes
OK. so can I set 2 or more session cookies for the same user? Like this: setcookie(sess_id,$sess_id,0,/); setcookie(cookie2,$another_variable,0,/); If so is there a limit? Or is it a bad idea for some other reason? Thanks -Will Ken [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] No,

Re: [PHP] build an array of checkbox

2005-03-18 Thread Forest Liu
I guess you have the experiences with VB development, right? :) I think it is not a problem in php, because the index of an array in php can be a string. That is the solution.You can name the checkboxes in a certain sequence in your html doc.Then use array to judge in php, such as foreach. wish

[PHP] apache_request_headers() does not return HTTP Authorization headers

2005-03-18 Thread LacaK
Hello, my PHP is running as Apache module. if safe_mode=on function apache_request_headers() does not return Authorization headers so there is no possibilty to validate HTTP Digest Authorization ... if safe_mode=off all wotks OK. I send to browser : Header( HTTP/1.0 401 Unauthorized); Header(

RE: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-18 Thread Steven Altsman
[code] ?php // Variable-ize all of the attributes of the file object $binFile = $_FILES['binFile']; $binFile_name = $_FILES['binFile']['name']; $binFile_size = $_FILES['binFile']['size']; $binFile_type =

Re: [PHP] More function troubles

2005-03-18 Thread Chris Shiflett
AndreaD wrote: I keep getting a Warning: Missing argument 2 for check_zero() in c:\Inetpub\wwwroot\ecurry\order.php on line 5 if ($name == andrea) { $experience= 2; $age= 24 check_zero($age, $experience); } This calls check which is at the very top of the page function check($age, $experience){ //

[PHP] PHP Compiler for .NET platform

2005-03-18 Thread Pablo Gosse
Hey folks. Has anybody played with this the PHP compiler for .NET, Phalanger? http://www.php-compiler.net/ I'd be interested to hear of any experiences people have had using this. Cheers, Pablo -- Pablo Gosse Webmaster, University of Northern

RE: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-18 Thread Steven Altsman
Updated : It ain't MCRYPT. [code] ?php // Variable-ize all of the attributes of the file object $binFile = $_FILES['binFile']; $binFile_name = $_FILES['binFile']['name']; $binFile_size = $_FILES['binFile']['size'];

Re: [PHP] build an array of checkbox

2005-03-18 Thread Leif Gregory
Hello Tomás, Friday, March 18, 2005, 1:31:40 PM, you wrote: T I have a doubt, I want to build an array of checkbox, why? well T because I list a recordset from data base, and I want to delete the T current record when the check is selected by the click mouse. for T example the editor of

[PHP] problem with csv file (or php code?!?)

2005-03-18 Thread [EMAIL PROTECTED]
My marketing department create a csv file which later upload into database. Everything was working fine - until upload they tried to make two days ago. In that file there were few of products that drive me crazy. The file is here: http://www.afan.net/7V_2005.csv The file has just

[PHP] XML HTTP

2005-03-18 Thread Jerry Swanson
I create XML file, how to pass the XML file to another server through HTTP? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML HTTP

2005-03-18 Thread Chris Shiflett
Jerry Swanson wrote: I create XML file, how to pass the XML file to another server through HTTP? This is similar to asking how to ship a package, only there are even more options. :-) What is the other server's API? How are they expecting to be sent the XML file? HTTP can practically be

[PHP] Re: problem with csv file - SOLVED :)

2005-03-18 Thread [EMAIL PROTECTED]
problem solved. while getting info from csv file I limited myself with 1000 charcters: $data = fgetcsv($handle, 1000); :) [EMAIL PROTECTED] wrote: My marketing department create a csv file which later upload into database. Everything was working fine - until upload they tried to make two days

RE: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-18 Thread Steven Altsman
Got packet bigger than 'max_allowed_packet' ... Gotta love mysql_error(); If I find out what causes this, I'll bring it over to this list too.. since it's been pretty quiet, I guess I've gotten folks stumped. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Convert time

2005-03-18 Thread virtualsoftware
Hi, I have a database where i store the username and date when he registered. The time when he registered is using the time() function. I want to display the date he registered in this format: year, month, day, hour, minute, second. Please somebody tell me how can i do that. I know is is very

RE: [PHP] Convert time

2005-03-18 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Friday, March 18, 2005 12:10 PM said: Hi, Hello virtualsoftware! I want to display the date he registered in this format: year, month, day, hour, minute, second. Please somebody tell me how can i do that. Take a look at:

[PHP] Re: Convert time

2005-03-18 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi, I have a database where i store the username and date when he registered. The time when he registered is using the time() function. I want to display the date he registered in this format: year, month, day, hour, minute, second. ?php /** For more

Re: [PHP] XML HTTP

2005-03-18 Thread Jerry Swanson
I generated XML file. I need to send the file to another server not through FTP but though HTTP. On Fri, 18 Mar 2005 14:17:28 -0500, Chris Shiflett [EMAIL PROTECTED] wrote: Jerry Swanson wrote: I create XML file, how to pass the XML file to another server through HTTP? This is similar to

Re: [PHP] XML HTTP

2005-03-18 Thread Chris Shiflett
Jerry Swanson wrote: I generated XML file. I need to send the file to another server not through FTP but though HTTP. Yes, I gathered that, but you're not telling us how you're supposed to send it. For example, when Google first provided their web API, they didn't say, just send us an XML

Re: [PHP] XML HTTP

2005-03-18 Thread Jason Barnett
Chris Shiflett wrote: Jerry Swanson wrote: I generated XML file. I need to send the file to another server not through FTP but though HTTP. Yes, I gathered that, but you're not telling us how you're supposed to send it. For example, when Google first provided their web API, they didn't

Re: [PHP] New Website for PHP Coders.. www,lifenit.com

2005-03-18 Thread James Williams
God damn it this is really startin to piss me off... On 3/17/2005 8:22:17 PM, freshersworld .com ([EMAIL PROTECTED]) wrote: Hi All, This is a very interesting website. Visit www.lifenit.com Also I can refer one more sebsite for you.. www.merchantii.com Hope these were Useful. Rgds,

[PHP] Chapter 38. Handling file uploads

2005-03-18 Thread Timothy A. Whitley, P.E.
I am using the code at the top of this chapter to upload a file and move to a given destination directory. I get the following error messages and my file is not to be found. The only thing I am changing is where I want the file to be stored. Thanks. Warning:

[PHP] Re: Chapter 38. Handling file uploads

2005-03-18 Thread Jason Barnett
Timothy A. Whitley wrote: I am using the code at the top of this chapter to upload a file and move to a given destination directory. I get the following error messages and my file is not to be found. The only thing I am changing is where I want the file to be stored. Thanks. Warning:

RE: [PHP] New Website for PHP Coders.. www,lifenit.com

2005-03-18 Thread Chris W. Parker
James Williams mailto:[EMAIL PROTECTED] on Friday, March 18, 2005 1:59 PM said: God damn it this is really startin to piss me off... Yeah I hate it when people don't trim their emails and they top po... oh wait you meant the spam! Silly me. ^_^ -- PHP General Mailing List

RE: [PHP] New Website for PHP Coders.. www,lifenit.com

2005-03-18 Thread Robert Cummings
I feel the need to side once more with freedom of choice ;) Cheers, Rob. On Fri, 2005-03-18 at 17:56, Chris W. Parker wrote: James Williams mailto:[EMAIL PROTECTED] on Friday, March 18, 2005 1:59 PM said: God damn it this is really startin to piss me off... Yeah I hate it when

[PHP] Re: Convert time

2005-03-18 Thread Jim Plush
try something like echo date(Y, m, d, g, i, s, $timevalue); thats based on your example or you can do echo date(m/d/Y g:i s, $timevalue); which would show something like 05/19/2005 5:45 23 Jim's PHP Weblog www.litfuel.net/plush [EMAIL PROTECTED] wrote: Hi, I have a database where i store the

Re: [PHP] Setting cookies for other domains

2005-03-18 Thread Scott Haneda
on 3/18/05 5:47 AM, Brian Dunning at [EMAIL PROTECTED] wrote: You are misinterpreting the prefs in browsers, they can not do what you ask. That's fine, I'm perfectly willing to accept this - but can someone explain what the pref IS for? you have not said which browser and what pref you are

[PHP] Re: Different approach?

2005-03-18 Thread John Taylor-Johnston
Sorry to bother. I was hoping for inspiration. The code works. I wonder if there is a cleaner way? John John Taylor-Johnston wrote: Hi, I've read: http://dev.mysql.com/doc/mysql/en/create-table.html Would anyone code/approach this differently?

Re: [PHP] XML HTTP

2005-03-18 Thread Forest Liu
I suppose Jerry was talking about the possibilities, just like the ways you listed. And, perhaps Jerry have his own two servers, and wanna build a whole system in which the servers communicate with ach other via xml doc. In this case, I think SOAP is a better way for Jerry. On Fri, 18 Mar 2005

[PHP] Problem calling function within a class

2005-03-18 Thread Ahmed Abdel-Aliem
hi i am new to classes and i have a problem with a class i wrote here is the class --- class Company { var $Company_Name; var $Company_Referrer_Table; var $Company_Visitor_Table;

Re: [PHP] Problem calling function within a class

2005-03-18 Thread Forest Liu
it shuold be: $SQL_Query = INSERT INTO .$this-Company_Referrer_Table. ( Record_ID , Record_Data ) VALUES ( '', '.$this-Record_Data.'); just use the operator '.' to connect two string. I think php could only identify simple car direcctly as $foo to be its value in a string contain it. The

[PHP] XSLT solution

2005-03-18 Thread Devraj Mukherjee
Hi everyone, I have been very intrigued by the way Gentoo.org offers its documentation. The documents are stored using a series of XML files and are delivered via XSLT via some ruby scripts. Are there any similar frameworks, solutions availble for the PHP world? Devraj -- Devraj Mukherjee

[PHP] fopen

2005-03-18 Thread John Taylor-Johnston
Hi, FOpen question. My script is dying. Our results file could not be opened for writing What can I add to get more info from the die? Do I «have» to specify a pathname in $defaultfile? John $defaultfile = ffmail.txt; #default file to write to @ $results = fopen($datafilename, a); #open

[PHP] Re: fopen

2005-03-18 Thread John Taylor-Johnston
P.S., I've checked the doc and tried a+. It still does not create ffmail.txt. @ $results = fopen($datafilename, a+); # Open for reading and writing; place the file pointer at the end of the file. #If the file does not exist, attempt to create it It does not create it. John FOpen question. My

[PHP] Re: fopen

2005-03-18 Thread John Taylor-Johnston
I could use: or die($php_errormsg); but it is turned off in my php.ini and I can't modify it myself. John FOpen question. My script is dying. Our results file could not be opened for writing What can I add to get more info from the die? $defaultfile = ffmail.txt; #default file to write

Re: [PHP] Re: fopen

2005-03-18 Thread Christopher Evans
try $results = fopen($datafilename, w+); I am newbie at php so that may not work. -- --chris 1-916-501-1423 a href=http://bbx.flnet.org/nxdos/;http://bbx.flnet.org/nxdos//a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] send email sample

2005-03-18 Thread issin
Dear all, Can you give me a send email sample? Thanks! Best Regards, Issin Yeung Information from NOD32 This message was checked by NOD32 Antivirus System for Linux Mail Server. http://www.nod32.com