Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 9:42 PM, tamouse mailing lists wrote: > On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard > wrote: >> [snip]Globals being used in a function. [/snip] >> >> *smacks forehead* > > > > It bites me all the time, too. (Might be worth a refactor to eliminate globals from this, in fa

Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard wrote: > [snip]Globals being used in a function. [/snip] > > *smacks forehead* It bites me all the time, too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread Jay Blanchard
[snip]Globals being used in a function. [/snip] *smacks forehead* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread Larry Martell
On Tue, May 7, 2013 at 3:06 PM, Jay Blanchard wrote: > I know that I must be missing something really ridiculous, but when I > print_r these arrays they are empty. I have confirmed that $arrayElement is > properly formed, it just seems that array_push is not working. I know I have > done this befo

Re: [PHP] Problems with array_push?

2013-05-07 Thread Stuart Dallas
Globals being used in a function. -Stuart On Tue, May 7, 2013 at 11:06 PM, Jay Blanchard wrote: > I know that I must be missing something really ridiculous, but when I > print_r these arrays they are empty. I have confirmed that $arrayElement > is properly formed, it just seems that array_pu

Re: [PHP] Problems with CURL using an HTTP Proxy on PHP5

2011-12-21 Thread Matijn Woudt
On Fri, Dec 16, 2011 at 10:09 PM, Francisco M. Marzoa Alonso wrote: > > I know it is NOT a problem with the website, because if I comment out > the line curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1) disabling the use > of a proxy, it works fine. > > I know the proxy is working fine, because if I u

Re: [PHP] problems with feature '--with-pdo-oci' RPM (spec)

2010-04-14 Thread Kevin Kinsey
Raul da Silva {Sp4wn} wrote: # rpm -qpl /usr/src/linux/RPMS/x86_64/php52-pdo-oci-5.2.12-2.fc11.x86_64.rpm /etc/php.d/pdo_oci.ini /usr/lib64/php/modules/pdo_oci.so # rpm --test -ivh /usr/src/redhat/RPMS/x86_64/php52-pdo-oci-5.2.12-2.fc11.x86_64.rpm error: Failed dependencies: libclntsh.so.10.

Re: [PHP] problems with permissions or getting access to a file

2010-02-11 Thread Richard Quadling
On 11 February 2010 09:31, Pat wrote: > Richard Quadling wrote: >> >> On 10 February 2010 16:31, Pat wrote: >> >>> >>> hi all >>> having trouble here with a site that I am hosting on go-daddy >>> >>> I want to keep my php and my images apart >>> >>> so to do this I have the base directory which c

Re: [PHP] problems with permissions or getting access to a file

2010-02-10 Thread Richard Quadling
On 10 February 2010 16:31, Pat wrote: > hi all > having trouble here with a site that I am hosting on go-daddy > > I want to keep my php and my images apart > > so to do this I have the base directory which contains the php scripts. On > the directory above that I have > my photos stored in /photo

Re: [PHP] Problems with an extension

2009-06-28 Thread Eric A. Boney
On Sunday 28 June 2009 11:00:48 you wrote: > On Sun, Jun 28, 2009 at 10:56, Eric A. > > Boney wrote: > > So I am developing a custom extension and I am having a issue. I have a > > header file that I need included in the project. If I #include the header > > file everything compiles and makes just

Re: [PHP] Problems with an extension

2009-06-28 Thread Daniel Brown
On Sun, Jun 28, 2009 at 10:56, Eric A. Boney wrote: > So I am developing a custom extension and I am having a issue. I have a header > file that I need included in the project. If I #include the header file > everything compiles and makes just fine, but after restarting the web server > the extensi

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-22 Thread James McLean
On Tue, Jun 23, 2009 at 6:17 AM, Nathan Nobbe wrote: > hmm, 2 other thoughts i have.. > > . long shot, but do you have apc.php installed on a diff domain than the > moodle app (not sure but i suspect apc.php only shows cached values for the > domain in which its currently running (i know this is so

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-22 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 6:17 PM, James McLean wrote: > On Mon, Jun 22, 2009 at 9:40 AM, Nathan Nobbe > wrote: > > On Sun, Jun 21, 2009 at 5:56 PM, James McLean > > wrote: > > did you take a look at the size of the cache you created ? > > Yes. Tried multiple segments and single, with cache size va

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
On Mon, Jun 22, 2009 at 10:02 AM, Jonathan Tapicer wrote: > Can you do a phpinfo(); and tell us the value of the setting > apc.filters (or every apc.* if you can)? Just curious, but I've seen > apps set that setting to avoid APC opcode caching. Certainly, however it will have to wait until I am ho

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread Jonathan Tapicer
Can you do a phpinfo(); and tell us the value of the setting apc.filters (or every apc.* if you can)? Just curious, but I've seen apps set that setting to avoid APC opcode caching. Jonathan On Sun, Jun 21, 2009 at 8:56 PM, James McLean wrote: > (Resend from around 1 week ago, because of no respon

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
On Mon, Jun 22, 2009 at 9:40 AM, Nathan Nobbe wrote: > On Sun, Jun 21, 2009 at 5:56 PM, James McLean > wrote: > did you take a look at the size of the cache you created ? Yes. Tried multiple segments and single, with cache size values between 128mb and 256mb. Also tried with stat on and off. > a

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 5:56 PM, James McLean wrote: > (Resend from around 1 week ago, because of no responses) > > Hi All, > > Over the weekend I setup a test of APC intending to benchmark a Moodle > installation with various APC settings to see how well I could get it > to perform. I successfull

Re: [PHP] Problems with apc extension on wamp server.

2009-06-17 Thread Valentinas Bakaitis
Found the problem: must always be before file input in the form. 2009/6/17 Valentinas Bakaitis : > Hi. > > Yes, as it turned out, the extension was not loaded. While following > some tutorial i added only "apc.rfc1867 = 1" to php.ini. Turns out > that this particular line turns on one of apc fu

Re: [PHP] Problems with apc extension on wamp server.

2009-06-17 Thread Valentinas Bakaitis
Hi. Yes, as it turned out, the extension was not loaded. While following some tutorial i added only "apc.rfc1867 = 1" to php.ini. Turns out that this particular line turns on one of apc functions (file tracking), but not the apc itself. However, now when i have apc turned on i still have a proble

Re: [PHP] Problems with apc extension on wamp server.

2009-06-16 Thread Jonathan Tapicer
Hi, Does the extension appear on a phpinfo()? Seems like the extension isn't loaded. Jonathan On Tue, Jun 16, 2009 at 5:20 PM, Valentinas Bakaitis wrote: > Hello! > > I am trying to track file upload progress using APC extension. > However, when trying to use, it gives > > Fatal error: Call to

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Alex S Kurilo aka Kamazee
No, adding * after the period had no affect at all. Still goes to the live site. Sorry, I misunderstood you. I'm too lazy to read all the message :) http and https may be handled by different virtual hosts. http for http://dev.sitename.com/ seems to be configured properly (Virtual host at por

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Skip Evans
Hey all, No, adding * after the period had no affect at all. Still goes to the live site. Any other ideas? I'm stumped, desperate and on the verge of requiring medication. Skip Alex S Kurilo aka Kamazee wrote: RewriteRule . index.php Add an asterisk after the dot: RewriteRule .* index.p

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Alex S Kurilo aka Kamazee
RewriteRule . index.php Add an asterisk after the dot: RewriteRule .* index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problems with gnupg extension.

2009-04-21 Thread Ian
On 20 Apr 2009 at 11:37, Ray wrote: > Any suggestions, Anyone? > Ray Hi, I adapted these scripts for my own user and have not had any problems: http://www.theoslogic.com/scripts/php-gpg/ It does not use the gnupg extension at all but popen() or proc_open(). Regards Ian -- -- PHP Gene

Re: [PHP] problems with gnupg extension.

2009-04-20 Thread Ray
On Monday 13 April 2009 10:17:28 Ray wrote: > Hello all, > > I'm trying to use the gnupg extension and I think everything is properly > installed. > > I'm just using test data. I'm encrypting and then immediately decrypting. > But the decryption is failing with a unhelpful error message. > > error

Re: [PHP] Problems with exec() on windows

2009-04-12 Thread henrikolsen
I can confirm the presence of the same issue on my installation, 5.2.9-2 on Windows XP. Very annoying bug. -- This message was sent on behalf of henrikol...@gmail.com at openSubscriber.com http://www.opensubscriber.com/message/php-general@lists.php.net/11719414.html -- PHP General Mailing List

RE: [PHP] Problems with implode

2009-03-26 Thread Andrea Giammarchi
string', $whatever)).'")'Regards > Date: Thu, 26 Mar 2009 21:01:03 +0800 > From: virgilio.quila...@gmail.com > To: t...@ezl-data.dk > CC: php-general@lists.php.net > Subject: Re: [PHP] Problems with implode > > >>> Dunno why you guys started talk ab

Re: [PHP] Problems with implode

2009-03-26 Thread Virgilio Quilario
>>> Dunno why you guys started talk about utf-8 problems, he has a list of >>> ids >>> which should contain only unsigned integers, otherwise I do not get how >>> that >>> query could work with an implode(',', $whatever) rather than 'id in >>> ("'.implode('","', array_map('mysql_real_escape_string'

Re: [PHP] Problems with implode

2009-03-26 Thread Toke Herkild
Tom Worster skrev: On 3/24/09 9:25 AM, "Andrea Giammarchi" wrote: Dunno why you guys started talk about utf-8 problems, he has a list of ids which should contain only unsigned integers, otherwise I do not get how that query could work with an implode(',', $whatever) rather than 'id in ("'.impl

Re: [PHP] Problems with implode

2009-03-25 Thread Tom Worster
On 3/24/09 9:25 AM, "Andrea Giammarchi" wrote: > > Dunno why you guys started talk about utf-8 problems, he has a list of ids > which should contain only unsigned integers, otherwise I do not get how that > query could work with an implode(',', $whatever) rather than 'id in > ("'.implode('","',

Re: [PHP] Problems with implode

2009-03-25 Thread Igor Escobar
th a numeric array: >> $list = array(12300..12800); and see what happens. >> >> regards, >> Toke >> >> Andrea Giammarchi skrev: >> >>> What about MySQL max_allowed_packet setting? is it bigger than produced >>> string? >>> &g

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
meric array: $list = array(12300..12800); and see what happens. regards, Toke Andrea Giammarchi skrev: What about MySQL max_allowed_packet setting? is it bigger than produced string? To: php-general@lists.php.net Date: Tue, 24 Mar 2009 15:23:20 +0100 From: t...@ezl-data.dk Subject: Re: [PHP] Pro

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
t happens. regards, Toke Andrea Giammarchi skrev: What about MySQL max_allowed_packet setting? is it bigger than produced string? To: php-general@lists.php.net Date: Tue, 24 Mar 2009 15:23:20 +0100 From: t...@ezl-data.dk Subject: Re: [PHP] Problems with implode Per Jessen skrev: Andrea Giamm

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
MySQL max_allowed_packet setting? is it bigger than produced string? To: php-general@lists.php.net Date: Tue, 24 Mar 2009 15:23:20 +0100 From: t...@ezl-data.dk Subject: Re: [PHP] Problems with implode Per Jessen skrev: Andrea Giammarchi wrote: Dunno why you guys started talk about utf-8 pro

RE: [PHP] Problems with implode

2009-03-24 Thread Andrea Giammarchi
What about MySQL max_allowed_packet setting? is it bigger than produced string? > To: php-general@lists.php.net > Date: Tue, 24 Mar 2009 15:23:20 +0100 > From: t...@ezl-data.dk > Subject: Re: [PHP] Problems with implode > > Per Jessen skrev: > > Andrea Giammarchi wrote:

Re: [PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Tom Worster skrev: On 3/24/09 9:15 AM, "Per Jessen" wrote: TG wrote: I don't think that would be a problem, the size of the array. I've used implode at least once or twice on fairly large arrays. More likely is something weird with your data. Yeah, like the odd backspace or carriage retur

Re: [PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Per Jessen skrev: Andrea Giammarchi wrote: Dunno why you guys started talk about utf-8 problems, he has a list of ids which should contain only unsigned integers, otherwise I do not get how that query could work with an implode(',', $whatever) Very good point - maybe the OP has not yet teste

RE: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
Andrea Giammarchi wrote: > Dunno why you guys started talk about utf-8 problems, he has a list of > ids which should contain only unsigned integers, otherwise I do not > get how that query could work with an implode(',', $whatever) Very good point - maybe the OP has not yet tested his code that

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 9:15 AM, "Per Jessen" wrote: > TG wrote: > >> I don't think that would be a problem, the size of the array. I've >> used implode at least once or twice on fairly large arrays. More >> likely is something weird with your data. > > Yeah, like the odd backspace or carriage return perh

Re: [PHP] Problems with implode

2009-03-24 Thread Jan G.B.
2009/3/24 Toke Herkild : > Hi All, > > I've an array() with approx 1200 items (list of id-mappings) that part works > fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); Are all of the Ids

RE: [PHP] Problems with implode

2009-03-24 Thread Andrea Giammarchi
ray_map('mysql_real_escape_string', $whatever)).'")' ... so, the problem could be more about missed ids in the array obtaining ,, ... so, in this case, array_filter before, no? Regards > Date: Tue, 24 Mar 2009 09:19:53 -0400 > From: m...@neimeyer.org > To: php-gener

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 8:58 AM, "Per Jessen" wrote: > I can't reproduce that behaviour - I tried with ascii ('klop') and utf8 > ('Köhler') text. neither can i. if the mail systems don't screw it up, here's my test strings: $strs = array( 'Iñtërnâtiônàlizætiøn', 'החמאס: רוצים להשלים את

Re: [PHP] Problems with implode

2009-03-24 Thread Matt Neimeyer
On Tue, Mar 24, 2009 at 9:15 AM, Per Jessen wrote: > TG wrote: > >> I don't think that would be a problem, the size of the array.  I've >> used implode at least once or twice on fairly large arrays.  More >> likely is something weird with your data. > > Yeah, like the odd backspace or carriage ret

Re: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
TG wrote: > I don't think that would be a problem, the size of the array. I've > used implode at least once or twice on fairly large arrays. More > likely is something weird with your data. Yeah, like the odd backspace or carriage return perhaps. /Per -- Per Jessen, Zürich (3.0°C) -- PH

Re: [PHP] Problems with implode

2009-03-24 Thread TG
I don't think that would be a problem, the size of the array. I've used implode at least once or twice on fairly large arrays. More likely is something weird with your data. I'd do a print_r or var_dump to check the data and make sure that's not the issue. Not saying implode isn't having a

Re: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
Toke Herkild wrote: > Hi All, > > I've an array() with approx 1200 items (list of id-mappings) that part > works fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); > > My problem is tha

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 7:14 AM, "Toke Herkild" wrote: > I've an array() with approx 1200 items (list of id-mappings) that part > works fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); > > My prob

Re: [PHP] Problems with exec() on windows

2009-03-19 Thread haliphax
On Thu, Mar 19, 2009 at 9:25 AM, haliphax wrote: > On Thu, Mar 19, 2009 at 9:19 AM, Kyohere Luke wrote: >> Hi, >> I'm trying to use exec to call gammu.exe and send sms on windows XP. >> >> This works from commandline: >> >> C:\path\to\gammu.exe 1 --sendsms EMS 200 -text "test1 test2" >> >> But if

Re: [PHP] Problems with exec() on windows

2009-03-19 Thread haliphax
On Thu, Mar 19, 2009 at 9:19 AM, Kyohere Luke wrote: > Hi, > I'm trying to use exec to call gammu.exe and send sms on windows XP. > > This works from commandline: > > C:\path\to\gammu.exe 1 --sendsms EMS 200 -text "test1 test2" > > But if I run it through php like this: > > $command = "\"C:\path\t

RE: [PHP] Problems with images..

2008-11-03 Thread Boyd, Todd M.
> -Original Message- > From: Anders Norrbring [mailto:[EMAIL PROTECTED] > Sent: Monday, November 03, 2008 8:56 AM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: SV: [PHP] Problems with images.. > > > > I've been staring myself blind, so now I don't get anywhere, please > >

Re: [PHP] Problems with images..

2008-11-03 Thread Per Jessen
Anders Norrbring wrote: > I've been staring myself blind, so now I don't get anywhere, please do > advice.. > > I have a web page printed with PHP, in a table I need to display > images that are stored in a SQL DB. > Getting the images into variables isn't an issue at all, but how do I > output i

RE: [PHP] Problems with images..

2008-11-03 Thread Boyd, Todd M.
> -Original Message- > From: Anders Norrbring [mailto:[EMAIL PROTECTED] > Sent: Monday, November 03, 2008 7:44 AM > To: php-general@lists.php.net > Subject: [PHP] Problems with images.. > > I've been staring myself blind, so now I don't get anywhere, please do > advice.. > > I have a web

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Jim Lucas wrote: > Possibly that apache is chroot'ed. I know you said LAMP. But which OS/etc... Sometimes you can see from the cli if httpd is rooted. run 'ps aux | grep httpd' and see if httpd says anything about chroot I don't see anything here root 1937 0.0 5.2 25600 13456 ?

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Dan Joseph wrote: Ok, I have changed my php.ini and restarted apache. My include_path is set to include_path = ".:/srv/www/html" but when I try from /srv/www/html/library/index.php: require '/Tools/dbtools/dbtool.php'; or require 'Tools/dbtools/dbtool.php'; or require '../Tools/dbtools/dbtool.

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/s

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
On Fri, May 16, 2008 at 4:36 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > Jim Lucas wrote: > >> Their are two ways that come to mind. >> >> 1. Like Dan suggested, use the full path. >> >> 2. (I prefer this way), change your include_path setting either in your >> php.ini file, virtual host, .htac

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/srv/www/html/" and then

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
On Fri, May 16, 2008 at 3:41 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Tyson Vanover wrote: > >> Jim Lucas wrote: >> >> Their are two ways that come to mind. >>> >>> 1. Like Dan suggested, use the full path. >>> >>> 2. (I prefer this way), change your include_path setting either in your >>> php.

Re: [PHP] Problems with includes

2008-05-16 Thread Andrew Ballard
On Fri, May 16, 2008 at 3:31 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > Dan Joseph wrote: > >> I'm pretty sure you're gonna need to include the entire path: >> >> require( "/srv/www/html/Tools/tool2/tool2.php" ); >> >> for both of your tools. >> > > So when php runs it's paths are drawn from th

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: Dan Joseph wrote: I'm pretty sure you're gonna need to include the entire path: require( "/srv/www/html/Tools/tool2/tool2.php" ); for both of your tools. So when php runs it's paths are drawn from the OS's structure and not apache's? hun. thanks! Only if apache

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/srv/www/html/" and the

Re: [PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
Dan Joseph wrote: I'm pretty sure you're gonna need to include the entire path: require( "/srv/www/html/Tools/tool2/tool2.php" ); for both of your tools. So when php runs it's paths are drawn from the OS's structure and not apache's? hun. thanks! -- PHP General Mailing List (http://www

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: I am trying to keep my tools and pages segregated for a variety of reasons (organization, security, etc). And I am having problems with my includes on my LAMP box. My user facing tools are not including my utility classes and files. The root directory of my web server (

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
On Fri, May 16, 2008 at 2:25 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > I am trying to keep my tools and pages segregated for a variety of reasons > (organization, security, etc). And I am having problems with my includes on > my LAMP box. My user facing tools are not including my utility cl

Re: [PHP] Problems with mod_vhost_alias and PHP require

2008-05-07 Thread Aschwin Wesselius
Mário Gamito wrote: Hi, I have this Apache server with mod_vhost_alias and set /home/pages/%0 as the VirtualDocumentRoot In /home/pages/gamito.foo.com I have a index.php file. This generates the http://gamito.foo.com URL. Also, I have a /home/pages/fckeditor with FCKeditor. *This is not defined

Re: [PHP] Problems with mime encoding of Japanese Characters in Subject and 'From:', 'Reply-to:', ... fields.

2008-03-20 Thread Dietrich Bollmann
Hi - in order to see the Japanese Characters in the previous mail you might have to switch the "Character Encoding" of your Email reader to Unicode (UTF-8). In my case (I am using the "Evolution" mail program on Linux): View > Character Encoding > Unicode (UTF-8) Dietrich On Thu, 2008-03-20

Re: [PHP] Problems with MIME emails and multipart/mixed

2007-12-14 Thread Richard Lynch
One subtle thing that always messes up GMail is the use of \r\n instead of \n in a header somewhere in the whole thing... I don't know if this is what's killing you or not, but it was killing me until a couple days ago... You may also want to just do a "diff" on the two emails and see what comes

Re: [PHP] problems with donwload

2007-09-27 Thread Jim Lucas
Hulf wrote: Under the results there are 3 files to download. Some users are getting an uable to read or corrupt message. http://vps.aztechost.co.uk/~trisco/index.php and 3 here http://vps.aztechost.co.uk/~trisco/rankings.php The upload script is similar if(isset($_POST['_upload']) && $_

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-08 Thread Michael Kelly
; "'Mike'" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, August 07, 2007 11:01 PM Subject: RE: [PHP] Problems with file_get_contents() and local PHP file > D'oh! > > The solution is so simple and clean that it almost hurts. I didn't see it in > the fir

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-07 Thread Jan Reiter
nesday, August 08, 2007 3:51 AM To: Mike Cc: php-general@lists.php.net Subject: Re: [PHP] Problems with file_get_contents() and local PHP file On Sun, August 5, 2007 1:37 am, Mike wrote: > Hey. My server is running PHP 4(Not actually my server so I don't know > the exact version) and

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-07 Thread Richard Lynch
On Sun, August 5, 2007 1:37 am, Mike wrote: > Hey. My server is running PHP 4(Not actually my server so I don't know > the exact version) and I'm having trouble with getting an image from a > PHP file. Use to find out exactly what you've got. > The problem is that originally this system was deve

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
Cc: 'Mike'; php-general@lists.php.net Subject: Re: [PHP] Problems with file_get_contents() and local PHP file Jan Reiter wrote: > Nice to hear that! > > If you expect heavy traffic on the site using that script you might want try > to save some DNS and http connection overhe

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Chris
Jan Reiter wrote: Nice to hear that! If you expect heavy traffic on the site using that script you might want try to save some DNS and http connection overhead by stating the url with http://localhost/ and so on. Which will most likely point to a different virtual host and cause you even more

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
vider worry about it! :-D Jan -Original Message- From: Mike [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 12:45 AM To: php-general@lists.php.net Subject: Re: [PHP] Problems with file_get_contents() and local PHP file Hah, it works! I had to fiddle around a few other errors but tha

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Mike
Hah, it works! I had to fiddle around a few other errors but that did the trick! Thank you so much. :) -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problems with file_get_contents() and local PHP file

2007-08-05 Thread Jan Reiter
Hi! If you want file_get_contents() to open the compiled data, force the server to compile it first. ;-) Do not open the file from filesystem, use the ULR (http://server/flash_frames.php?...). For this fopen() wrappers have to be enabled. http://www.php.net/manual/en/function.file-get-contents.ph

Re: [PHP] Problems with matrix

2007-06-23 Thread Jochem Maas
Andres Rojas wrote: > Hi all, > > I'm new in PHP programming and I have a problem with this script. I need > to read a large file around 2Mb and several lines (28000). All start Ok, > but suddenly the script stop without message error. 1. check your error log (apache error log probably) 2. check

Re: [PHP] Problems with matrix

2007-06-22 Thread Andres Rojas
On Fri, 22 Jun 2007 18:09:02 +0100 Tijnema wrote: On 6/22/07, Andres Rojas <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm new in PHP programming and I have a problem with this script. I need > to read a large file around 2Mb and several lines (28000). All start Ok, > but suddenly the script stop wit

Re: [PHP] Problems with matrix

2007-06-22 Thread Tijnema
On 6/22/07, Andres Rojas <[EMAIL PROTECTED]> wrote: Hi all, I'm new in PHP programming and I have a problem with this script. I need to read a large file around 2Mb and several lines (28000). All start Ok, but suddenly the script stop without message error. "; } ?> If only I pri

Re: [PHP] Problems with Curl and POST

2007-04-19 Thread Tijnema !
On 4/17/07, mbneto <[EMAIL PROTECTED]> wrote: Hi Richard, I am using the same script. And it is using the CURLOPT_POST. - mb On 4/16/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > HEAD is just like GET, only it gets just the headers (hence the name) > usually to see if the document has chan

Re: [PHP] Problems with Curl and POST

2007-04-16 Thread mbneto
Hi Richard, I am using the same script. And it is using the CURLOPT_POST. - mb On 4/16/07, Richard Lynch <[EMAIL PROTECTED]> wrote: HEAD is just like GET, only it gets just the headers (hence the name) usually to see if the document has changed according to LastModified: before doing a full-

Re: [PHP] Problems with Curl and POST

2007-04-16 Thread Richard Lynch
HEAD is just like GET, only it gets just the headers (hence the name) usually to see if the document has changed according to LastModified: before doing a full-blown GET. There shouldn't be a HEAD done before a POST... Are you sure you are doing a CURLOPT_POST and not CURLOPT_GET...? On Mon, Apr

Re: [PHP] Problems with mail

2007-04-02 Thread Chris
Mário Gamito wrote: Hi, I have this very straight forward code to send an e-mail: $subject_users_subscription_confirmation = "Subscription confirmation"; $message_users_subscription_confirmation = 'Please, click this link to confirm your subscritpion: http://www.telbit.pt/subscribe-confirm.php?

Re: [PHP] Problems with mail

2007-04-02 Thread cajbecu
Mário Gamito wrote: > Hi, > > I have this very straight forward code to send an e-mail: > > $subject_users_subscription_confirmation = "Subscription confirmation"; > $message_users_subscription_confirmation = 'Please, click this link to > confirm your subscritpion: > http://www.telbit.pt/subscrib

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Punit Neb
On Friday 02 March 2007 21:59, Roberto Mansfield wrote: > The problem is that your function generates thumbnail and then tries to > return the binary image within the html document. Html contains *links* > to images, not the images themselves. So you need to do something like > this: > > > > Then

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Roberto Mansfield
> I have used this method for generating the thumbnail images. I avoided > creating the thumbnails and saving to the disk as the images change very > frequently. > > Thank you so much for helping me with this one:)) > > regards > Punit Neb The problem is that your function generates thumbnail

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Punit Neb
On Friday 02 March 2007 15:48, Németh Zoltán wrote: Many thanks Németh Zoltán for the prompt response. > 2007. 03. 2, péntek keltezéssel 13.56-kor Punit Neb ezt írta: > > hello, > > > > I am a newbie trying to create on the fly thumbnail images on a debian > > sarge system with PHP Version 4.3.9-1

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Németh Zoltán
2007. 03. 2, péntek keltezéssel 13.56-kor Punit Neb ezt írta: > hello, > > I am a newbie trying to create on the fly thumbnail images on a debian sarge > system with PHP Version 4.3.9-1. > > The following code is used > function thumbnail_img($photo_img_name) > { > $percent = 0.5; > li

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-21 Thread Chris
esteban wrote: The don't want to pass the session variable across domains. The problem is in the main domain, i don't know what happens, the session variable lost the value or is distroyed. Track down where is happens with lots of 'error_log' and 'print_r' calls. Work out where it breaks then

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-19 Thread esteban
The don't want to pass the session variable across domains. The problem is in the main domain, i don't know what happens, the session variable lost the value or is distroyed. "Chris" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] esteban wrote: > I have a windows 2000 server wi

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread Andre Dubuc
On Thursday 18 January 2007 06:26 pm, esteban wrote: > I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session > variables to validate users, each page have something like this: > > if($_SESSION["validated"]==0){ > header("Location: index.php"); > exit; > } > > This worked fi

Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread Chris
esteban wrote: I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session variables to validate users, each page have something like this: if($_SESSION["validated"]==0){ header("Location: index.php"); exit; } This worked fine when i had only one domain, but when i began to u

RE: [PHP] Problems with mysql_connect()

2007-01-10 Thread Edward Kay
You're missing a closing parenthesis at the end of: while ($row = mysql_fetch_row($result) This should be while ($row = mysql_fetch_row($result)) > -Original Message- > From: Delta Storm [mailto:[EMAIL PROTECTED] > Sent: 10 January 2007 10:45 > To: php-general@lists.php.net > Subject: [

Re: [PHP] Problems with mysql_connect()

2007-01-10 Thread Jochem Maas
Delta Storm wrote: > Hi, > > I'm having problems with this code (a simple exercise where i wanto to > connect to sql server and get data from it and write that data in html) > > //Prolazi kroz skup zapisa > //ispisuje svako polje > while ($row = mysql_fetch_row($result)

Re: [PHP] Problems with mysql_connect()

2007-01-10 Thread Satyam
There is a closing parenthesis missing, see below: - Original Message - From: "Delta Storm" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 10, 2007 11:45 AM Subject: [PHP] Problems with mysql_connect() Hi, I'm having problems with this code (a simple exercise where i wanto to con

Re: [PHP] Problems with Zip+IE6

2006-12-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-18 15:00:48 -0600: > On Sat, December 16, 2006 6:17 am, Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2006-12-15 22:55:54 -0600: > >> On Tue, December 12, 2006 11:04 am, Frank M. Kromann wrote: > >> > if you use: > >> > > >> > header("Content-Type: application/zip")

Re: [PHP] Problems with Zip+IE6

2006-12-18 Thread Richard Lynch
On Sat, December 16, 2006 6:17 am, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2006-12-15 22:55:54 -0600: >> On Tue, December 12, 2006 11:04 am, Frank M. Kromann wrote: >> > if you use: >> > >> > header("Content-Type: application/zip"); >> > header("Content-Disposition: attachment; >> filename=\

Re: [PHP] Problems with Zip+IE6

2006-12-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-15 22:55:54 -0600: > On Tue, December 12, 2006 11:04 am, Frank M. Kromann wrote: > > if you use: > > > > header("Content-Type: application/zip"); > > header("Content-Disposition: attachment; filename=\"somefile.zip\""); > > > > That works for me with IE 6/7 and other b

Re: [PHP] Problems with Zip+IE6

2006-12-15 Thread Richard Lynch
On Tue, December 12, 2006 11:04 am, Frank M. Kromann wrote: > if you use: > > header("Content-Type: application/zip"); > header("Content-Disposition: attachment; filename=\"somefile.zip\""); > > That works for me with IE 6/7 and other browsers. Argh. Please read this: http://richardlynch.blog

  1   2   3   4   5   >