php-general Digest 24 Jan 2006 14:35:15 -0000 Issue 3924

2006-01-24 Thread php-general-digest-help
php-general Digest 24 Jan 2006 14:35:15 - Issue 3924 Topics (messages 229147 through 229166): Re: Reference Notices -- Urgent 229147 by: Richard Correia 229149 by: Todd Brown Re: Can't printout class variable 229148 by: Sumeet 229161 by: Scott Gunn Help

Re: [PHP] Help with getting PHP to see Pear.

2006-01-24 Thread Sumeet
Payne wrote: Hi, I just installed SuSE 10 and I am having a problem with my phpnuke site and my maia site. PHPNUKE gives me this error... *Warning*: main(db/mysql.php): failed to open stream: No such file or directory in */srv/www/htdocs/bse/db/db.php* on line *53* *Warning*: main(): Failed

[PHP] How would u strip the path?

2006-01-24 Thread Nicholas Couloute
how would u strip the path off of a variable? say that: $bob = /home/s2music/b/bob.mp3; I want bob just to be bob.mp3! how would I do that? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How would u strip the path?

2006-01-24 Thread Paul Scott
On Tue, 2006-01-24 at 04:01 -0500, Nicholas Couloute wrote: how would u strip the path off of a variable? say that: http://za2.php.net/manual/en/function.basename.php basename it! --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP][SOLVED] How would u strip the path?

2006-01-24 Thread Nicholas Couloute
Thanks that is just what I needed! On Tue, 24 Jan 2006 4:08 am, Paul Scott wrote: On Tue, 2006-01-24 at 04:01 -0500, Nicholas Couloute wrote: how would u strip the path off of a variable? say that: http://za2.php.net/manual/en/function.basename.php basename it! --Paul ~Nick Couloute

Re: [PHP] Help with getting PHP to see Pear.

2006-01-24 Thread Jesús Fernández
if you look to your phpinfo it says: '--without-pear' Maybe you'll need to install it with pear support or is it right just to add pear to the include_path? -- Esú - http://esu.proyectoanonimo.com http://www.proyectoanonimo.com

[PHP] Announcement: PHP-Qt

2006-01-24 Thread Thomas Moenicke
Hi, The second release of PHP-Qt is now available. PHP-Qt provides an object-oriented interface to the Qt4 Framework and allows to write Qt applications in the PHP language. PHP-Qt is alpha software and still in a prototype stage, but the first 6 tutorials from Qt documentation are working. I

[PHP] Book Sample Code Help

2006-01-24 Thread Poppy Alexandra
Hi all. I am trying to run some PHP code I got from the O'Reilly book Spidering Hacks and it doesn't seem to be working. Please note, the functions were not inculded in the code, I had to copy it from the book so I might have made mistake. I thought perhaps an experienced PHP programmer might

Re: [PHP] Book Sample Code Help

2006-01-24 Thread David Grant
Poppy, Poppy Alexandra wrote: Parse error: parse error in book-1.php on line 90 Please provide lines 89-91 of book-1.php only please. David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General

Re: [PHP] Can't printout class variable

2006-01-24 Thread Scott Gunn
You led me down the right path. I wasn't including the class definition file before adding the object to the session. Thanks. Sumeet wrote: Scott Gunn wrote: This should be simple. What am I doing wrong? Here is the code that is failing: $user = $_SESSION['user']; print_r($user);

Re: [PHP] Book Sample Code Help

2006-01-24 Thread Jochem Maas
David Grant wrote: Poppy, Poppy Alexandra wrote: Parse error: parse error in book-1.php on line 90 Please provide lines 89-91 of book-1.php only please. humbug David :-) - turns out lines 89-91 will tell the OP nothing about the error because the its the definition of function getBlock()

Re: [PHP] Book Sample Code Help

2006-01-24 Thread Poppy Alexandra
Please provide lines 89-91 of book-1.php only please. humbug David :-) - turns out lines 89-91 will tell the OP nothing about the error because the its the definition of function getBlock() that is missing a closing brace (at around line 38) that si causing the error. Thanks for the reply,

Re: [PHP] Book Sample Code Help

2006-01-24 Thread Poppy Alexandra
it' not to find in the lines 89-91 You missed a } at the end of func getBlock Hello Björn, Thank you also for your reply. I appreciate your help.  KEEP YOUR CODE CLEAN !! This is sample code from a book. I am interested to know what you mean by clean code (formatting,

Re: [PHP] Book Sample Code Help

2006-01-24 Thread Jochem Maas
Poppy Alexandra wrote: Please provide lines 89-91 of book-1.php only please. humbug David :-) - turns out lines 89-91 will tell the OP nothing about the error because the its the definition of function getBlock() that is missing a closing brace (at around line 38) that si causing the error.

[PHP] XML-RPC and comment spam...

2006-01-24 Thread Russell Jones
I am trying to set up a personal blog of mine with the new LinkSleeve.orgXML-RPC link spam service, but I dont know the firs thing about PHP and XML-RPC. I did read that there are some problems with security, though, with the popular PHP XML-RPC classes. Have these been fixed and which would you

[PHP] Re: Custom Usort Function

2006-01-24 Thread Matt Palermo
Any ideas on how to accomplish this? Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm try to sort a list of items using a usort function. Basically, I want it to sort in this order: Numbers (0-9) Letters (Aa-Zz) Other (anything else) To explain a little

[PHP] query problem.

2006-01-24 Thread Angelo Zanetti
Hi guys. I got an entry in a field called emailfrom in my table (MySQL db). The data in that field is: Sams Bank [EMAIL PROTECTED] I then do the following to retrieve the info, using a DB class $recordset=$conn-Execute(SELECT * FROM wiml_history WHERE id = $task_id);

Re: [PHP] Re: Custom Usort Function

2006-01-24 Thread David Grant
Matt, Personally, I'd do a logic case for each combination, e.g. if (ctype_alpha($x[0])) { if (ctype_alpha($y[0])) { //strcmp } elseif (ctype_digit([$y[0])) { //-1 } else { // 1; } } elseif (ctype_digit([$x[0])) { if (ctype_alpha($y[0])) { //

Re: [PHP] query problem.

2006-01-24 Thread David Grant
Angelo, Angelo Zanetti wrote: Why does the cause that not to be displayed? or is it retrieving it correctly but not showing it because of the (which might be conflicting with HTML tags? Look at the source! David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List

Re: [PHP] query problem.

2006-01-24 Thread Silvio Porcellana [tradeOver]
Angelo Zanetti wrote: (...) Why does the cause that not to be displayed? or is it retrieving it correctly but not showing it because of the (which might be conflicting with HTML tags? When showing things in an HTML page it's always a good idea to use 'htmlspecialchars' (or

[PHP] Re: query problem.

2006-01-24 Thread Barry
Angelo Zanetti wrote: Hi guys. I got an entry in a field called emailfrom in my table (MySQL db). The data in that field is: Sams Bank [EMAIL PROTECTED] I then do the following to retrieve the info, using a DB class $recordset=$conn-Execute(SELECT * FROM wiml_history WHERE id = $task_id);

RE: [PHP] Re: query problem.

2006-01-24 Thread Albert
Angelo Zanetti wrote: Why does the cause that not to be displayed? or is it retrieving it correctly but not showing it because of the (which might be conflicting with HTML tags? Whenever you have something between for example this will not show The browser will interpret it as an

[PHP] RE: (SCL: 5) [PHP] query problem.

2006-01-24 Thread Duffy, Scott E
Viewing in browser? If so view source. -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 7:01 AM To: PHP List Subject: (SCL: 5) [PHP] query problem. Hi guys. I got an entry in a field called emailfrom in my table (MySQL db). The data

[PHP] Problem with Sessions

2006-01-24 Thread Barry
Hi! I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart and so. so fine so good. But when the customer goes through that Page some session vars just get NULL. Not the whole session

[PHP] Re: Custom Usort Function

2006-01-24 Thread Al
Matt Palermo wrote: I'm try to sort a list of items using a usort function. Basically, I want it to sort in this order: Numbers (0-9) Letters (Aa-Zz) Other (anything else) To explain a little further, I want anything that starts with a number to show up first in the sorted list, then

Re: [PHP] Problem with Sessions

2006-01-24 Thread Jochem Maas
Barry wrote: Hi! I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart and so. so fine so good. But when the customer goes through that Page some session vars just get NULL. are

[PHP] put method

2006-01-24 Thread sunaram patir
could anyone please tell me how to use put method to upload file to a remote server? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] put method

2006-01-24 Thread Jay Paulson
http://us3.php.net/features.file-upload On 1/24/06 11:46 AM, sunaram patir [EMAIL PROTECTED] wrote: could anyone please tell me how to use put method to upload file to a remote server? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] put method

2006-01-24 Thread sunaram patir
i think i would be clearer with this code i have written to do that but in vain. ?php if(isset($_PUT['submit'])){ $fileName=$_PUT['userfile']; /* PUT data comes in on the stdin stream */ $putdata = fopen(php://stdin, r); /* Open a file for writing */ $fp = fopen($fileName, w); /* Read the

Re: [PHP] put method

2006-01-24 Thread Austin Denyer
On Tue, 24 Jan 2006 23:47:46 +0530 sunaram patir [EMAIL PROTECTED] wrote: i think i would be clearer with this code i have written to do that but in vain. snip echo form method='put' action='putMethod.php' enctype='multipart/form-data'; echo Send this file: input name='userfile'

[PHP] SOAP WSDL?

2006-01-24 Thread Jay Paulson
I'm messing around with SOAP with PHP 5 and I was wondering do I have to create my own WSDL's or can PHP create them for me like NuSoap does? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: put method

2006-01-24 Thread James Benson
change the $_PUT to $_FILES, their is no global variable in PHP called $_PUT reading this page will give a working example you can modify: http://php.net/features.file-upload James - http://www.ciwcertified.com - Master CIW

Re: [PHP] query problem.

2006-01-24 Thread Richard Lynch
On Wed, January 25, 2006 7:01 am, Angelo Zanetti wrote: The data in that field is: Sams Bank [EMAIL PROTECTED] . . . Why does the cause that not to be displayed? or is it retrieving it correctly but not showing it because of the (which might be conflicting with HTML tags? You have hit

Re: [PHP] Custom Usort Function

2006-01-24 Thread Richard Lynch
On Mon, January 23, 2006 6:53 pm, Matt Palermo wrote: I'm try to sort a list of items using a usort function. Basically, I want it to sort in this order: Numbers (0-9) Letters (Aa-Zz) Other (anything else) To explain a little further, I want anything that starts with a number to show

Re: [PHP] Problem with Sessions

2006-01-24 Thread Richard Lynch
On Tue, January 24, 2006 10:30 am, Barry wrote: I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart and so. so fine so good. But when the customer goes through that Page some

[PHP] How to check if an object exists

2006-01-24 Thread Derrick Shoemake
I have sort of a silly question. I'm running SugarCRM and trying to track down an error. I dug up the error from the httpd error log and then started checking into the code myself. The error appears to be a code issue, but since I don't know how to properly check to see if an object is

[PHP] PDO: How to fetch TIMESTAMP values?

2006-01-24 Thread Michael Phillipson
I recently began evaluating the feasibility of reworking our current database access framework, which utilizes the PHP-native drivers for our database (Interbase), to one which makes use of the PDO extension. Unfortunately, I quickly hit a roadblock. I have tried every permutation available in

Re: [PHP] How to check if an object exists

2006-01-24 Thread David Grant
Derrick, Derrick Shoemake wrote: Does anyone know if this is the proper way to check for an Objects existence and where I can find more information on doing so? php.net/is_object php.net/instance_of David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List

[PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread Daevid Vincent
Thought I'd give this another shot since I still can't figure it out after nearly a week... I have a gentoo server that doesn't save/restore the CLASS portion of a session, but it does retain other $_SESSION values. This code works fine on a debian box. WORKING BOX: [EMAIL PROTECTED]:/lockdown#

[PHP] Quickform Date element time range.

2006-01-24 Thread Gary Smith
Aloha All, I was wondering how I could set a time range using the date element. What I need is a way to limit the time fields to reflect the times available. So if the range is 7 am to 4 pm I would like the hours menu to only contain 7,8,9,10,11,12,1,2,3,4. Any time selected before 12 would be am

Re: [PHP] How to check if an object exists

2006-01-24 Thread Derrick Shoemake
Thanks David, I changed some code and it apparently didn't give the error anymore but didn't really solve my problem. It appears that the error I was getting wasn't really related to my problem. I'm getting a error in httpd-error.log httpd in free(): error: junk pointer, too high to make

[PHP] Re: $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread James Benson
Take a look at the following functions:- http://php.net/serialize http://php.net/unserialize James - http://www.ciwcertified.com - Master CIW Designer http://www.zend.com - Zend Certified Engineer http://www.jamesbenson.co.uk

Re: [PHP] query problem.

2006-01-24 Thread Brian V Bonini
On Wed, 2006-01-25 at 08:01, Angelo Zanetti wrote: Hi guys. I got an entry in a field called emailfrom in my table (MySQL db). The data in that field is: Sams Bank [EMAIL PROTECTED] I then do the following to retrieve the info, using a DB class $recordset=$conn-Execute(SELECT * FROM

Re: [PHP] PHP not seeing MySQL functions

2006-01-24 Thread PHP Superman
ah sorry, i assumed windows box On 1/22/06, John Nichel [EMAIL PROTECTED] wrote: PHP Superman wrote: did you uncomment the line that adds the proper php module(mysqli_blahblahblah.dll)? How would loading the mysqli modules help the poster with the mysql functions? How would loading

[PHP] Variable variables

2006-01-24 Thread Mark Steudel
I was wondering if you could create variable variables for objects, please see examples below, Im having problems getting it to work. $data['fieldname'] = foo; // without variable variables $res = $db-query( SELECT foo FROM table ); while( $res-fetchInto( $db_data ) )

Re: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread tg-php
You say it's working on one box and not on the other? Maybe I'm wrong (and sounds like I am) but I thought that you couldn't pass objects between scripts even with serialize()? Certainly sounds like it was working for you... can anyone clarify what objects/variables/data types can be passed

[PHP] Re: Variable variables

2006-01-24 Thread James Benson
Mark Steudel wrote: I was wondering if you could create variable variables for objects, please see examples below, Im having problems getting it to work. $data['fieldname'] = foo; // without variable variables $res = $db-query( SELECT foo FROM table ); while(

[PHP] Google using PHP @ http://www.google-store.com

2006-01-24 Thread James Benson
Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com Nice to see :) James - http://www.ciwcertified.com - Master CIW Designer http://www.zend.com - Zend Certified Engineer

[PHP] XML-RPC questions...

2006-01-24 Thread Russell Jones
I have read recently that there are some issues with XML-RPC and security in PHP classes. Have these been fixed? What would you recommend? I am looking to create a LinkSleeve filter for my blog and it requires XML-RPC. rjonesx

RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread Daevid Vincent
No no no. I'm NOT passing data between servers. It's just two pages on the same server. One that sets up the session/class and the other page just re-loads the session. When I talk about two different servers, I copy the entire source/db schema from one server to the other so they are clones for

Re: [PHP] Google using PHP @ spam

2006-01-24 Thread Peter Hoskin
Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site. Yahoo use PHP and sponsor PHP - yet nobody talks about that :-/ James Benson wrote: Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com Nice to

RE: [PHP] Re: $_SESSION saves all values but Class -- works on one server butnot another?! [second plead for help]

2006-01-24 Thread Daevid Vincent
Thank you, but again, not the problem. The same code is on both servers. I'm not transfering from one server to another. Only from page to page ON THE SAME SERVER. This has to be a configuration problem IMHO. -Original Message- From: James Benson [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] imagettftext, text values. How to add a new line? is it \n?

2006-01-24 Thread Richard Correia
hey, Check the properties at http://www.weberdev.com/Manuals/PHP/function.imagettftext.html You can try second imagettftext with new X and Y co-ordinates. Thanks Richard On 1/25/06, Louie Miranda [EMAIL PROTECTED] wrote: imagettftext($im, $size, 0, 2, 13, $text_color,

Re: [PHP] Problem with Sessions

2006-01-24 Thread Richard Correia
upgrade to 4.4.X 4.2 has known problems in session handling. Thanks, Richard On 1/24/06, Barry [EMAIL PROTECTED] wrote: Hi! I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart

Re: [PHP] RE: (SCL: 5) [PHP] query problem.

2006-01-24 Thread Richard Correia
Remove those brackets and . Or print htmlentities($email_address); Thanks Richard On 1/24/06, Duffy, Scott E [EMAIL PROTECTED] wrote: Viewing in browser? If so view source. -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 7:01

Re: [PHP] Google using PHP @ spam

2006-01-24 Thread Robert Cummings
On Tue, 2006-01-24 at 21:41, Peter Hoskin wrote: Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site. Yahoo use PHP and sponsor PHP - yet nobody talks about that :-/ Sure they do. Rasmus works for Yahoo and every once in a while one of his

Re: [PHP] Book Sample Code Help

2006-01-24 Thread Poppy Alexandra
which doesn;t actually answer my question :-) you see I have my suspicions about a book named 'Spidering Hacks' - if it was meat I doubt it would be kosher or halal. Hello Jochem It's actually an interesting text with an evil name. I agree the title might sounds suspicious so to answer your

[PHP] upload_max_filesize

2006-01-24 Thread Daniel Lahey
A client has started experiencing problems with uploading files larger than the default 2M set in php.ini. The problem only started occurring a few weeks or so ago, and I cannot figure out how to get around it. I have a php.ini file in the /public_html folder that reads: post_max_size

[PHP] Re: upload_max_filesize

2006-01-24 Thread David Robley
Daniel Lahey wrote: A client has started experiencing problems with uploading files larger than the default 2M set in php.ini. The problem only started occurring a few weeks or so ago, and I cannot figure out how to get around it. I have a php.ini file in the /public_html folder that reads:

[PHP] QUARANTINED: Delivery reports about your e-mail

2006-01-24 Thread WorkgroupMail Content Filter
The message Delivery reports about your e-mail from Bounced mail, sent on 1/25/2006 08:21 was quarantined because it contained either an executable file, a batch file or a screen saver file. All of these types of attachments are considered security risks. Please consult your mail administrator