[PHP] possible variable declaration error

2011-03-25 Thread matty jones
I get the following error PHP Notice: Undefined index: publisher in /var/www/testfunctions.php on line 65 and I have narrowed it down to what I *think* is a variable not being declared. Here is the code. //this will fetch the data from a table $d_series_fetch = $db-prepare(SELECT * FROM

Re: [PHP] possible variable declaration error

2011-03-25 Thread james
-bindParam(':id',$id); *should* work. Original Message From: matty jones urlu...@gmail.com To: php-general@lists.php.net Sent: Fri, Mar 25, 2011, 8:19 AM Subject: [PHP] possible variable declaration error I get the following error PHP Notice: Undefined index: publisher in /var/www

Re: [PHP] possible variable declaration error

2011-03-25 Thread Daniel Brown
On Fri, Mar 25, 2011 at 08:18, matty jones urlu...@gmail.com wrote: I get the following error PHP Notice:  Undefined index: publisher in /var/www/testfunctions.php on line 65 and I have narrowed it down to what I *think* is a variable not being declared.  Here is the code. This line is

Re: [PHP] possible variable declaration error

2011-03-25 Thread Daniel Brown
On Fri, Mar 25, 2011 at 08:24, Daniel Brown danbr...@php.net wrote:    So, as you can see, it's complaining because you didn't give it that information.  If you don't always want to have to do so, surround it with an isset() case. And, now that I'm not on a three-inch screen, I can see

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
On Fri, Mar 25, 2011 at 8:34 AM, Daniel Brown danbr...@php.net wrote: On Fri, Mar 25, 2011 at 08:24, Daniel Brown danbr...@php.net wrote: And, now that I'm not on a three-inch screen, I can see that I didn't read your entire message, so my response appears rather idiotic --- because you

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
On Fri, Mar 25, 2011 at 8:24 AM, Daniel Brown danbr...@php.net wrote: On Fri, Mar 25, 2011 at 08:18, matty jones urlu...@gmail.com wrote: I get the following error PHP Notice: Undefined index: publisher in /var/www/testfunctions.php on line 65 and I have narrowed it down to what I

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
Subject: [PHP] possible variable declaration error I get the following error PHP Notice: Undefined index: publisher in /var/www/testfunctions.php on line 65 and I have narrowed it down to what I *think* is a variable not being declared. Here is the code. //this will fetch the data from

Re: [PHP] possible variable declaration error

2011-03-25 Thread Daniel Brown
On Fri, Mar 25, 2011 at 09:00, matty jones urlu...@gmail.com wrote: I used the format of your link and that gave me something like what I was looking for, so I am sure now the error is just in my markup.  How would I get this to work without passing it a value or does the function not work

[PHP] Possible to pinpoint peak memory usage?

2011-03-11 Thread Daniel Hong
Hello, Is it possible to pinpoint the location where the most memory was used? I log memory_get_peak_usage() in sections of my code where I believe the most memory would be consumed, but I haven't had luck with getting an accurate picture. I also log the peak usage at the very end of the code. I

Re: [PHP] Possible to pinpoint peak memory usage?

2011-03-11 Thread David Harkness
On Fri, Mar 11, 2011 at 11:35 AM, Daniel Hong dan...@amagineinc.com wrote: Is it possible to pinpoint the location where the most memory was used? Take a look at XHProf. [1] It will track memory and time of all function calls. Paul Reinheimer created a GUI [2] to make dealing with the data

Re: [PHP] Possible to pinpoint peak memory usage?

2011-03-11 Thread Daniel Hong
Nice. I will give XHProf a try. Thanks! -daniel On Fri, Mar 11, 2011 at 12:04 PM, David Harkness davi...@highgearmedia.comwrote: On Fri, Mar 11, 2011 at 11:35 AM, Daniel Hong dan...@amagineinc.comwrote: Is it possible to pinpoint the location where the most memory was used? Take a look at

[PHP] Possible bug in PHP 5.3.5 with OAuth extension?

2011-03-04 Thread Daniel Hong
Hello, I'm using the PHP OAuth extension and running into a strange issue. I'm not sure if it's a bug in PHP 5.3.5, or if it's a bug in the OAuth extension when installed on a system with PHP 5.3.5. On a machine with PHP 5.3.5, when I call OAuth::fetch() with http method of POST, the debug info

Re: [PHP] possible namespace bug?

2011-01-21 Thread Tommy Pham
On Thu, Jan 20, 2011 at 5:27 PM, David Harkness wrote: On Thu, Jan 20, 2011 at 4:26 PM, Tommy Pham wrote: Anyway, I found the problem:  \N   in use org\puremvc\php\patterns\observer\Notifier; AFAIK \n is only processed inside double-quoted strings and here-docs. The \N has no special

[PHP] possible namespace bug?

2011-01-20 Thread Tommy Pham
Hi folks, I thought I try implementing namesapce on one the ported apps I did a while back but ran into a problem. First the code: //namespace org\puremvc\php\interfaces; interface ICommand { function execute(INotification $notification); } interface INotifier { function

Re: [PHP] possible namespace bug?

2011-01-20 Thread Adam Richardson
On Thu, Jan 20, 2011 at 5:33 PM, Tommy Pham tommy...@gmail.com wrote: Hi folks, I thought I try implementing namesapce on one the ported apps I did a while back but ran into a problem. First the code: //namespace org\puremvc\php\interfaces; interface ICommand { function

Re: [PHP] Possible issue in mail() function?

2010-11-27 Thread Tom Hendrikx
On 26/11/10 16:54, Richard Quadling wrote: On 26 November 2010 15:12, Tom Hendrikx t...@whyscream.net wrote: On 26/11/10 15:54, Richard Quadling wrote: On 25 November 2010 21:30, Tom Hendrikx tom+php@whyscream.net wrote: Hi, I noticed that the mail() function in php 5.3.3 on gentoo linux

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Richard Quadling
On 25 November 2010 21:30, Tom Hendrikx tom+php@whyscream.net wrote: Hi, I noticed that the mail() function in php 5.3.3 on gentoo linux triggers a warning when used. A simple debug script with the contents: ?php // recipient, subject, body mail(s...@example.com, mail() test, This is a

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Tom Hendrikx
On 26/11/10 15:54, Richard Quadling wrote: On 25 November 2010 21:30, Tom Hendrikx tom+php@whyscream.net wrote: Hi, I noticed that the mail() function in php 5.3.3 on gentoo linux triggers a warning when used. A simple debug script with the contents: ?php // recipient, subject, body

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Tom Hendrikx
On 26/11/10 15:54, Richard Quadling wrote: On 25 November 2010 21:30, Tom Hendrikx tom+php@whyscream.net wrote: Hi, I noticed that the mail() function in php 5.3.3 on gentoo linux triggers a warning when used. A simple debug script with the contents: ?php // recipient, subject, body

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Richard Quadling
On 26 November 2010 15:12, Tom Hendrikx t...@whyscream.net wrote: On 26/11/10 15:54, Richard Quadling wrote: On 25 November 2010 21:30, Tom Hendrikx tom+php@whyscream.net wrote: Hi, I noticed that the mail() function in php 5.3.3 on gentoo linux triggers a warning when used. A simple

[PHP] Possible issue in mail() function?

2010-11-25 Thread Tom Hendrikx
Hi, I noticed that the mail() function in php 5.3.3 on gentoo linux triggers a warning when used. A simple debug script with the contents: ?php // recipient, subject, body mail(s...@example.com, mail() test, This is a test); ? does send mail, but it also raises a warning: Warning: mail(1):

RE: [PHP] Possible foreach bug; seeking advice to isolate the problem

2010-10-22 Thread Ford, Mike
-Original Message- From: Jonathan Sachs [mailto:081...@jhsachs.com] Sent: 20 October 2010 04:48 To: php-general@lists.php.net Subject: [PHP] Possible foreach bug; seeking advice to isolate the problem I've got a script which originally contained the following piece of code

Re: [PHP] Possible foreach bug; seeking advice to isolate the problem

2010-10-20 Thread richard gray
On 20/10/2010 05:47, Jonathan Sachs wrote: I've got a script which originally contained the following piece of code: foreach ( $objs as $obj ) { do_some_stuff($obj); } When I tested it, I found that on every iteration of the loop the last element of $objs was assigned the value of the

[PHP] Possible foreach bug; seeking advice to isolate the problem

2010-10-19 Thread Jonathan Sachs
I've got a script which originally contained the following piece of code: foreach ( $objs as $obj ) { do_some_stuff($obj); } When I tested it, I found that on every iteration of the loop the last element of $objs was assigned the value of the current element. I was able to step through the

[PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread David Mehler
Hello, I've got a php5 document and some items are showing up as question marks. For example, the word President's in the code it is President's however when displaying in the browser it's President?s the ' is not being displayed properly, this is occurring in several places and on several pages.

RE: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread Bob McConnell
From: David Mehler I've got a php5 document and some items are showing up as question marks. For example, the word President's in the code it is President's however when displaying in the browser it's President?s the ' is not being displayed properly, this is occurring in several places and

Re: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread Marc Guay
I would chalk this up to that fancy, extra-curly, apostrophe that you get when copying and pasting text from Microsoft Word or similar. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 11:24 -0400, Marc Guay wrote: I would chalk this up to that fancy, extra-curly, apostrophe that you get when copying and pasting text from Microsoft Word or similar. Marc The characters Microsoft software introduces don't play nice with non-Microsoft software, and

Re: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread David Mehler
Hello Everyone, Thanks. Ash, i'll try your function and see how that works. The original content came from word documents, but they were pasted in to a text editor in this case notetab light. In the meta of the site the character set is utf-8 I was told it was better to use that than iso8859-1 if

Re: [PHP] Possible Server Infection?

2009-04-07 Thread sono-io
On Apr 4, 2009, at 6:51 PM, TG wrote: Anyway, just some thoughts. Good luck! Thanks to TG, Bastien, and Marc. I appreciate the input. Regards, Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Possible Server Infection?

2009-04-05 Thread Phpster
Browserhawk for an example of what information you can get from someone's browser. Anyway, just some thoughts. Good luck! -TG - Original Message - From: sono...@fannullone.us To: php-general@lists.php.net Date: Sat, 4 Apr 2009 16:12:06 -0700 Subject: [PHP] Possible Server Infection? Hi all

RE: [PHP] Possible Server Infection?

2009-04-05 Thread Marc Christopher Hall
Subject: [PHP] Possible Server Infection? Hi all, I was wondering if someone might know about a problem I'm having on my server. It appears that I've been infected by a rogue PHP script(?). Something has gone through my server and placed .htaccess files in every directory that didn't

[PHP] Possible Server Infection?

2009-04-04 Thread sono-io
Hi all, I was wondering if someone might know about a problem I'm having on my server. It appears that I've been infected by a rogue PHP script(?). Something has gone through my server and placed .htaccess files in every directory that didn't have one with contents that look like

Re: [PHP] Possible Server Infection?

2009-04-04 Thread TG
. Anyway, just some thoughts. Good luck! -TG - Original Message - From: sono...@fannullone.us To: php-general@lists.php.net Date: Sat, 4 Apr 2009 16:12:06 -0700 Subject: [PHP] Possible Server Infection? Hi all, I was wondering if someone might know about a problem I'm having

RE: [PHP] possible session bug - Mantis Bug Tracker

2009-03-05 Thread Edsall, William (WJ)
, March 03, 2009 11:18 AM To: Edsall, William (WJ) Cc: php-general@lists.php.net Subject: Re: [PHP] possible session bug - Mantis Bug Tracker On Tue, 2009-03-03 at 11:01 -0500, Edsall, William (WJ) wrote: Hello list! I'm having a strange problem with php after installing Mantis Bug Tracker. I'm

[PHP] possible session bug - Mantis Bug Tracker

2009-03-03 Thread Edsall, William (WJ)
Hello list! I'm having a strange problem with php after installing Mantis Bug Tracker. I'm not sure if this is a Mantis bug or a PHP bug but I'm leaning toward PHP. Here's what's going on. When I view an issue in Mantis, it is slow to spit out the text and often does not finish spitting out the

Re: [PHP] possible session bug - Mantis Bug Tracker

2009-03-03 Thread Robert Cummings
On Tue, 2009-03-03 at 11:01 -0500, Edsall, William (WJ) wrote: Hello list! I'm having a strange problem with php after installing Mantis Bug Tracker. I'm not sure if this is a Mantis bug or a PHP bug but I'm leaning toward PHP. Here's what's going on. When I view an issue in Mantis, it is

Re: [PHP] possible session bug - Mantis Bug Tracker

2009-03-03 Thread Ashley Sheridan
On Tue, 2009-03-03 at 11:18 -0500, Robert Cummings wrote: On Tue, 2009-03-03 at 11:01 -0500, Edsall, William (WJ) wrote: Hello list! I'm having a strange problem with php after installing Mantis Bug Tracker. I'm not sure if this is a Mantis bug or a PHP bug but I'm leaning toward PHP.

[PHP] Possible using XPath?

2008-03-27 Thread Christoph Boget
Let's say I have the following structure: ?xml version=1.0 encoding=UTF-8? root child id=c1 child id=gc1 child id=ggc1/ child id=ggc2/ /child child id=gc2 child id=ggc3/

Re: [PHP] Possible using XPath?

2008-03-27 Thread Robin Vickery
On 27/03/2008, Christoph Boget [EMAIL PROTECTED] wrote: Let's say I have the following structure: ?xml version=1.0 encoding=UTF-8? root child id=c1 child id=gc1 child id=ggc1/ child id=ggc2/ /child

Re: [PHP] Possible using XPath?

2008-03-27 Thread Christoph Boget
Is that possible? Or is this something I'd have to do programatically using the nodes returned by the XPath query? Basically, I'm just trying to get a fragment of the larger xml document... //[EMAIL PROTECTED]'gc3']/child/ancestor-or-self::* Thanks for the response. However, I

Re: [PHP] Possible using XPath?

2008-03-27 Thread Robin Vickery
On 27/03/2008, Christoph Boget [EMAIL PROTECTED] wrote: Is that possible? Or is this something I'd have to do programatically using the nodes returned by the XPath query? Basically, I'm just trying to get a fragment of the larger xml document... //[EMAIL

[PHP] possible GMP bug?

2007-10-01 Thread Tom Swiss
I believe I have discovered a bug with the GMP functions. But since we're sticking with the ancient PHP RedHat gives us (a patched-up 4.3.9), I'd like to ask others with more modern installations to check if they get the same behavior. (Then I know whether to pester the PHP folks, or to

[PHP] [possible re-post] [Fwd: DOMDocument - loadHTML() cuts off html input]

2007-08-01 Thread Stijn Verholen
I'm not sure if my previous mail got through. If that is the case, I apologize. Hey List, In my application, I am loading html content into a DOMDocument using loadHTML(). The DOMDocument is validated, then the element with a certain ID tag is extracted and loaded into a node in the main

[PHP] Possible configuration problem w/ php??

2007-07-06 Thread Jamie Dahl
So after I recently upgraded from php4 to php5 I noticed that email attachments 88k get truncated at 88k within squirrelmail/roundcube, however those same email attachments work just fine if I hit the imap server in thunderbird etc... Has anyone else run across this before? I've seen other

[PHP] possible to move_uploaded_file to a variable instead a file?

2007-06-17 Thread Mark
hey, i`m wondering if it`s possible to move a uploaded file inside a variable. i would like to know this because i`m currently writing a database backup script and in there the user uploads a sql file that gets executed. now i _don`t_ want the file to be stored on the server!! simply because

Re: [PHP] possible to move_uploaded_file to a variable instead a file?

2007-06-17 Thread Larry Garfield
I believe you can just fopen() and friends the file directly out of /tmp, or wherever the file gets put. Just read the file itself into a string and have your way with it. PHP will delete the temp file for you when the script ends. On Sunday 17 June 2007, Mark wrote: hey, i`m wondering if

Re: [PHP] possible IE problem

2006-07-12 Thread Richard Lynch
On Mon, July 10, 2006 10:55 am, Schalk wrote: Now that the parse error is fixed the login script works fine in FF but in IE it does not do the redirect. Is there a reason why this code may not work in IE? Is there a better way to do this? $_SESSION['email'] = $email;

Re: [PHP] possible IE problem

2006-07-10 Thread Larry Garfield
This is an issue with the session not being closed properly on a redirect. IE seems to be more bothered by this than Firefox, for reasons I don't quite understand. The solution is to explicitly close the session yourself. See: http://www.php.net/manual/en/function.session-start.php#57875

[PHP] possible IE problem

2006-07-10 Thread Schalk
Greetings All, Now that the parse error is fixed the login script works fine in FF but in IE it does not do the redirect. Is there a reason why this code may not work in IE? Is there a better way to do this? $_SESSION['email'] = $email; $_SESSION['memberpassword'] = md5($memberpassword);

Re: [PHP] Possible?

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 6:13 pm, René Fournier wrote: Simple problem: Many client apps need to send data to a server. By default each client will open a persistent TCP socket connection to a common IP address:port (10.10.10.10:1234) and write to it (which the server will save/log, etc.). My

Re: [PHP] Possible?

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 6:49 pm, René Fournier wrote: I suppose my question would be, can a single PHP socket server script, executed from the command-line, maintain 1000s of concurrent connections (there is not a lot of data incoming, btw)? I suppose my answer boils down to: You'll never

[PHP] Possible?

2006-04-28 Thread René Fournier
Simple problem: Many client apps need to send data to a server. By default each client will open a persistent TCP socket connection to a common IP address:port (10.10.10.10:1234) and write to it (which the server will save/log, etc.). My question is, what should be ready to listen at the

Re: [PHP] Possible?

2006-04-28 Thread René Fournier
Anyway, I've started looking at this, but I'm not quite sure if it's even possible. I mean, can something send a request to Apache, and continue to write data along that TCP socket? Normally, HTTP requests include GET or POST for such data, but this is not a a web browser that's opening

Re: [PHP] Possible?

2006-04-28 Thread John Hicks
René Fournier wrote: Simple problem: Many client apps need to send data to a server. By default each client will open a persistent TCP socket connection to a common IP address:port (10.10.10.10:1234) and write to it (which the server will save/log, etc.). My question is, what should be

RE: [PHP] Possible?

2006-04-28 Thread Warren Vail
/faq/ Good luck, Warren Vail -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 4:50 PM To: PHP-General; John Hicks Subject: Re: [PHP] Possible? Anyway, I've started looking at this, but I'm not quite sure if it's even possible. I mean, can

[PHP] possible bug in date()

2006-04-17 Thread Mark Slater
I'm trying to create a date with the DATE_W3C or DATE_ATOM format (they are the same format according to the examples), but the output of date doesn't match the example in the documentation. The http://us3.php.net/manual/en/ref.datetime.php page says the formats are as follows: DATE_ATOM

[PHP] Possible hacker using php script to send e-mails?

2006-03-11 Thread Merlin
Hi there, I am running php 4.x on a suse 9.x machine. There is a php script which resides on a webapp that is responsible for sending e-mail to myself in case of errors like db-errors or similar. Called error.php This script does include phpmailer and uses it to send the e-mails to me. Now I

Re: [PHP] Possible hacker using php script to send e-mails?

2006-03-11 Thread Julius Hacker
Merlin wrote: Hi there, I am running php 4.x on a suse 9.x machine. There is a php script which resides on a webapp that is responsible for sending e-mail to myself in case of errors like db-errors or similar. Called error.php This script does include phpmailer and uses it to send the

[PHP] Possible bug with imagettftext and imageft text when imagealphablending is false

2005-10-12 Thread Ethilien
I have been attempting to write a dynamic text replacement script that would generate transparent PNGs using gd, and it works fine except when one of the characters in a font has parts of it that overhang into the previous characters. You can see what I mean in this test script: ?php $img =

[PHP] Possible bug in array_diff() php v4.4.0 or at least some odd behavior

2005-10-05 Thread Edward Vermillion
I have two arrays: $faqDataPost: array 1 = array 'faq_order' = '1' 'faq_question' = 'What is the air speed of a fully laden swallow?' 'show_question' = '1' 'faq_answer' = 'African or European?' 3 = array 'faq_order' = '2' 'faq_question' = 'Where

Re: [PHP] possible to get a function from another domain

2005-08-26 Thread Rory Browne
- From: Rory Browne [EMAIL PROTECTED] To: Jim Moseby [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, August 23, 2005 10:21 PM Subject: Re: [PHP] possible to get a function from another domain I withdraw my information in my earlier post. I was in a cybercafe in a hurry

Re: [PHP] possible to get a function from another domain

2005-08-24 Thread Gustav Wiberg
: Re: [PHP] possible to get a function from another domain I withdraw my information in my earlier post. I was in a cybercafe in a hurry - and didn't have time to consider what was said, nor what I was saying myself. What I said before has little or not merit. You can make an experimental

[PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
hi there! Is it possible in PHP to retrieve value from one domain to another than my own? Something like this: Other domain: function getValueForMp3Player() My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves value from other domain /G @varupiraten.se -- PHP General

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Rory Browne
I'm not sure I understand but: You define a function on one machine; You want to use that function on another machine; If I understand you correctly, then you should be able to just cp function_server.php function_server.txt , and include it over http and done On 8/23/05, Gustav Wiberg

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: Is it possible in PHP to retrieve value from one domain to another than my own? Something like this: Other domain: function getValueForMp3Player() My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves value from other domain What exactly do you mean

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
@lists.php.net Sent: Tuesday, August 23, 2005 9:45 PM Subject: Re: [PHP] possible to get a function from another domain I'm not sure I understand but: You define a function on one machine; You want to use that function on another machine; If I understand you correctly, then you should be able to just cp

RE: [PHP] possible to get a function from another domain

2005-08-23 Thread Jay Blanchard
[snip] I have a webshop and want to see a price from another webshop online (directly). Let's call my webshop - varupiraten.se and the other webshop - inwarehouse.se I want to be able to see what price inwarehouse.se has for a certain product directly. (without no copying). Of course I have to

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
? /G @varupiraten.se - Original Message - From: Jasper Bryant-Greene [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, August 23, 2005 9:47 PM Subject: Re: [PHP] possible to get a function from another domain Gustav Wiberg wrote: Is it possible in PHP to retrieve value

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: Hi! Njae I have a webshop and want to see a price from another webshop online (directly). Let's call my webshop - varupiraten.se and the other webshop - inwarehouse.se I want to be able to see what price inwarehouse.se has for a certain product directly. (without no

RE: [PHP] possible to get a function from another domain

2005-08-23 Thread Jay Blanchard
[snip] Can I use require with http? My domain: www.varupiraten.se Other domain: www.webshop2.se Does this kind of code work? Code for my domain: ?php require(http://www.webshop2.se/externfunctions.php); $x = getValueFromProduct('Inno AX5000'); //This function retrieves price from webshop2.se

RE: [PHP] possible to get a function from another domain

2005-08-23 Thread Jim Moseby
[snip] Can I use require with http? My domain: www.varupiraten.se Other domain: www.webshop2.se Does this kind of code work? Code for my domain: ?php require(http://www.webshop2.se/externfunctions.php); $x = getValueFromProduct('Inno AX5000'); //This function retrieves price

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Rory Browne
I withdraw my information in my earlier post. I was in a cybercafe in a hurry - and didn't have time to consider what was said, nor what I was saying myself. What I said before has little or not merit. You can make an experimental interface, and parse the html without the other domain owners

[PHP] possible bug (string equality to zero)?

2005-08-11 Thread Christopher J. Bottaro
Is it a bug that ($var == 0) is always true for any string $var? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] possible bug (string equality to zero)?

2005-08-11 Thread Jay Blanchard
[snip] Is it a bug that ($var == 0) is always true for any string $var? [/snip] You are comparing a string to an integer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] possible bug (string equality to zero)?

2005-08-11 Thread Torgny Bjers
No, Christopher, that is not a bug. As long as the var is empty, and if you try to compare with 0, or false, it will report true in the comparison because the variable does not contain anything, which will mean false for a boolean and 0 for a variable. If you are attempting to discover if a string

Re: [PHP] possible bug (string equality to zero)?

2005-08-11 Thread Scott Noyes
[snip] Is it a bug that ($var == 0) is always true for any string $var? [/snip] You are comparing a string to an integer. Right. This is clearly documented at http://www.php.net/operators.comparison -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] possible bug (string equality to zero)?

2005-08-11 Thread Chris Shiflett
Christopher J. Bottaro wrote: Is it a bug that ($var == 0) is always true for any string $var? For any string? How about the string 5? :-) PHP tries to help you out, but there's not much it can do when you ask it to compare a string like 'foo' to an integer. It scans your string from left

Re: [PHP] possible bug (string equality to zero)?

2005-08-11 Thread xfedex
Hi, Is it a bug that ($var == 0) is always true for any string $var? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Check this out! http://us3.php.net/manual/en/types.comparisons.php -- PHP General Mailing List

[PHP] Possible to read JavaScript results into a string?

2005-08-08 Thread Brian Dunning
I have an external JavaScript that I use on several of my sites. It returns a web counter and does some other logging. It's accessed like this: script language=javascript src=http://www.mydomain.com/log.js;/ script No rocket science there, this is common and it works great. That call

Re: [PHP] Possible to read JavaScript results into a string?

2005-08-08 Thread Richard Davey
Hello Brian, Monday, August 8, 2005, 6:38:54 PM, you wrote: BD ?php BD $x = file_get_contents('http://www.mydomain.com/log.js'); BD // also tried urlencode() but that did not help ? BD The result: BD Warning: main(http://www.mydomain.com/log.js) [function.main]: failed BD to open stream: HTTP

Re: [PHP] possible jscript/php/frames question!!

2005-06-18 Thread Richard Lynch
On Fri, June 17, 2005 3:47 pm, bruce said: i've got a problem where i'm trying to play with imagemaps. i created a test image map, but when i select inside the image map, i 'see' the ?x,y from the imagemap, appended to the url in the browser address bar... i get http://foo.com?3,5 etc... is

[PHP] possible jscript/php/frames question!!

2005-06-17 Thread bruce
hi... i've got a problem where i'm trying to play with imagemaps. i created a test image map, but when i select inside the image map, i 'see' the ?x,y from the imagemap, appended to the url in the browser address bar... i get http://foo.com?3,5 etc... is there a way to prevent this from

RE: [PHP] possible jscript/php/frames question!!

2005-06-17 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] on Friday, June 17, 2005 3:48 PM said: i've got a problem where i'm trying to play with imagemaps. i created a test image map, but when i select inside the image map, i 'see' the ?x,y from the imagemap, appended to the url in the browser address bar... i get

RE: [PHP] possible jscript/php/frames question!!

2005-06-17 Thread bruce
@lists.php.net Subject: RE: [PHP] possible jscript/php/frames question!! bruce mailto:[EMAIL PROTECTED] on Friday, June 17, 2005 3:48 PM said: i've got a problem where i'm trying to play with imagemaps. i created a test image map, but when i select inside the image map, i 'see' the ?x,y from

RE: [PHP] possible jscript/php/frames question!!

2005-06-17 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] on Friday, June 17, 2005 5:05 PM said: chris... i'll humour you.. although i'm pretty sure you have no idea as to what i'm trying to acomplish.. or how to get to my goal... the basic issue is to allow a user to click inside an image map, and to

Re: [PHP] possible jscript/php/frames question!!

2005-06-17 Thread Tom Rogers
Hi, Saturday, June 18, 2005, 8:47:58 AM, you wrote: b hi... b i've got a problem where i'm trying to play with imagemaps. i created a test b image map, but when i select inside the image map, i 'see' the ?x,y from b the imagemap, appended to the url in the browser address bar... i get b

[PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
Is it possible to use eregi instead of LIKE to filter mysql queries? If so can someone do a quick example? Many thanks, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Jay Blanchard
[snip] Is it possible to use eregi instead of LIKE to filter mysql queries? If so can someone do a quick example? [/snip] $sql = SELECT foo, bar FROM table ; $result = mysql_query($sql, $connection); while($row = mysql_fetch_array($result)){ if(eregi('glorp', $row['foo']){ echo

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread John Nichel
Ross wrote: Is it possible to use eregi instead of LIKE to filter mysql queries? This would be in the MySQL manual. http://dev.mysql.com/doc/mysql/en/pattern-matching.html -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread John Nichel
Jay Blanchard wrote: snip Why you'd want to do it this way beats me, the overhead is a lot bigger than doing it in the query. /snip I _think_ he was asking if he could use some sort of pattern matching in the query itself. Of course, it's Monday, and I may not have understood the question at

RE: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Jay Blanchard
[snip] I _think_ he was asking if he could use some sort of pattern matching in the query itself. Of course, it's Monday, and I may not have understood the question at all. ;) [/snip] True. He was pretty specific about eregi though. Perhaps he'll let us know when he does whatever it is he is

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
you understood John John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jay Blanchard wrote: snip Why you'd want to do it this way beats me, the overhead is a lot bigger than doing it in the query. /snip I _think_ he was asking if he could use some sort of pattern

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
you understood John John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jay Blanchard wrote: snip Why you'd want to do it this way beats me, the overhead is a lot bigger than doing it in the query. /snip I _think_ he was asking if he could use some sort of pattern matching

RE: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Jay Blanchard
[snip] you understood John [/snip] Well, there you go. At least I gave a PHP answer on this, a PHP list. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread John Nichel
Jay Blanchard wrote: [snip] you understood John [/snip] Well, there you go. At least I gave a PHP answer on this, a PHP list. ;) snip You are my hero. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Possible problem with EXPAT functions

2005-03-28 Thread Evert | Rooftop Solutions
Hi People, I'm working on some complex PHP4 OOP Scripts and at a really unusual point I'm getting the following error in my apache errorlog: *** glibc detected *** double free or corruption (!prev): 0x0828c510 *** [Tue Mar 29 07:09:27 2005] [notice] child pid 9110 exit signal Aborted (6) This

Re: [PHP] Possible to make $$ distributing PHP as Shareware?

2004-12-16 Thread Brent Baisley
I would say it depends on how much money your are looking to make. You're not going to get rich selling it as shareware, but you may build a user base. You could then try switching it to a commercial product. Just remember, if it's a commercial product, people will expect a certain level of

[PHP] Possible to make $$ distributing PHP as Shareware?

2004-12-15 Thread Jonathan
Hi, I have developed a full email marketing application (using php, mysql) which supports tracking technology (i.e. whether the recipient has read the email, view online, unsubscribe, click on any of the link etc), bounce mail management, backend engine. Is it possible to make some $$ if I

Re: [PHP] Possible to make $$ distributing PHP as Shareware?

2004-12-15 Thread Lars B. Jensen
If you have any experience with this, kindly enlighten me. In my experience, people aren't going to pay unless they have to. ... and spending money for some application, which more than likely is going to be filtered hard by spam filters, might not be what I want to spend my pennies on -- Lars

  1   2   3   >