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
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
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?
-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
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
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
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
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,
[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,
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]:
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
[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:
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
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/)
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
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
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
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
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
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
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
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,
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
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
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
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
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 ?
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
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
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
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
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);
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]
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:
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
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,
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
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
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
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){
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
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):
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'])
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'])
@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
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:
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,
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
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
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
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
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
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
-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
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
-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
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
-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
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
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
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
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
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;
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 =
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
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
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
-
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
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
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
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
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 *
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
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 *
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
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
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
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:
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
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
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
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
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
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 - -
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,
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
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
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
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
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
-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
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
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.
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
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
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:
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
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
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
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
101 - 200 of 1046 matches
Mail list logo