SV: [PHP] Problems with images..

2008-11-03 Thread Anders Norrbring
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 it? This is what I

SV: [PHP] Problems with images..

2008-11-03 Thread Anders Norrbring
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

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 it?

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 do

Re: SV: [PHP] Problems with images..

2008-11-03 Thread Ashley Sheridan
On Mon, 2008-11-03 at 15:56 +0100, Anders Norrbring wrote: 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

Re: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-29 Thread Stut
On 28 Aug 2008, at 22:17, shaun thornburgh wrote: Hi guys, I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key = $value) { $_POST['addressbookid'] = $value; $out = POST

Re: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-29 Thread Stut
On 28 Aug 2008, at 23:01, shaun thornburgh wrote: Date: Thu, 28 Aug 2008 16:24:58 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending $_POST vairable to an ASP page [snip] Unfortunately I don't have curl installed on my server

[PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh
Hi guys, I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(dmtrk.net, 80, $errno,

RE: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread Jay Blanchard
[snip] I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(dmtrk.net, 80, $errno,

Re: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread Ólafur Waage
IIRC ASP cant recive PHP $_POST variables but it can recive HTML post from forms. If you want to send variables to another language. You can try via a get variable. Dont know if the items you want to send are safe to send over though. Ólafur Waage 2008/8/28 shaun thornburgh [EMAIL PROTECTED]:

RE: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh
Date: Thu, 28 Aug 2008 16:21:19 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending $_POST vairable to an ASP page [snip] I need to send post variables to an ASP page. I have the following code which isn't producing any

RE: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread Jay Blanchard
[snip] Unfortunately I don't have curl installed on my server. [/snip] Unless you can open a socket or a curl session you will not be able to post values to a remote page. Curl is your best bet, can it be installed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh
Date: Thu, 28 Aug 2008 16:24:58 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending $_POST vairable to an ASP page [snip] Unfortunately I don't have curl installed on my server. [/snip] Unless you can open a socket or a curl

[PHP] Problems with includes

2008-05-16 Thread Tyson Vanover
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 (www.hostname.com/)

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

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 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

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 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 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 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 the OS's structure

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.ini file, virtual host,

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 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, .htaccess or in your

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 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

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 ?

[PHP] Problems with mod_vhost_alias and PHP require

2008-05-07 Thread Mário Gamito
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 as a subdomain in

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

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

2008-03-20 Thread Dietrich Bollmann
Hi, --- note --- I sent a similar message already to php-i18n - but this list seems not to be used very much (20 messages this year) so I am posting it here again... I try to send messages written in Japanese (Kana/Kanji) with php. Everything works fine - only when the subject

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 at

[PHP] Problems posting xml file with curl and php

2008-03-18 Thread michaelh613
I have created a XML string using PHP DOM. However when I send it to a third party using curl it shows up as part of an array and cannot be read. How should I be using curl to post a xml file. My code is below [code] ?php Require 'createxml.php'; $Result = simplexml_load_string($result);

Re: [PHP] Problems posting xml file with curl and php

2008-03-18 Thread Nathan Nobbe
On Tue, Mar 18, 2008 at 4:26 PM, michaelh613 [EMAIL PROTECTED] wrote: I have created a XML string using PHP DOM. However when I send it to a third party using curl it shows up as part of an array and cannot be read. How should I be using curl to post a xml file. My code is below [code]

Re: [PHP] Problems posting xml file with curl and php

2008-03-18 Thread Michael Horowitz
I've actually tried that and it didn't work for the server I am sending it to. Is there a way to post just the xml without turning it into an array or is this the only way. Nathan Nobbe wrote: On Tue, Mar 18, 2008 at 4:26 PM, michaelh613 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

Re: [PHP] Problems posting xml file with curl and php

2008-03-18 Thread Nathan Nobbe
On Tue, Mar 18, 2008 at 4:37 PM, Michael Horowitz [EMAIL PROTECTED] wrote: I've actually tried that and it didn't work for the server I am sending it to. Is there a way to post just the xml without turning it into an array or is this the only way. i dont know how to do it w/ the standard

Re: [PHP] Problems posting xml file with curl and php

2008-03-18 Thread Michael Horowitz
Not much documentation there. How would this function be integrated with curl. my quick google doesn't show much discussion of this function. Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-394-9079 Nathan Nobbe wrote: On Tue, Mar 18, 2008 at 4:37 PM,

Re: [PHP] Problems posting xml file with curl and php

2008-03-18 Thread Nathan Nobbe
On Tue, Mar 18, 2008 at 5:22 PM, Michael Horowitz [EMAIL PROTECTED] wrote: Not much documentation there. How would this function be integrated with curl. my quick google doesn't show much discussion of this function. i think this should be easier for you, http_post_data(), however its also

[PHP] Problems with MIME emails and multipart/mixed

2007-12-14 Thread Dan Storm
Hi NG! I'm having some trouble with my MIME mails. When I send an email with txt and html format, it all works perfectly in every type of mailclient i could possibly think of. But when I attach files, gmail and yahoo doesn't show what i expected. Thunderbird and Outlook/outlook express

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

[PHP] problems accesing an object via globals

2007-12-01 Thread julian
I want to open a database connection at program initialization and use that very same connection via globals initilizating ( loading from db) other objects. Basically index.php $db=new mysqli(host,us,pass,db); if(mysqli_connect_errno()){ die('errordb conex'); } switch ($var){

Re: [PHP] Problems building 5.2.4 on Solaris 9 SPARC

2007-11-11 Thread Chris
Khyron wrote: I have tried this for weeks with no success, so I am asking for help with this. Something seems really off with the PHP 5.2.4 build process. You might get more help on the php-install list rather than this one. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP

[PHP] Problems building 5.2.4 on Solaris 9 SPARC

2007-11-10 Thread Khyron
I have tried this for weeks with no success, so I am asking for help with this. Something seems really off with the PHP 5.2.4 build process. I am trying to build PHP 5.2.4 with Apache 2.2.6 and PostgreSQL 8.2.5 support using the following configuration (from a file which I source):

[PHP] problems with donwload

2007-09-27 Thread Hulf
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 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
@lists.php.net 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 first approach! There is a way to go all this, without using file

[PHP] php problems

2007-08-08 Thread racol
Dear Helpers, here are the 2 files I cannot make work. I have installed php in c:\php, my php.ini file is in Windows directory and my path to pear reads include_path = .;C:\php\pear in the phpinfo.php output. I have switched on error reporting and have received the following error messages:

Re: [PHP] php problems

2007-08-08 Thread Chris
a.) PHP Fatal error: main() [a href='function.require'function.require/a]: Failed opening required 'DB.php' (include_path='C:\php\pear') in C:\sambar64\docs\BondMovies.php on line 11 require_once('DB.php'); snip Isn't the pear db class DB/DB.php ? b.)PHP Parse error: syntax error,

[PHP] Problems in php

2007-08-07 Thread racol
Dear Sirs, I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered the error_log and extensions_dir as advised by

Re: [PHP] Problems in php

2007-08-07 Thread Tijnema
On 8/7/07, racol [EMAIL PROTECTED] wrote: Dear Sirs, I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered

Re: [PHP] Problems in php

2007-08-07 Thread Stut
racol wrote: Dear Sirs, I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered the error_log and extensions_dir

Re: [PHP] Problems in php

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 8:09 am, racol wrote: I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered the

RE: [PHP] Problems in php

2007-08-07 Thread Bastien Koert
This is the proper behavior for php. its supposed to only send the html down to the client bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Tue, 7 Aug 2007 20:09:51 +0700 Subject: [PHP] Problems in php Dear Sirs, I have installed

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 ?php phpinfo();? to find out exactly what you've got. The problem is that originally this

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

2007-08-07 Thread Jan Reiter
-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 I'm having trouble with getting an image from a PHP file. Use

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

2007-08-05 Thread Mike
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. I have a file, flash_frames.php, which outputs an image composed of the combination of a bunch of other images. Another file, flash.php, takes

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

2007-08-05 Thread Jan Reiter
-general@lists.php.net Subject: [PHP] Problems with file_get_contents() and local PHP file 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. I have a file, flash_frames.php, which outputs an image

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
-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 that did the trick! Thank you so much

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

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 overhead by stating the url

[PHP] Problems with mirror site script

2007-06-26 Thread Wikus Möller
Hi. I am currently writing a script to put on my site so people can browse other sites by using my site as a mirror therefore the contents of a webpage would be retrieved and echoed on my site. I am having some problems with placing my ad at the top of the page that is echoed when a user

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 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. ?php $fichero=62007lg.txt;

[PHP] Problems with matrix

2007-06-22 Thread Andres Rojas
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. ?php $fichero=62007lg.txt; $buffer = file($fichero); $lineas =

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 without

[PHP] Problems connecting to mysql

2007-06-08 Thread Tom Cruickshank
Hello, I was using a FAMP (FreeBSD Apache MySQL PHP) server for some web development I was doing. Then I had to switch over the php pages to a Linux box, however, the database is still on FreeBSD. Does that make any difference? The reason why I ask is because I keep getting this error. I use

Re: [PHP] Problems connecting to mysql

2007-06-08 Thread Tijnema
On 6/9/07, Tom Cruickshank [EMAIL PROTECTED] wrote: Hello, I was using a FAMP (FreeBSD Apache MySQL PHP) server for some web development I was doing. Then I had to switch over the php pages to a Linux box, however, the database is still on FreeBSD. Does that make any difference? The reason

RE: [PHP] Problems connecting to mysql

2007-06-08 Thread Tom Cruickshank
- From: Tijnema [mailto:[EMAIL PROTECTED] Sent: June 8, 2007 7:00 PM To: Tom Cruickshank Cc: php-general@lists.php.net Subject: Re: [PHP] Problems connecting to mysql On 6/9/07, Tom Cruickshank [EMAIL PROTECTED] wrote: Hello, I was using a FAMP (FreeBSD Apache MySQL PHP) server for some web

Re: [PHP] Problems connecting to mysql

2007-06-08 Thread Tijnema
To: Tom Cruickshank Cc: php-general@lists.php.net Subject: Re: [PHP] Problems connecting to mysql On 6/9/07, Tom Cruickshank [EMAIL PROTECTED] wrote: Hello, I was using a FAMP (FreeBSD Apache MySQL PHP) server for some web development I was doing. Then I had to switch over the php pages

Re: [PHP] Problems connecting to mysql

2007-06-08 Thread Richard Lynch
It's possible that PHP on the Linux box has a different mysql client driver version than the FreeBSD box... I would expect a more detailed error message in that base, but maybe not... Your command line in Linux could be using yet another different client version. Check output from these: ?php

[PHP] problems in WHERE statment

2007-05-23 Thread Mike Ryan
I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT * FROM `job listing` WHERE open =$today LIMIT 0 , 30

Re: [PHP] problems in WHERE statment

2007-05-23 Thread Greg Donald
On 5/21/07, Mike Ryan [EMAIL PROTECTED] wrote: I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT *

Re: [PHP] problems in WHERE statment

2007-05-23 Thread Davi
Em Segunda 21 Maio 2007 16:46, Mike Ryan escreveu: I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT * FROM `job listing` WHERE open

Re: [PHP] problems in WHERE statment

2007-05-23 Thread Eric Butera
On 5/21/07, Mike Ryan [EMAIL PROTECTED] wrote: I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT *

Re: [PHP] problems in WHERE statment

2007-05-23 Thread Daniel Brown
On 5/23/07, Greg Donald [EMAIL PROTECTED] wrote: On 5/21/07, Mike Ryan [EMAIL PROTECTED] wrote: I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where

[PHP] Problems with SSL and stream contexts on 4.x branch...

2007-05-17 Thread David Preece
Hi, Well, this has been fun. I'm not normally a PHP guy, but right now I need to move some data from an HTTPS server into PHP. Problem is that I'm trying to do it properly, confirming that the servers certificate says what it should and that it isn't self signed (i.e. the chain of trust

Re: [PHP] Problems installing php with pdflib

2007-04-26 Thread Tijnema !
On 4/25/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, April 24, 2007 7:39 am, Tijnema ! wrote: On 4/17/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, April 14, 2007 3:55 am, Merlin wrote: I am moving to a new box and want to install php with pdflib again. After configure I get an

Re: [PHP] Problems installing php with pdflib

2007-04-24 Thread Tijnema !
On 4/17/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, April 14, 2007 3:55 am, Merlin wrote: I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path passed to --with-pdflib The path is just fine:

Re: [PHP] Problems installing php with pdflib

2007-04-24 Thread Richard Lynch
On Tue, April 24, 2007 7:39 am, Tijnema ! wrote: On 4/17/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, April 14, 2007 3:55 am, Merlin wrote: I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path

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 changed

[PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Leo Jokinen
Hi all, I've been banging my head into the wall cause I can't get ibm_db2 extension working with Apache 2.0.59 and PHP 5.2.1 (as apache module). (Operating system is winxp pro SP2) For some reason, this code is working on command line but not when placed to htdocs folder: ?php

RE: [PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Buesching, Logan J
from the web. -Logan -Original Message- From: Leo Jokinen [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 10:22 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-general@lists.php.net Subject: [PHP] Problems when trying to use ibm_db2 extension Hi all, I've been banging my head

Re: [PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 9:21 am, Leo Jokinen wrote: Also, phpinfo() won't say nothing that module ibm_db2 is in use Did you re-start Apache? Actually, Windows being Windows, just re-boot the dang thing... You should be used to that. :-) Is the php.ini file named in phpinfo() the one you are

[PHP] Problems with Curl and POST

2007-04-16 Thread mbneto
Hi, I am tring to use curl to access, via POST, a remote 'service'.I've managed to test it fine but when I use real data to feed the curl it gives me strange results. When I check the logs of the remote web server one thing that alarms me is that with test data I see A.B.C.D - -

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,

Re: [PHP] Problems installing php with pdflib

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 3:55 am, Merlin wrote: I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path passed to --with-pdflib The path is just fine: '--with-pdflib=/usr/local/lib' configure needs to find

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

[PHP] Problems installing php with pdflib

2007-04-14 Thread Merlin
Hi there, I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path passed to --with-pdflib The path is just fine: '--with-pdflib=/usr/local/lib' ls /usr/local/lib/pdflib.* /usr/local/lib/pdflib.h ls

Re: [PHP] Problems installing php with pdflib

2007-04-14 Thread Tijnema !
On 4/14/07, Merlin [EMAIL PROTECTED] wrote: Hi there, I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path passed to --with-pdflib The path is just fine: '--with-pdflib=/usr/local/lib' ls

[PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
Hi, I'm building this site that has several PDFs to download, but only to registered users. To prevent people to insert the full URL to the documents, i moved them outside Apache's DocumentRooot, which is /var/www. My site is in /var/www/telbit and i put the PDFs in /var/www I've coded in

RE: [PHP] Problems downloading a PDF

2007-04-04 Thread Peter Lauri
-Original Message- From: Mário Gamito [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 1:46 PM To: php-general@lists.php.net Subject: [PHP] Problems downloading a PDF Hi, I'm building this site that has several PDFs to download, but only to registered users

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Zoltán Németh
2007. 04. 4, szerda keltezéssel 12.46-kor Mário Gamito ezt írta: Hi, I'm building this site that has several PDFs to download, but only to registered users. To prevent people to insert the full URL to the documents, i moved them outside Apache's DocumentRooot, which is /var/www. My

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Richard Davey
Mário Gamito wrote: To prevent people to insert the full URL to the documents, i moved them outside Apache's DocumentRooot, which is /var/www. My site is in /var/www/telbit and i put the PDFs in /var/www I've coded in order to do the trick, but it's failing. I can't get the name of the file.

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Jochem Maas
Richard Davey wrote: Mário Gamito wrote: To prevent people to insert the full URL to the documents, i moved them outside Apache's DocumentRooot, which is /var/www. My site is in /var/www/telbit and i put the PDFs in /var/www I've coded in order to do the trick, but it's failing. I can't

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Richard Davey
Jochem Maas wrote: You don't need to basename() it, you already know what the filename is, because it was requested via $_GET['file']. I would say almost the opposite: Let me rephrase: if you are properly validating the $_GET['file'] input anyway, basenaming it is a superfluous step that

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
Hi, Thank you all for your answers. I would say almost the opposite: I get a Page Not found. The problem is that $file variable is empty (tested with a print). Any ideas ? Warm Regards -- :wq! Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
Hi, Ok, i've hardcoded the filename and i no longer get a 404 error. But the PDF file i get is this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/telbit_website/2/products-testudio.php:14) in /var/www/telbit_website/2/products-testudio.php on

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Zoltán Németh
2007. 04. 4, szerda keltezéssel 14.04-kor Mário Gamito ezt írta: Hi, Ok, i've hardcoded the filename and i no longer get a 404 error. But the PDF file i get is this: Warning: Cannot modify header information - headers already sent by (output started at

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Mário Gamito
Hi, that's what I said before. you echo out some html before the file headers. that will never work. remove the echo statement on line 14 and you should be okay But i need the line echo a href=\products-testudio.php?file=testudio.pdf\, rel=\external\Download TESTUDIO

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Jochem Maas
Richard Davey wrote: Jochem Maas wrote: You don't need to basename() it, you already know what the filename is, because it was requested via $_GET['file']. I would say almost the opposite: Let me rephrase: if you are properly validating the $_GET['file'] input anyway, basenaming it is a

<    1   2   3   4   5   6   7   8   9   10   >