Re: [PHP] moved code to a new server

2008-10-24 Thread Jim Lucas
Marc Fromm wrote: > I think I fixed it. The error said that the file script.js, line 4 of the > code, could not be found: > 4 http://path/to/the/file/script.js";)?> > > I changed the line to this and it now works: > > > I wonder why on the old server it could find the file based on the full url

Re: [PHP] moved code to a new server

2008-10-24 Thread Eric Butera
On Fri, Oct 24, 2008 at 6:50 PM, Marc Fromm <[EMAIL PROTECTED]> wrote: > I think I fixed it. The error said that the file script.js, line 4 of the > code, could not be found: > 4 http://path/to/the/file/script.js";)?> > > I changed the line to this and it now works: > > > I wonder why on the old

RE: [PHP] moved code to a new server

2008-10-24 Thread Marc Fromm
I think I fixed it. The error said that the file script.js, line 4 of the code, could not be found: 4 http://path/to/the/file/script.js";)?> I changed the line to this and it now works: I wonder why on the old server it could find the file based on the full url while the new server cannot find

RE: [PHP] moved code to a new server

2008-10-24 Thread Mohamed Ainab
would be very helpfull if you would post the code. --- http://ainab.com | http://somaliyrics.net Original Message Subject: [PHP] moved code to a new server From: "Daniel P. Brown" <[EMAIL PROTECTED]> Date: Fri, October 24, 2008 3:25 pm To: "php php" , "Marc Fromm" <[EM

[PHP] moved code to a new server

2008-10-24 Thread Daniel P. Brown
Forwarded to General, since this doesn't belong on DB. On Fri, Oct 24, 2008 at 6:18 PM, Marc Fromm <[EMAIL PROTECTED]> wrote: > We moved our website to a new linux server. The code was running on a > different linux server. Thus the OS environment is the same. > We are receiving this error: >

Re: [PHP] Building an array, kind of?

2008-10-24 Thread Dan Shirah
> > from memory. >> >> $var=''; >> while($row = mysql_fetch_array($charge_result2)) >> { >> $var .= $row['id'] . ','; >> } >> >> cheers, >> >> tedd > > Thanks all! It works and here is the code I used: $get_charges2 = "SELECT FIRST 16 * FROM history WHERE id = '$id"; $charge_result2 = ifx

Re: [PHP] Building an array, kind of?

2008-10-24 Thread tedd
At 10:52 AM -0400 10/24/08, Dan Shirah wrote: TGIF? Apparently my brain isn't working this Friday. I'm trying to query my table to get the first 16 ID's. I then want to assign the ID's to a variable and have them comma seperated. // My query to select the first 16 rows $get_charges2 = "SELECT

RE: [PHP] Building an array, kind of?

2008-10-24 Thread Boyd, Todd M.
> -Original Message- > From: Boyd, Todd M. [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2008 11:28 AM > To: php-general@lists.php.net > Subject: RE: [PHP] Building an array, kind of? > > > -Original Message- > > From: Dan Shirah [mailto:[EMAIL PROTECTED] > > Sent: Friday,

RE: [PHP] Building an array, kind of?

2008-10-24 Thread Boyd, Todd M.
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2008 9:52 AM > To: PHP LIST > Subject: [PHP] Building an array, kind of? > > TGIF? > > Apparently my brain isn't working this Friday. > > I'm trying to query my table to get the first 16 ID's.

Re: [PHP] Re: ZendOptimizer + APC

2008-10-24 Thread Jochem Maas
steve schreef: > Run APC on the main site. Create a separate instance of apache running > on another port and have it use the ZendOptimizer, and have the admin > stuff there. > I did one better .. I got the go ahead to just remove ZendOptimizer :-) it's better in that it's less work for me ;-)

Re: [PHP] index search

2008-10-24 Thread Ryan S
Are you sure LIKE isn't working? I would think LIKE "a%" would work. For 0-9, I would think you can use <= 9 or you can use BETWEEN 0 and 9. Silly me, the reason it was not working was I am so used to %something% and used that instead of something% Anyway, it was a not a useless post for me

Re: [PHP] web shot script

2008-10-24 Thread Jim Lucas
Andrew Barnett wrote: > You might actually be onto something there Afan. > > As long as Ghostscript and Imagemagick are installed on the server, you will > be able to convert a PDF to an image. So maybe that will help. > > Although, is it possible to have a continuous length PDF, or does it only

Re: [PHP] index search

2008-10-24 Thread Andrew Ballard
On Fri, Oct 24, 2008 at 11:08 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-10-24 at 10:49 -0400, Andrew Ballard wrote: >> On Fri, Oct 24, 2008 at 10:22 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> >> As for the numeric comparison, I know MySQL has a REGEXP comparison >> >> sim

Re: [PHP] Building an array, kind of?

2008-10-24 Thread Yeti
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Building an array, kind of?

2008-10-24 Thread David Otton
2008/10/24 Dan Shirah <[EMAIL PROTECTED]>: > How would I go about putting that in a variable to equal > "1234,1235,1236,1237,1238,1239" ? > Pseudocode: $t = array(); foreach($resultset as $row) $t[] = $row; $t = join(',',$t); -- http://www.otton.org/ -- PHP General Mailing List (http:

Re: [PHP] index search

2008-10-24 Thread Robert Cummings
On Fri, 2008-10-24 at 10:49 -0400, Andrew Ballard wrote: > On Fri, Oct 24, 2008 at 10:22 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > >> As for the numeric comparison, I know MySQL has a REGEXP comparison > >> similar to the LIKE comparator, but I don't know enough about MySQL to > >> know if i

[PHP] Building an array, kind of?

2008-10-24 Thread Dan Shirah
TGIF? Apparently my brain isn't working this Friday. I'm trying to query my table to get the first 16 ID's. I then want to assign the ID's to a variable and have them comma seperated. // My query to select the first 16 rows $get_charges2 = "SELECT FIRST 16 * FROM history WHERE id = '$id"; // E

Re: [PHP] index search

2008-10-24 Thread Andrew Ballard
On Fri, Oct 24, 2008 at 10:22 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> As for the numeric comparison, I know MySQL has a REGEXP comparison >> similar to the LIKE comparator, but I don't know enough about MySQL to >> know if it can similarly benefit from indexes the same way. (SQL >> Server

Re: [PHP] index search

2008-10-24 Thread Robert Cummings
On Fri, 2008-10-24 at 10:20 -0400, Andrew Ballard wrote: > On Thu, Oct 23, 2008 at 10:49 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Thu, 2008-10-23 at 19:30 -0700, Ryan S wrote: > >> Hey all, > >> Was wondering how this is done, have a bunch of links like so: > >> 0-9 : a : b : c ->

Re: [PHP] index search

2008-10-24 Thread Andrew Ballard
On Thu, Oct 23, 2008 at 10:49 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2008-10-23 at 19:30 -0700, Ryan S wrote: >> Hey all, >> Was wondering how this is done, have a bunch of links like so: >> 0-9 : a : b : c -> till Z >> >> these will be linked to the program (so far have done

Re: [PHP] what's the difference in the following code?

2008-10-24 Thread Yeti
>The difference between the examples are still nothing, it do the same. >But I never use the short version of if, because when I look after some month >in some projects I have a better overview when there is a long if , its much >easier to extend. As explained a couple of times already - there i

[PHP] Re: PHP/mySQL question using ORDER BY with logic

2008-10-24 Thread Colin Guthrie
Robert Cummings wrote: On Fri, 2008-10-24 at 00:18 -0400, Rob Gould wrote: Question about mySQL and PHP, when using the mySQL ORDER BY method... Basically I've got data coming from the database where a "wine producer-name" is a word like: Château Bahans Haut-Brion or

Re: [PHP] web shot script

2008-10-24 Thread Richard Heyes
> The other options is using something like www.browsershots.org (as far > as I remember thats their URL) and pay them to get the first places on > their queues. Wow, That's really a very handy tool. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org -- PH