php-general Digest 25 Feb 2005 16:18:28 -0000 Issue 3305

2005-02-25 Thread php-general-digest-help
php-general Digest 25 Feb 2005 16:18:28 - Issue 3305 Topics (messages 209335 through 209345): Re: Cookies 209335 by: Burhan Khalid 209336 by: Andre Dubuc how to increase maximum upload file size 209337 by: Srinadh Sannidhanam 209338 by: Jochem Maas Problem

Re: [PHP] Identifying a user who previously created a profile

2005-02-25 Thread Bret Hughes
On Thu, 2005-02-24 at 04:02, Jacques wrote: How can I ensure that a user is prevented from creating a second profile after he has registered a second time with different registration details? I thought of capturing his IP Address and checking this value against my users table in my

Re: [PHP] fopen and redirects

2005-02-25 Thread Richard Lynch
Warren Vail wrote: I am using fopen with a url to open a remote file (read only of course). The url I am providing results in a redirect and the fopen seems to be smart enough to follow the redirect to return the actual file contents. How can I get at the redirected filename? The problem

[PHP] Communication protocol of PHP and Mysql

2005-02-25 Thread Bruno Santos
Hello all. Im developing an application as my final school project and for the report (administration manual) i need to specifie the protocol of communication between PHP and Mysql when accessing the mysql database using the functions within PHP. PHP communicates with Mysql throw TCP/IP or any

[PHP] FTP info in a variable

2005-02-25 Thread Steve Buehler
I have to write a little program that pulls information from a database, formats it into csv format for importing into excel and ftps it to another server. I have everything worked out except for the ftping. I have read through http://us4.php.net/manual/en/ref.ftp.php and I know I can get

Re: [PHP] Word file to PDF

2005-02-25 Thread kermodebear
Hello Kevin, You might want to try this: Run PHP on a windows platform that has MSWord and the PDF printing libraries installed. Use PHP's COM support to load an MSWord object and see if you can get it to load the word document and print it out as a PDF file. Once it is printed to the file, you

Re: [PHP] Hi ALL

2005-02-25 Thread Chris Shiflett
--- Jochem Maas [EMAIL PROTECTED] wrote: i have mailed the list 235 times since 12-1-05 Nice trick. :-) I'd put my money on Richard Lynch for all categories: 1. total number of posts 2. highest average no. of posts/week 3. longest post 4. total no. of words written 5. highest average

[PHP] FTP info in a variable

2005-02-25 Thread Steve Buehler
original message I have to write a little program that pulls information from a database, formats it into csv format for importing into excel and ftps it to another server. I have everything worked out except for the ftping. I have read through

Re: [PHP] Cookies

2005-02-25 Thread Chris Shiflett
--- William Stokes [EMAIL PROTECTED] wrote: If I send a session cookie to browser where it is stored in WinXP? Session cookies are kept in memory. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon

[PHP] HOWTO read PHP source code into a textarea

2005-02-25 Thread Tim Burgan
Hello, I have a file 'nav.php', whose source code I want to load into the textarea on page 'aaa.php', so the source can be edited and changed. Is there a resource that I can read to help me do this? Thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] hash issues

2005-02-25 Thread Erbacher Karl
Thanks for your input, but I've played around with it and now it's uglier than ever. I'm very new to PHP, so I'm not sure what I'm missing here. I've done a few things to try to pinpoint the problem, but now I'm even more confused. Can you please look over what I've done and let me know if

RE: [PHP] PHP slowness

2005-02-25 Thread Gerard
Hi Brent, I noticed you have your error_reporting level set really high (2039), which is pretty close to everything. That may be fine on a development server, but I wouldn't set it that high on a production server. I'd be curious what you log looks like. Perhaps this is causing your

Re: [PHP] Re: Capturing user's IP Address

2005-02-25 Thread Jon-Eirik Pettersen
On Thu, 24 Feb 2005 09:42:21 +, Nick Talbott [EMAIL PROTECTED] wrote: On Thursday 24 February 2005 9:38 am, N Deepak wrote: Jacques wrote: Which function can I use to capture a user's IP Address when he registers on my site. I would like to store this value in a database. print

[PHP] Hash Issues

2005-02-25 Thread Erbacher Karl
Hello, I'm trying to hash passwords before saving them to a mySQL database but I am having a problem. I created three seperate sample users with three different passwords (password1, password2, password3). When I go back to look at the table info in the database, it has saved the exact same

Re: [PHP] Identifying a user who previously created a profile

2005-02-25 Thread Randy Johnson
You could do a few things here. I would not banned people from signing up again if the ipaddress is in the database. You could make it so no email could be in the database more than once. What I did before was: if a user's ipaddress matches an ipaddress in the database I have the script email

Re: [PHP] uploading files with a single quote in the filename

2005-02-25 Thread Bret Hughes
On Thu, 2005-02-24 at 01:04, Dotan Cohen wrote: that. A little javascript goes a long way in these sort of situations You don't want to do that will javascript. I, for one, surf with javascript turned off. The malicious script kiddie, I would presume, also would be very happy to send you

Re: [PHP] how to increase maximum upload file size

2005-02-25 Thread Bret Hughes
On Thu, 2005-02-24 at 06:32, Srinadh Sannidhanam wrote: Hi, In my application I need to allow the user to upload a file with size more than 2M. I came to know that by default php will allow only 2M. How can change it. I changed, that in php.ini file and restarted apache. but still not

Re: [PHP] hash issues

2005-02-25 Thread Richard Lynch
Erbacher Karl wrote: I am creating a database where I need people to log in using a unique username and password. I would like to hash the passwords using the one-way function mhash(). However, when I try to do this, I have some issues that I cannot figure out. Here is what I have (I'll

Re: [PHP] Capturing user's IP Address

2005-02-25 Thread Randy Johnson
I use: $ipaddress = getenv(REMOTE_ADDR); Jacques wrote: Which function can I use to capture a user's IP Address when he registers on my site. I would like to store this value in a database. Regards Jacques -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] fopen and http://

2005-02-25 Thread Warren Vail
Just a wild guess, but try url; http://localhost/zed/htdocs/rgfindingaids/series594.html or file://zed/htdocs/rgfindingaids/series594.html to bypass your web server I am struggling with the section of the manual that deals with this as well. http://us3.php.net/manual/en/ref.stream.php hope

Re: [PHP] Identifying a user who previously created a profile

2005-02-25 Thread Richard Lynch
Jacques wrote: How can I ensure that a user is prevented from creating a second profile after he has registered a second time with different registration details? You can't. Not totally. You could send them a Cookie, and hope they're not smart enough to delete it before they re-register. You

[PHP] help with adding

2005-02-25 Thread Jay Fitzgerald
I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . 'br /'; } The question is, how would I

Re: [PHP] Re: Server includes and Absolute URL

2005-02-25 Thread Jochem Maas
Jason Barnett wrote: Jacques wrote: Can make use of an absolute URL when using require() or require_once()? Yes, as long as you have allow_url_fopen = 1 in your php.ini unless you absolutely 100% trust the server in question I would say that its madness to include/require a file from another

[PHP] PHP and Access

2005-02-25 Thread Bruno Santos
Hello. I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values from an access database ?? cheers Bruno Santos -- Say no to software patents www.nosoftwarepatents.com/ -- [EMAIL PROTECTED] --

RE: [PHP] Having problem with ob_start('gz_handler'); (seg fault) [SOLVED]

2005-02-25 Thread Chris W. Parker
Burhan Khalid mailto:[EMAIL PROTECTED] on Tuesday, February 22, 2005 11:21 PM said: Chris W. Parker wrote: [ snipped ] I'm running Apache/2.0.40, MySQL 3.23.54, and PHP 4.2.2. You need to upgrade to the latest PHP version, which is 4.3.10 and while you are at it, consider

[PHP] list down

2005-02-25 Thread Kris
sent an email to the list earlier.. never received a copy.. its like the list went down around 8AM CST? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 2/22/05 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP slowness

2005-02-25 Thread Randy Johnson
I think I have heard that your system can get really bogged down if your log files are HUGE. So you probably are right. I dread the size of the log files if he has a rather busy site and is logging everything... Randy Brent Baisley wrote: I noticed you have your error_reporting level set

[PHP] php5.0.3 compile problem cannot find libz

2005-02-25 Thread Kris
Hello, I have PHP5 running but wanted to recompile for mysql support. ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/lib --with-mysql=/usr/local/mysql it complained about libz so I added --with-zlib-dir as: ./configure

Re: [PHP] Was: Putting Evaluated Contents...

2005-02-25 Thread Brian A. Anderson
Hey, Now, how about taking that variable and executing it? How might one do this? For instance: I might have an asp page on one server(Yeah, I have to use asp on that server) generate the results in the form of a bit of php code, and pass it to my php script via include method for execution.

Re: [PHP] Identifying a user who previously created a profile

2005-02-25 Thread Leif Gregory
Hello Jacques, Thursday, February 24, 2005, 3:02:09 AM, you wrote: J I thought of capturing his IP Address and checking this value J against my users table in my database where I have captured IP J Addresses of users who have previously registered. Good luck. There isn't a way that I know of

Re: [PHP] html_entities_decode, but ignoring embedding php tags

2005-02-25 Thread Richard Lynch
Tim Burgan wrote: I have a string: $str = 'lt;pgt;This is a paragraphlt;pgt;lt;?php echo \'hello\'; ?gt;'; Which I convert using: html_entity_decode(stripslashes($str)); Which result in: pThis is a paragraph/p?php echo 'hello'; ? But.. I was the PHP tags to STAY ENCODED like: pThis is

[PHP] PHP Wiki

2005-02-25 Thread Randy Johnson
Is there a Wiki site for PHP? Is there a need for one? -Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Extensions Pass-By-Reference

2005-02-25 Thread Chris Cranford
I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables by reference to my function without enabling call-time pass by reference in the PHP.INI file? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP slowness

2005-02-25 Thread b1nary Developement Team
Hi there, just for testings sake, you should get a script that figures out the page generation time for a php script... As luck would have it, I made a class for this not too long ago. give this a whirl. First, create a php script with this in it... ?php // CREATE THE CLASS class

[PHP] [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread Dave
PHP General, 1. The Situation: I have a forum in which users can enter text which is then displayed on my web site. I want to be able to allow them to insert their own a href tags to provide links. The text is stored in a MySQL database. 2. The Problem: My understanding is that if

Re: SV: SV: SV: [PHP] Copy? - What am I doing wrong???

2005-02-25 Thread Jochem Maas
Wiberg wrote: Hi there! fgtcvs works fine, but there's another problem now... I run updates to the db for each row (every row is unique) and must be updated. If I run the script with 2 rows then my site couldn't open the database from another location. Is this MySQL-specific or PHP-specific?

Re: [PHP] Can $_SERVER['REMOTE_ADDR'] be trusted?

2005-02-25 Thread AdamT
On Wed, 23 Feb 2005 19:17:05 -, SED [EMAIL PROTECTED] wrote: Is it possible for hackers to give a fake IP address when visiting a website running PHP? It might be difficult for a script-kiddy to spoof his IP address, but it isn't difficult for him to find an open proxy server, meaning that

[PHP] Re: Web Browser Timeout on Upload Script

2005-02-25 Thread zzapper
On Wed, 23 Feb 2005 13:01:18 -0800, wrote: Hi, I am running a simple Upload script in PHP using a HTML Form with a File field. The user can browse their computer and upload a file. It works great, except for large files, where the browser will timeout. The timeout appears to happen after

[PHP] List gone quiet?

2005-02-25 Thread Lester Caine
Nothing on list over night? -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what does this mean?

2005-02-25 Thread Diana Castillo
on which page of php.net can I find out what this code does? $a = $b? $a :dian; -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Ext 216 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com

[PHP] What's up with the list?

2005-02-25 Thread John Nichel
Haven't gotten anything from the list since yesterday...is it me, or is it the list. Fix it Jay!!! ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hi ALL

2005-02-25 Thread Jason Barnett
Chris Shiflett wrote: --- Jochem Maas [EMAIL PROTECTED] wrote: 1. total number of posts 2. highest average no. of posts/week 3. longest post 4. total no. of words written 5. highest average no. of words/post Richard certainly contributes a lot, and I think he's in the top 10 (Curt Zirzow

Re: [PHP] PHP slowness

2005-02-25 Thread Jason Barnett
Gerard wrote: Hi Brent, I noticed you have your error_reporting level set really high (2039), which is pretty close to everything. That may be fine on a development server, but I wouldn't set it that high on a production server. I'd be curious what you log looks like. Perhaps this is causing

[PHP] Help Required: How to call .vbs file from .php file?

2005-02-25 Thread lef1
Hi, I am in desperate need of some help in calling a vbscript file from a php file. I have searched high and low and have come up with nothing that will do it. I have found one example of a html file, which will call a vbscript file when the html file is double-clicked, but wont work if the

[PHP] Re: what does this mean?

2005-02-25 Thread Jason Barnett
Diana Castillo wrote: on which page of php.net can I find out what this code does? $a = $b? $a :dian; This is the tertiary operator. It's a shorthand version of ?php if ($b) { $a = $a; } else { $a = dian; } ? -- Teach a man to fish... NEW? |

[PHP] Re: What's up with the list?

2005-02-25 Thread Jason Barnett
John Nichel wrote: Haven't gotten anything from the list since yesterday...is it me, or is it the list. Fix it Jay!!! ;) Sorry, I had to give the server a good kick, then once more for good measure. Nothing like a swift reboot ;) -- Teach a man to fish... NEW? |

[PHP] Re: Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Jason Barnett
Lef1 wrote: Hi, I am in desperate need of some help in calling a vbscript file from a php file. A vbscript file? Do you mean you want PHP to send vbscript to the web browser? If that's the case then just echo the vbscript in some script tags. Or did you mean that you were hoping to run

[PHP] Re: [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread Jason Barnett
The solution for this problem (doing it in the matter that you are suggesting) is certainly going to involve preg_replace(). However, this will require you to match only the tags you want to let through (which is always dangerous) and then strip out all of the rest of them. This can be very

Re: [PHP] List gone quiet?

2005-02-25 Thread dpgirago
Nothing on list over night? -- Lester Caine Nope, so I had to do real work this mourning (sic). David

Re: [PHP] what does this mean?

2005-02-25 Thread Jason Barnett
Leif Gregory wrote: Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D on which page of php.net can I find out what this code does? D $a = $b? $a :dian; It's called a ternary operator, basically an if-else statement. Note to self: write ternary on the blackboard 100

Re: [PHP] [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread Jochem Maas
Dave wrote: PHP General, ... 4. What I've Done So Far: I've looked into the *htmlspecialchars()* http://jp.php.net/manual/en/function.htmlspecialchars.php and *htmlentities(), thinking that they perhaps could pull out characters used in tags, but they seem to be more for formatting

Re: [PHP] PHP and Access

2005-02-25 Thread Matt M.
I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values from an access database ?? http://us4.php.net/odbc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Jay Blanchard
[snip] I am in desperate need of some help in calling a vbscript file from a php file. [/snip] http://www.php.net/exec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what does this mean?

2005-02-25 Thread Jochem Maas
Diana Castillo wrote: on which page of php.net can I find out what this code does? $a = $b? $a :dian; its a form of if statement called the tertiary form (or something), it does exactly the same as this: if ($b) { $a = $a; } else { $a = dian; } don't know which page its on tho

Re: [PHP] what does this mean?

2005-02-25 Thread Leif Gregory
Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D on which page of php.net can I find out what this code does? D $a = $b? $a :dian; It's called a ternary operator, basically an if-else statement. There really isn't a page (that I've found) that explains in on php.net, but

RE: [PHP] HOWTO read PHP source code into a textarea

2005-02-25 Thread Mikey
I have a file 'nav.php', whose source code I want to load into the textarea on page 'aaa.php', so the source can be edited and changed. Is there a resource that I can read to help me do this? If you want to render HTML into a textarea then I am afraid you are on a hiding to nothing - the

[PHP] Open source portal systems???

2005-02-25 Thread Kostyantyn Shakhov
I've got an order for the media portal. Thus, I'm looking for an open source portal systems. First that comes to my mind is PHP-Nuke, but I heared that it requires a powerful server and i'll have just a middle-level one. So, could someone knows another PHP-based open source portal systems? Thank

[PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread David Freedman
When I use this query in PHP it works, and I get all things with the YEAR of 1977, as I expected. $query= SELECT * FROM my_table WHERE Year LIKE 1977 ; But, when I use this query it does not work. $query= SELECT * FROM my_table WHERE Year LIKE 197* ; I thought I should get the result of ALL

Re: [PHP] hash issues

2005-02-25 Thread Jason Wong
On Friday 25 February 2005 08:36, Erbacher Karl wrote: Thanks for your input, but I've played around with it and now it's uglier than ever. I'm very new to PHP, so I'm not sure what I'm missing here. I've done a few things to try to pinpoint the problem, but now I'm even more confused. Can

Re: [PHP] [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread John Nichel
Dave wrote: PHP General, 1. The Situation: I have a forum in which users can enter text which is then displayed on my web site. I want to be able to allow them to insert their own a href tags to provide links. The text is stored in a MySQL database. 2. The Problem: My understanding

Re: [PHP] help with adding

2005-02-25 Thread Jochem Maas
Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . 'br /'; } The question

RE: [PHP] PHP slowness

2005-02-25 Thread Richard Lynch
Gerard wrote: Update on the issue: I just upgraded to PHP5 in an attempt to get the speed under control, it didn't work. What I did notice is that even www.debuginc.com/test2.php (which has NO code in it at ALL, only text) takes 5 seconds to load! Upon closer investigation, it seems that

[PHP] Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Hello, I couldn't find this anywhere on google or PHP's site but I'm pretty sure there's an answer to it. How can I turn the following into something that resembles the ternary operator? ?php if($something) { $this = $that; } ? I seem to remember it looking something like: ?php

[PHP] Re: [PHP-DEV] PHP Extensions Pass-By-Reference

2005-02-25 Thread Marcus Boerger
Hello Chris, you need to define that signature of your functions by supplying ZEND_ARG_INFO's to them. look at ZEND_API.h file for those macros. marcus Friday, February 25, 2005, 2:22:39 AM, you wrote: I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables

Re: [PHP] List gone quiet?

2005-02-25 Thread Danny Brow
On Fri, 2005-02-25 at 11:13 +, Lester Caine wrote: Nothing on list over night? It's a PHP fast :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Word file to PDF

2005-02-25 Thread Rory Browne
Run PHP on a windows platform that has MSWord and the PDF printing libraries installed. Use PHP's COM support to load an MSWord object and see if you can get it to load the word document and print it out as a PDF file. Once it is printed to the file, you can use PHP to read the file and do

Re: [PHP] FTP info in a variable

2005-02-25 Thread Richard Lynch
The list has definitely been quite funky last night and today... Steve Buehler wrote: original message I have to write a little program that pulls information from a database, formats it into csv format for importing into excel and ftps it to another server. I have everything

RE: [PHP] help with adding

2005-02-25 Thread Jesse Castro
-Original Message- From: Jay Fitzgerald [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 9:39 AM To: php-general@lists.php.net Subject: [PHP] help with adding I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The

Re: [PHP] help with adding

2005-02-25 Thread Stephen Johnson
for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i]; $total = $total + $qty; echo $qty . 'br /'; } echo Total $total; ?php /* Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075

Re: [PHP] help with adding

2005-02-25 Thread Leif Gregory
Hello Jay, Thursday, February 24, 2005, 8:39:16 AM, you wrote: J I have messed with this for a couple of days and cant get it right. J Maybe I need sleep :-) J The question is, how would I take add each of these numbers (10+5+25)? for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i];

RE: [PHP] PHP and Access

2005-02-25 Thread Jay Blanchard
[snip] I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values from an access database ?? [/snip] http://us2.php.net/odbc -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] PHP Wiki

2005-02-25 Thread Jay Blanchard
[snip] Is there a Wiki site for PHP? Is there a need for one? [/snip] What would be the wiki's purpose here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread abrea
Instead of allowing your users to enter a tags, why don't you put them in your own web page and just let them enter the url? For instance you would have your form: form method=post action=thepage.php input type=text size=40 name=url ... /form The action page (thepage.php) could include something

RE: [PHP] what does this mean?

2005-02-25 Thread Jay Blanchard
[snip] on which page of php.net can I find out what this code does? $a = $b? $a :dian; [/snip] It is a ternary IF statement...verbose if ($a = $b){ $a; } else { dian; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What's up with the list?

2005-02-25 Thread Jay Blanchard
[snip] Haven't gotten anything from the list since yesterday...is it me, or is it the list. Fix it Jay!!! ;) [/snip] I am up to my arse in an application roll-out and you want me to reboot the computer?!?!?! I don't think so Tim, um er..John! ROFLMMFAO -- PHP General Mailing List

[PHP] Re: [PHP-DEV] PHP Extensions Pass-By-Reference

2005-02-25 Thread Brad House
look at http://cvs.php.net/co.php/php-src/ext/mcve/mcve.c?r=1.28.2.2 the m_completeauthorizations function. -Brad Chris Cranford wrote: I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables by reference to my function without enabling call-time pass by reference

RE: [PHP] PHP Wiki

2005-02-25 Thread Chris W. Parker
Randy Johnson mailto:[EMAIL PROTECTED] on Thursday, February 24, 2005 2:50 PM said: Is there a Wiki site for PHP? Is there a need for one? Been to http://phpcommunity.org/wiki/? Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What's up with the list?

2005-02-25 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] on Friday, February 25, 2005 6:12 AM said: Haven't gotten anything from the list since yesterday...is it me, or is it the list. Fix it Jay!!! ;) While we're asking questions about the list, is it just me or does it take everyone's email 30+ minutes

[PHP] Not able to add data to a MySQL database

2005-02-25 Thread Vaibhav Sibal
Hi, I am not able to insert data into my mysql database using php even if i use a simple code as follows : ?php $link=mysql_connect(localhost,username,password); mysql_select_db(test_db); $query=INSERT INTO 'login' ('uname','access') VALUES ('try','super'); mysql_query($query,$link); ? even after

Re: [PHP] help with adding

2005-02-25 Thread Dan Tappin
You could try: for ($i = 1; isset( $_POST['qty'.$i] ); $i++) { $qty = $_POST['qty'.$i]; $total .= $qty; echo $qty . 'br /'; } echo $total; Dan T On Feb 24, 2005, at 8:39 AM, Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right.

Re: [PHP] help with adding

2005-02-25 Thread Randy Johnson
Try this: $num=0; for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i]; $num=$num+ $qty ; } echo $num; Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty

[PHP] Re: Like ternary but without the else.

2005-02-25 Thread Jason Barnett
Chris W. Parker wrote: Hello, I couldn't find this anywhere on google or PHP's site but I'm pretty sure there's an answer to it. How can I turn the following into something that resembles the ternary operator? ?php if($something) { $this = $that; } ? $this =

Re: [PHP] what does this mean?

2005-02-25 Thread Jochem Maas
Jason Barnett wrote: Leif Gregory wrote: Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D on which page of php.net can I find out what this code does? D $a = $b? $a :dian; It's called a ternary operator, basically an if-else statement. Note to self: write ternary on the

Re: [PHP] PHP Wiki

2005-02-25 Thread Randy Johnson
Nope I had not been there. Thanks for the link Randy Chris W. Parker wrote: Randy Johnson mailto:[EMAIL PROTECTED] on Thursday, February 24, 2005 2:50 PM said: Is there a Wiki site for PHP? Is there a need for one? Been to http://phpcommunity.org/wiki/? Chris. -- PHP General Mailing List

[PHP] Dynamically Generate Pleasing Colors

2005-02-25 Thread Richard Lynch
I'm drawing a GD map from selected points in a database. I am using imagecreatetruecolor. I'm outputting PNGs, but could change to JPEG if it would help. [I doubt it] In experimentation so far, I've found that using the lighter shades is more pleasing to the eye, in general, so want to stay

Re: [PHP] Hi ALL

2005-02-25 Thread Richard Lynch
Chris Shiflett wrote: --- Jochem Maas [EMAIL PROTECTED] wrote: i have mailed the list 235 times since 12-1-05 Nice trick. :-) I'd put my money on Richard Lynch for all categories: 1. total number of posts 2. highest average no. of posts/week 3. longest post 4. total no. of words written

RE: [PHP] fopen and http://

2005-02-25 Thread Richard Lynch
Warren Vail wrote: Hi, I'm having a problem with fopen and http files. I keep getting the error: Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in

Re: [PHP] PHP Wiki

2005-02-25 Thread Robby Russell
On Thu, 2005-02-24 at 17:49 -0500, Randy Johnson wrote: Is there a Wiki site for PHP? Is there a need for one? -Randy The php.net site doesn't really need a wiki. or did you mean is there a php-based wiki? http://www.google.com/search?q=php+wiki -Robby --

Re: [PHP] help with adding

2005-02-25 Thread Richard Lynch
Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . 'br /'; }

[PHP] Re: Not able to add data to a MySQL database

2005-02-25 Thread M. Sokolewicz
You've got errors in your SQL. For once, table-names should not be quoted (with single or double quotes), same goes for column names ('uname' and 'access' in your example). Easiest way to find out without asking is to add a call to mysql_error(), so called error handling...! That would've told

Re: [PHP] Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Richard Lynch
lef1 wrote: I am in desperate need of some help in calling a vbscript file from a php file. I have searched high and low and have come up with nothing that will do it. I have found one example of a html file, which will call a vbscript file when the html file is double-clicked, but wont

Re: SV: SV: SV: [PHP] Copy? - What am I doing wrong???

2005-02-25 Thread Richard Lynch
Jochem Maas wrote: Wiberg wrote: Hi there! fgtcvs works fine, but there's another problem now... I run updates to the db for each row (every row is unique) and must be updated. If I run the script with 2 rows then my site couldn't open the database from another location. Is this

Re: [PHP] [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread Richard Lynch
Can I set up a PHP script which will strictly only allow instances of a href=??? and /a and absolutely nothing else? I would like the http://php.net/strip_tags You'll still want to use a Regular Expression to rip out every attribute/value other than HREF, but at least all the other HTML

[PHP] Re: HOWTO read PHP source code into a textarea

2005-02-25 Thread Jamie Alessio
I have a file 'nav.php', whose source code I want to load into the textarea on page 'aaa.php', so the source can be edited and changed. Is there a resource that I can read to help me do this? Tim, How about putting this in aaa.php? ? $str = file_get_contents('nav.php'); echo textarea

Re: [PHP] PHP Extensions Pass-By-Reference

2005-02-25 Thread Richard Lynch
Chris Cranford wrote: I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables by reference to my function without enabling call-time pass by reference in the PHP.INI file? I think the definition in the C syntax of PHP_FUNCTION will do that for you. You'll

Re: [PHP] PHP and Access

2005-02-25 Thread Richard Lynch
Bruno Santos wrote: I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values from an access database ?? Sure! You can Google for PHP MS-Access and find a ton of info. I'm pretty sure it

Re: [PHP] php5.0.3 compile problem cannot find libz

2005-02-25 Thread Richard Lynch
--with-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib And so configure errors out on Cannot find libz my /usr/lib contains: zlib.so, libz.so.1 .. Can anyone tell me what I need to do on my ./configure to get rolling? It probably can't find /usr/include/libz.h (and friends) Use

Re: [PHP] Was: Putting Evaluated Contents...

2005-02-25 Thread Richard Lynch
Brian A. Anderson wrote: the results I could execute this? Would I have to put the ob_start()... ob_get_clean(); within a function? How would I execute it? http://php.net/eval Just be sure a Bad Guy can't insert mean nasty things into the code you eval() -- Like Music?

Re: [PHP] PHP slowness

2005-02-25 Thread Rasmus Lerdorf
Gerard wrote: Another interesting note; if you click from page to page fast enough, it doesn't take as long to load. For some reason, after the initial 5 second startup hic, it loads consequent pages smoothly. If you wait for 10 seconds and then click a link, it loads for 5 seconds again. I don't

Re: [PHP] PHP Wiki

2005-02-25 Thread Randy Johnson
yea I just thought maybe a php-wiki would be neat, not one programmed in php but a wiki for everything php :-) Randy Robby Russell wrote: On Thu, 2005-02-24 at 17:49 -0500, Randy Johnson wrote: Is there a Wiki site for PHP? Is there a need for one? -Randy The php.net site doesn't really need

  1   2   >