[PHP] simple terms

2004-12-17 Thread Jason Wydro
i would like to better understand pear. is there some ver basic doc that you know of? --- Jason Wydro voice: 727 489 2684 fax: 727 489 7422 email: [EMAIL PROTECTED] web: http://www.jasonwydro.com/ www.jasonwydro.com

: [PHP] Re: upload file warning

2004-12-17 Thread yangshiqi
All right. I know that it exactly does what it is, and can't be really caught directly since this happens before the script gets control. After display_errors = off, I can pick it up from error logs. Thanks all. -- : M. Sokolewicz [mailto:[EMAIL PROTECTED] : 20041217 14:48 : [EMAIL

[PHP] File-handling

2004-12-17 Thread gustav
Hi there! Can someone explain the major difference between fgets and fopen? Which is the best together with plain textfiles? and why? eof and feof. What's the difF? *don't get it* When using fget. Is it something special you should think when taking care of line-breaks? (/n, /r/n ...) /G --

Re: [PHP] File-handling

2004-12-17 Thread Ian Firla
fgets uses the resource created by fopen. Read the manual: http://it.php.net/fopen http://it.php.net/fgets look at the example: ?php $handle = fopen(/tmp/inputfile.txt, r); while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } fclose($handle); ? Ian On Fri,

[PHP] mysql sessions vs flat file?

2004-12-17 Thread Jason Morehouse
Hello all, Has anyone had an experience with storing sessions in mysql (or sqlite)? If so, what if any are the performance benefits? Obviously, there would have to be an extra db query per page... but would that be faster then opening a text file? Also, I was trying to post to the php news

[PHP] Refreshing page after form submission

2004-12-17 Thread S.D.Price
Hi, I have a form which when submitted adds a record to a DB. However if the user clicks back it resubmits the same record. I have tried using cache control to no avail : header (Expires: Mon, 26 Jul 1997 05:00:00 GMT); header (Last-Modified: . gmdate(D, d M Y H:i:s). GMT); header

Re: [PHP] mysql sessions vs flat file?

2004-12-17 Thread Raditha Dissanayake
Jason Morehouse wrote: Hello all, Has anyone had an experience with storing sessions in mysql (or sqlite)? If so, what if any are the performance benefits? Obviously, there would have to be an extra db query per page... but would that be faster then opening a text file? Speed depends on

[PHP] IDE recommendation-- (Free?)

2004-12-17 Thread GH
Hi... I am looking for a FREE PHP IDE that uses syntax highlighting and code completion amongst other features... Do any of you have any recommendations... again I am looking for FREE (not much budget for me)? I use BOTH Linux and Windows Thanks Gary -- PHP General Mailing List

Re: [PHP] IDE recommendation-- (Free?)

2004-12-17 Thread John Nichel
GH wrote: Hi... I am looking for a FREE PHP IDE that uses syntax highlighting and code completion amongst other features... Do any of you have any recommendations... again I am looking for FREE (not much budget for me)? I use BOTH Linux and Windows Thanks Gary Yeah, search the archives and/or

Re: [PHP] IDE recommendation-- (Free?)

2004-12-17 Thread Mat Harris
On Fri, Dec 17, 2004 at 08:20:36 -0500, GH wrote: Hi... I am looking for a FREE PHP IDE that uses syntax highlighting and code completion amongst other features... Do any of you have any recommendations... again I am looking for FREE (not much budget for me)? I use BOTH Linux and

Re: [PHP] IDE recommendation-- (Free?)

2004-12-17 Thread Jeffery Fernandez
Mat Harris wrote: On Fri, Dec 17, 2004 at 08:20:36 -0500, GH wrote: Hi... I am looking for a FREE PHP IDE that uses syntax highlighting and code completion amongst other features... Do any of you have any recommendations... again I am looking for FREE (not much budget for me)? I use BOTH Linux

Re: [PHP] Refreshing page after form submission

2004-12-17 Thread Mike Smith
Would something like this work If($_POST['submit']){//add error checking for whatever critical fields echo Thank you for filling out my form.\n; } else { //display form with a input type=submit name=submit value=Save } -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Question

2004-12-17 Thread Tom Luigjes
Hi, I'm trying to make a little script to edit arrays. For example, i have an array file named config.php, and it holds this: ?php $config = array( 'email' = 'E-mail', 'meta_author' = 'Author', ? I wish to edit this file, through another file, named edit.php, or admin.php, i

[PHP] Re: File Locking during *other* file operations

2004-12-17 Thread Jason Barnett
Gerard Samuel wrote: Im talking about file locking during deleting, and moving files. Is it possible to perform file locking for these file operations? If so, can you provide psuedo code. Thanks Sure... just acquire the exclusive lock like you would for writing to a file, but do the delete / move

RE: [PHP] File Locking during *other* file operations

2004-12-17 Thread Michael Sims
Gerard Samuel wrote: Im talking about file locking during deleting, and moving files. Is it possible to perform file locking for these file operations? Yes, have your scripts attempt to lock a separate lock file before performing deleting or moving operations. -- PHP General Mailing List

Re: [PHP] Question

2004-12-17 Thread Ligaya Turmelle
I assume by edit you mean change the value to something completely new. If you are having the user input the new value you 1) must make sure it is valid input and 2)move it into the array value (maybe set the array as a session variable so it crosses over to the next page instead of being re

Re: [PHP] simple terms

2004-12-17 Thread Ligaya Turmelle
All I know of is the PEAR documentation (http://pear.php.net/manual/en/introduction.php) and a couple of books on the market. I have Essential PHP Tools... by David Sklar

[PHP] Re: I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

2004-12-17 Thread Monique Verrier
Hi David -- When I do that, it creates a problem because it displays a at the bottom of my screen. It is making me crazy! I think it has to do with all the quotes in the HTML, but I don't know how to deal with it. I have listed the code below. Do you have any ideas? Thank you for you help.

Re: [PHP] Miami PHP groups?

2004-12-17 Thread Ligaya Turmelle
http://www.php.net/support.php -- and follow the links under user groups Respectfully, Ligaya Turmelle --- Life is a game... so have fun. --- www.PHPCommunity.org Open Source, Open Community Visit for more information or to join the movement Josh wrote: Any computer groups or resources for

[PHP] Problem with loose typing

2004-12-17 Thread Chris Boget
Consider the following: function test() { static $i = 0; $i++; $retval = ( $i = 10 ) ? $i : ''; return $retval; } while( $bob = test()) { echo $bob . 'br'; } You would expect the while loop to go on forever just looking at the above code. However, what's

Re: [PHP] Re: I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

2004-12-17 Thread Richard Lynch
You need to http://php.net/urlencode anything you echo into a HIDDEN INPUT so that the HTML tags in it don't get used by the browser display rendering engine. Monique Verrier wrote: Hi David -- When I do that, it creates a problem because it displays a at the bottom of my screen. It is

Re: [PHP] Refreshing page after form submission

2004-12-17 Thread Richard Lynch
S.D.Price wrote: Hi, I have a form which when submitted adds a record to a DB. However if the user clicks back it resubmits the same record. When you send out the FORM the first time, create a random unique value: $token = md5(uniqid()); Store that token in your database in a table. Include

[PHP] Re: Problem with loose typing

2004-12-17 Thread M. Sokolewicz
Chris Boget wrote: Consider the following: function test() { static $i = 0; $i++; $retval = ( $i = 10 ) ? $i : ''; return $retval; } while( $bob = test()) { echo $bob . 'br'; } while(false !== ($bob = test())) { echo $bob . 'br'; } You would expect the while

RE: [PHP] Problem with loose typing

2004-12-17 Thread Michael Sims
Chris Boget wrote: function test() { static $i = 0; $i++; $retval = ( $i = 10 ) ? $i : ''; return $retval; } while( $bob = test()) { echo $bob . 'br'; } You would expect the while loop to go on forever just looking at the above code. I wouldn't,

[PHP] How to verify the file after the FTP transfer???

2004-12-17 Thread Scott Fletcher
Hi! I'm now stuck on how to verify the file after the FTP transfer. I'm writing a script that do the files and database backup and verifying them. I'm using the Unix machine. Since I'm using the tar utility via the shell environment in PHP, like PassThru() or Exec(). I'm using the tar utility

Re: [PHP] Problem with loose typing

2004-12-17 Thread Jason Wong
On Saturday 18 December 2004 00:02, Chris Boget wrote: Is there any way that I can force this not to happen? That the while loop resolves as FALSE only when the function actually returns a (boolean) FALSE value? Make the test more explicit: while (TRUE === ($bob = test())) { ... } --

RE: [PHP] Refreshing page after form submission

2004-12-17 Thread S.D.Price
Thanks this was the best solution I used this code as part of form validation. // query to check record has not already been added by comparing submitted title with title of last record $query_gnewsid_unique = SELECT MAX(newsid) AS newsid FROM tblnews; // execute query

Re: [PHP] Problem with loose typing

2004-12-17 Thread Matt M.
You would expect the while loop to go on forever just looking at the above code. However, what's happening is that when the empty string is getting returned due to $i being 10, the while loop is resolving FALSE when $bob is set to the value of the empty string. Is there any way that I can

[PHP] Mass mySQL update...

2004-12-17 Thread Russell P Jones
So I populated a mySQL database but forgot to create random ids for each record. I have used phpmyadmin to add a varchar(15) column named id at the end of the database for each record, but now am wondering if there is an easy way to get random ID's into each of these... The column values for

[PHP] Re: Conflicts between c-client and MySQL

2004-12-17 Thread Sasha Dolgy
Hi, Has anyone else had any success with this? MySQL-client-4.1.7-0 php 5.0.3 /usr/local/imap-2004a/lib/libc-client.a(misc.o)(.text+0x8a4): In function `hash_reset': /build/imap-2004a/c-client/misc.c:278: multiple definition of `hash_reset'

Re: [PHP] File-handling

2004-12-17 Thread Richard Lynch
[EMAIL PROTECTED] wrote: Hi there! Can someone explain the major difference between fgets and fopen? Which is the best together with plain textfiles? and why? fgets can be handy to read a large file one LINE at a time. This is most useful in files that are line-based, such as SQL data dumps,

Re: [PHP] Miami PHP groups?

2004-12-17 Thread Richard Lynch
Josh wrote: Any computer groups or resources for learning PHP in the Miami area? I am new here ... trying to learn PHP... would like to meet other people doing the same. I can't believe you tried to Google and didn't find it... :-) http://phpusergroups.org/groups.phtml?id=311menu=groups --

Re: [PHP] File Locking during *other* file operations

2004-12-17 Thread Gerard Samuel
Michael Sims wrote: Yes, have your scripts attempt to lock a separate lock file before performing deleting or moving operations. Jason Barnett wrote: Sure... just acquire the exclusive lock like you would for writing to a file, but do the delete / move instead. Your apps must actually try to

[PHP] User Groups Mailing List

2004-12-17 Thread Richard Lynch
Is there any interest in a PHP mailing list for User Groups? I'm thinking topics along the lines of: Forming a User Group Promoting a User Group TipsTricks for increasing attendance and the quality of meetings Perhaps sharing/swapping resources, recommending speakers. Posts by experts who are

Re: [PHP] mysql sessions vs flat file?

2004-12-17 Thread Robert Cummings
On Fri, 2004-12-17 at 11:34, Richard Lynch wrote: Granted, this assumes you've got a good clean working SQL-based session setup in the first place, which is several days, perhaps even weeks of work for the beginner, before they really understand all the bits and pieces and ins and outs of the

Re: [PHP] How to verify the file after the FTP transfer???

2004-12-17 Thread Richard Davey
Hello Scott, Friday, December 17, 2004, 4:26:46 PM, you wrote: SF As for the FTP, I decided to do the Exec() for transfering and SF verifying. Now the only thing left is to verify it. I welcome your SF suggestion and thought on this... Perform an ls/dir on the FTP server once it has completed -

Re: [PHP] pspell on w32

2004-12-17 Thread Richard Lynch
php wrote: A phpinfo() command shows that I have php4.3.10 with pspell enabled. However, when I run the command pspell_check($pspell_link, testt) in my web scripts, the page appears to header redirect on itself indefinitely. Try to use wget or the MS-DOS equivalent to find out exactly what the

Re: [PHP] web IDE

2004-12-17 Thread Richard Lynch
Malcolm Mill wrote: Create a web page that allows me to create files with basic formating tags in them (i.e for html htmlbody./body/html: for shell #!/usr/bin/php: for php ?php.?). You can use PHP to http://php.net/echo out any kind of content you want, including HTML if you use

Re: [PHP] Re: Using constructs like unset() in expressions like ()()

2004-12-17 Thread Richard Lynch
Tomas Tintera wrote: Thanks for your answers (you probably don't understand me). I am looking for some construct (or statement or function) which allows to do this: ?php (True==False) or (construct_i_am_looking_for(unset($a))); ? Note that the unset() has no return value (and so it can't

Re: [PHP] Delete files from the server

2004-12-17 Thread Richard Lynch
Steve Marquez wrote: I have uploaded some pictures and thumbnails using a PHP form into a particular directory. I would like to be able to select the name of the picture and then chose to delete that picture and its thumbnail from the server using another form. The name of the picture is in

RE: [PHP] Question in posting form-data

2004-12-17 Thread Richard Lynch
Yao, Minghua wrote: Yes. I did modify the original since I need to send data to a program which takes only form-data. content-disposition: came from RFC 2388. I don't think the program can take application/x-www-form-urlencoded content. Further help needed. Try it the old way -- I suspect

Re: [PHP] mysql sessions vs flat file?

2004-12-17 Thread Richard Lynch
Jason Morehouse wrote: Has anyone had an experience with storing sessions in mysql (or sqlite)? Yes, in MySQL. If so, what if any are the performance benefits? This depends on *SO* many factors... Is your MySQL database pretty small? Is your site heavy traffic? Are most of your sessions

Re: [PHP] Mass mySQL update...

2004-12-17 Thread Jason Wong
On Saturday 18 December 2004 00:39, Russell P Jones wrote: I have used phpmyadmin to add a varchar(15) column named id at the end of the database for each record, but now am wondering if there is an easy way to get random ID's into each of these... Why? What are these random ID's used for?

Re: [PHP] Mass mySQL update...

2004-12-17 Thread John Nichel
Russell P Jones wrote: So I populated a mySQL database but forgot to create random ids for each record. I have used phpmyadmin to add a varchar(15) column named id at the end of the database for each record, but now am wondering if there is an easy way to get random ID's into each of these... The

Re: [PHP] GD, problem adding text to GIF images

2004-12-17 Thread Richard Lynch
Greg Donald wrote: On Thu, 16 Dec 2004 12:27:27 -0700, Vail, Warren [EMAIL PROTECTED] wrote: I believe that is the nature of GIF images, I seem to recall they were very compact but limited to a maximum of 16 colors (or 32 or some number like that[maybe 64]), fewer colors that JPEG. Anyone

Re: [PHP] GD, problem adding text to GIF images

2004-12-17 Thread Richard Lynch
Juan Nin wrote: I'm adding text to images using the native gd in PHP 4.3.9 I have no problems with jpg images, but with gif ones, the colour of the text added to the image always results a dark grey The image itself and text are fine, but not the colour, which should be white.. Has anyone

Re: [PHP] Problem with loose typing

2004-12-17 Thread Richard Lynch
Chris Boget wrote: Consider the following: function test() { static $i = 0; $i++; $retval = ( $i = 10 ) ? $i : ''; return $retval; } while( $bob = test()) { echo $bob . 'br'; } You would expect the while loop to go on forever just looking at the above

Re: [PHP] mysql sessions vs flat file?

2004-12-17 Thread Richard Lynch
Robert Cummings wrote: On Fri, 2004-12-17 at 11:34, Richard Lynch wrote: Granted, this assumes you've got a good clean working SQL-based session setup in the first place, which is several days, perhaps even weeks of work for the beginner, before they really understand all the bits and

Re: [PHP] User Groups Mailing List

2004-12-17 Thread Chris Shiflett
--- Richard Lynch [EMAIL PROTECTED] wrote: Is there any interest in a PHP mailing list for User Groups? Yep. :-) http://lists.nyphp.org/mailman/listinfo/phpm That list consists of several user group leaders, company representatives (mainly book and magazine publishers), and other notable

Re: [PHP] Re: I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

2004-12-17 Thread Monique Verrier
Thanks for the help already. I am still struggling. I didn't have any luck with urlencode(), but I used htmlentities() and the variable did get passed as a section of HTML code. When I sent the mail, however, it displayed as text within the e-mail message and not as a table. I was using these

Re: [PHP] How to verify the file after the FTP transfer???

2004-12-17 Thread Richard Lynch
Scott Fletcher wrote: Hi! I'm now stuck on how to verify the file after the FTP transfer. I'm writing a script that do the files and database backup and verifying them. I'm using the Unix machine. Since I'm using the tar utility via the shell environment in PHP, like PassThru() or Exec().

Re: [PHP] Mass mySQL update...

2004-12-17 Thread Ligaya Turmelle
if you don't mind it being an int - try something like... ALTER TABLE table ADD ID INT NOT NULL INTEGER UNIQUE AUTO_INCREMENT, ADD PRIMARY KEY (ID); Reference: http://dev.mysql.com/doc/mysql/en/ALTER_TABLE.html Respectfully, Ligaya Turmelle --- Life is a game... so have fun. ---

[PHP] formating output

2004-12-17 Thread Larry L
I'm sure this is easy and I'll feel silly when I see how it's done, but, my mnd is a blank, this structure prints out a table with a new row for each item table ? While ( $results = mysql_fetch_array($pointer)) { print trtd $results[1] /td/tr ; } ?

RE: [PHP] User Groups Mailing List

2004-12-17 Thread Vail, Warren
http://www.meetup.com is a website that has been around a couple of years at least, and provides lots of organization tips for groups interested in most subject and yes there is a whole series of them oriented around PHP, and I believe another around MySQL. Promote, promote, promote, seems to be

[PHP] PHP problem

2004-12-17 Thread GD-Aqua
I would like to know what this problem is. PHP has encountered an Access Violation at 01650AFD Thank You -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pspell on w32

2004-12-17 Thread php
Thank you for the comments. I've run my script command line and found the following: Unhandled Error: C:\Aspell\dict/en-only.rws: The file C:\Aspell\data/iso8859-1. dat is not in the proper format. abnormal program termination It looks like the directory aspell is looking for is being

Re: [PHP] Re: I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

2004-12-17 Thread Richard Lynch
Monique Verrier wrote: Thanks for the help already. I am still struggling. I didn't have any luck with urlencode(), but I used htmlentities() and the variable did get passed as a section of HTML code. When I sent the mail, however, it displayed as text within the e-mail message and not as

RE: [PHP] User Groups Mailing List

2004-12-17 Thread Richard Lynch
Vail, Warren wrote: http://www.meetup.com is a website that has been around a couple of years at least, and provides lots of organization tips for groups interested in most subject and yes there is a whole series of them oriented around PHP, and I believe another around MySQL. Promote,

[PHP] problem with PHP

2004-12-17 Thread GD-Aqua
I would like to know what this mean`s. PHP has encountered an Access Violation at 01650AFD Thank You Mike harrell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] nntp://news.php.net -- read only?

2004-12-17 Thread Jason Morehouse
Sorry for the lame question... but I prefer to read and reply to messages via the news server. However, I can't seem to post to news.php.net. I'm using thunderbird, and have tried a few different outgoing servers, including news.php.net. Is the news server read only? I thought for sure I

Re: [PHP] mysql sessions vs flat file?

2004-12-17 Thread Greg Donald
On Fri, 17 Dec 2004 09:57:56 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Yeah, a beginner trying to write an OOP MySQL session based system would take MONTHS, and still get it all wrong with nasty snarled code. Months? Come on.. it's just six functions and a call to

RE: [PHP] formating output

2004-12-17 Thread Jay Blanchard
[snip] this structure prints out a table with a new row for each item table ? While ( $results = mysql_fetch_array($pointer)) { print trtd $results[1] /td/tr ; } ? /table what I want to do is print out a table 4 columns wide and however many rows high needed to run through the data HOW

[PHP] Re: nntp://news.php.net -- read only?

2004-12-17 Thread Daniel Schierbeck
Jason Morehouse wrote: Sorry for the lame question... but I prefer to read and reply to messages via the news server. However, I can't seem to post to news.php.net. I'm using thunderbird, and have tried a few different outgoing servers, including news.php.net. Is the news server read only?

RE: [PHP] Question in posting form-data

2004-12-17 Thread Yao, Minghua
Thank you for your reply. I tried the original code. It worked well. But the site I am trying to send the data to only takes form-data. That is why I modified the code. I tried $name= and urlencode. It didn't help. -Minghua -Original Message- From: Richard Lynch [mailto:[EMAIL

[PHP] Re: nntp://news.php.net -- read only?

2004-12-17 Thread Jason Barnett
Jason Morehouse wrote: Sorry for the lame question... but I prefer to read and reply to messages via the news server. However, I can't seem to post to news.php.net. I'm using thunderbird, and have tried a few different outgoing servers, including news.php.net. Is the news server read only?

RE: [PHP] PHP problem

2004-12-17 Thread Mike
How about this - Tell us the OS, version of PHP, the portion of the code it's dying on (enable some logfile writing if you don't know) and any other *useful* information and we might be able to help you. Did you do any Google searching? I searched for 01650AFD and came up with a number of

[PHP] How do I find my php.ini file?

2004-12-17 Thread Don
Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find it???

RE: [PHP] problem with PHP

2004-12-17 Thread Jay Blanchard
[snip] I would like to know what this mean`s. PHP has encountered an Access Violation at 01650AFD Thank You Mike harrell [/snip] If you ask the question over and over no one will answer you. You must be patient. Have you searched for the answer on the web? An access violation

RE: [PHP] How do I find my php.ini file?

2004-12-17 Thread Jay Blanchard
[snip] Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find it???

Re: [PHP] How do I find my php.ini file?

2004-12-17 Thread Matthew Sims
Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find

Re: [PHP] How do I find my php.ini file?

2004-12-17 Thread John Nichel
Don wrote: Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find

[PHP] 4.3.10 breaking things?

2004-12-17 Thread Ben
Hi All, I just upgraded to 4.3.10 and have found a number of scripts have broken including: phpMyAdmin-2.6.1-rc1 squirrelmail-1.4.3a + the xss patch Both of these worked just fine with php 4.3.9 with the switch to 4.3.10 being the only change that has been made. In addition pdflib functions

Re: [PHP] How do I find my php.ini file?

2004-12-17 Thread John Holmes
Don wrote: Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find

[PHP] Re: Using constructs like unset() in expressions like ()()

2004-12-17 Thread Tomas Tintera
Richard Lynch wrote: Perhaps something like this: function my_unset($var){ global $$var; $wasset = isset($$var); unset($$var); return $wasset; } my_unset(a); //unset($a); Or, in a more general way: function forcereturn ($php){ return eval($php); } Damned if I understand *why* you want

[PHP] Re: 4.3.10 breaking things? Back working after reverting to 4.3.9

2004-12-17 Thread Ben
Ben wrote: Hi All, I just upgraded to 4.3.10 and have found a number of scripts have broken including: phpMyAdmin-2.6.1-rc1 squirrelmail-1.4.3a + the xss patch I know, bad form replying to one's own message... Reverting back to 4.3.9 with the same build configuration options used in 4.3.10 has

[PHP] Scope issue

2004-12-17 Thread GH
Hi I am having an issue with I think it is the scope of variables: I have a file that I am including which has the following ?php // +-- // | PHP Source //

RE: [PHP] Re: 4.3.10 breaking things? Back working after reverting to 4.3.9

2004-12-17 Thread Michael Sims
Ben wrote: Reverting back to 4.3.9 with the same build configuration options used in 4.3.10 has fixed the problems with the various scripts. Do you use Zend Optimizer? If so you should upgrade to the latest version: http://bugs.php.net/bug.php?id=31134 http://bugs.php.net/bug.php?id=31108 I

[PHP] script PHP to detect IP address

2004-12-17 Thread welly limston
Anybody out there who know the PHP script that can use to detect an IP address of a PC? If u don’t know, maybe some sites address which have related with this topic, might be point me little. Many your help very appreciate. Thank’s so much for ur respone

RE: [PHP] Scope issue

2004-12-17 Thread Mike
In my main file, I am attempting to from with in a function call $language['project_name'] and i am failing... can you offer any advice? Are there any specific reasons that you need to set the variable to global scope? It's typically recommended that unless you need to, to pass the

RE: [PHP] script PHP to detect IP address

2004-12-17 Thread Warren Vail
hmmm, perhaps you are not clear about how IP addresses are used (assigned and reassigned), if your interest is the ip address of a PC connected to your website or the ip of the website, probably depends on your web server, for my apache server; $_SERVER[SERVER_ADDR] (apache server IP address, at

Re: [PHP] formating output

2004-12-17 Thread Tatang Widyanto
print table\n; print tr\n; $counter = 0; while ($result = mysql_fetch_array($pointer)) { $counter++; if ($counter % 4 === 0) { print td.$result[1]./td\n; print /tr\n; print tr\n; } else { print td.$result[1]./td\n; } } // add blank cells if number of

Re: [PHP] How do I find my php.ini file?

2004-12-17 Thread S. Kang
use phpinfo() function and look for Configuration File (php.ini) Path. for example of php 5.0x, it is normally /etc/php.5.ini good luck. Jay Blanchard wrote: [snip] Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my

Re: [PHP] Re: 4.3.10 breaking things? Back working after reverting to 4.3.9

2004-12-17 Thread The Doctor
On Fri, Dec 17, 2004 at 06:47:23PM -0600, Michael Sims wrote: Ben wrote: Reverting back to 4.3.9 with the same build configuration options used in 4.3.10 has fixed the problems with the various scripts. Do you use Zend Optimizer? If so you should upgrade to the latest version: