When I try to use PHP to send mail through qmail I get a "qmail-inject: fatal: read
error". I have read through the list and I have seen (and tried) the following
solutions:
1. Put /var/qmail/bin/qmail-inject into php.ini
2. Ensured that all appropriate sendmail links exist
2. Also tried the p
I completely gave up trying to compile freetype 2.x into GD. However
I was able to successfully compile freetype 1.3 directly into PHP
which seems to work fine.
IE:
forget trying to use:
--enable-gd-native-ttf
instead:
--with-ttf=/usr/local/freetype/
whic
Personally, I kind of like:
switch(1){ default: // BREAK BLOCK START
blah blah blah...
// Want to get out of here...
break;
} // BREAK BLOCK END
It's a little more cumbersome than the while construct, but it is absolutely
guaranteed to only go through once, whilst the "while" ver
I'm having all sorts of headaches trying to get TTF support in gd to
work. I have compiled from scratch gd 1.8 with ttf support by way of
freetype 2, this compiles fine. Then I compile php using the configure
statement below and all I get when I try and call a TTF function is:
Warning: libgd wa
I use indentation to check out the form; missing brace at end? Check it
out.
User :
Password :
Post News
Edit News
Delete News
Add User Account
Delete User
Username :
Password :
From: "infoz" <[EMAIL PROTECTED]>
>
> If all the messages were identical, we might be able to get some
efficiency
> by sorting the list by domain name and batching them up with SMTP
That's a very BAD idea. If you sort the mail by domain, you will flood
the mail queue because normally, mail sent
on 7/3/01 12:19 AM, Victor Spång Arthursson at [EMAIL PROTECTED]
wrote:
> Hi!
>
> I'm converting from ASP/VBScript, and need to know how to declare a
> session variable.
i feel your pain. i just finished moving a site from ASP/VBScript to
PHP/Javascript, learning ASP/VBScript and Javascript a
Yes, if you can stop mail server. Then kill the related process. No,
otherwise.
-Kittiwat
- Original Message -
From: "Matthew Delmarter" <[EMAIL PROTECTED]>
To: "Michael Stearne" <[EMAIL PROTECTED]>
Cc: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 9:38 AM
Subject
cool,
you should be able to get the route table with either 'route' or 'netstat
-r' on a redhat box. they both return the same thing on my slackware box.
[use@box user]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
localnet
Hi!
I'm converting from ASP/VBScript, and need to know how to declare a
session variable.
In VBScript I just type in:
<%
session("any") = "victor"
%>
Then I can print that variable on any page on the same webpage using:
<%
response.write session("any")
%>
as long as I don't close the browse
Hello everyone,
I need some guidance. After browsing through a few shopping carts, I've
decided to write my own. I want to write one to satisfy the geek in
me...just for the love of doing it.
Plus, I want to add some additional features to it. Like, Wireless
access, etc.
Anyway, I'm loo
Hi all,
I am developing a simple PHP menu class - the goal is to use PHP and a
mySQL database to quickly generate a menu tree. I require some assistance
with the database abstraction I am trying to use:
My entire menu is stored in a "menu" table containing these fields:
id - id of record (AUTOI
Hi again,
I am writing a PHP script to test if the server on which it is running is
currently connected to the Internet. If so, the main page will display a
notice saying "We are now online", else it will say "Not connected"
Any ideas on how to do this with PHP? I'm guessing it would involve som
If you don't see mysqld running when you do a ps, then the problem is
starting mysql... Mysql doesn't report errors in starting up to the
terminal... You need to find the log file...
The log file should be stored in your /mysql/data directory. The
logfile should be named [domain].log... S
I'm on a redhat 7.1 box on a pentium 3 pc. I set up networking via netcfg.
Here are the settings (names have been modified):
Names
Hostname localhost.localdomain
Hosts
IP Name Nickname
-
It's strange -- I see that the message has an attachment in Outlook Express
but I'm not given the option to save it. I guess it got stripped off.
I'd really appreciate it if you could put up a link to it.
Thanks so much!.. Aral :)
__
([EMAIL PROTECTED])
New Media
Hi there.
i have a script like this
#!/usr/local/bin/php
Problem when run
SETUID
if i run as root it's ok but if i run as diffrent user it's won't run
ok i know it's a problem on the permission i set is to chmod 4750
in perl it should run as root...but in php not
so how can i fix this whe
I'm trying to make php work with mysql but I can't
even create a table. I'm receiving this error.
[root@menace mysql]# mysqladmin create testdb
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server though
socket '/var/lib/mysql/mysq.sock' (2)'
Check t
Is it possible to stop the mail delivery once the process has started - even
in the middle of a run?
-Original Message-
From: Michael Stearne [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 2:07 PM
To: Matthew Delmarter
Cc: PHP Mailing List
Subject: Re: [PHP] sending 5000+ emails -
If you aren't concened about multiple entries with the same date, you
could try:
$rs1 = mysql_query("select * from tablename where item_id=34 and
item_type_id=3 order by date desc limit 1");
$last_date=mysql_result($rs1,0,0);
Although I don't know how efficient of an SQL query that is... Perha
You can use gnoRPM to remove the apache package. Then look here:
http://www.php.net/manual/en/install.apache.php
Johnny
-Original Message-
From: Juan Pablo Rivera [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 1980 7:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php intall
hi
how do
hi
how do i install php in my redhat 7.1 server when alredy have intaled apache with
.RPM???
On Tue, 3 Jul 2001 09:54, Christian Dechery wrote:
> I have to get some results from a mysql table, and I'm pretty sure that
> I'm not doing it the best way.
>
> its like this... I have a table (a historical one) with these fields:
> date | item_id | item_type_id | qty | value
>
> and there are m
Logre hacer funcionar el php en windows 98 con PWS, pero lo unico que he podido es que
en la carpeta c:\php\, el archivo php.exe asociarlo a .php de esta forma
c:\php\php.exe index.php >> index.htm
Esto me genera un archivo HTM, que resuelve mi problema, lo malo es que para verlo
tengo que darle
I'm trying to make php work with mysql but I can't
even create a table. I'm receiving this error.
[root@menace mysql]# mysqladmin create testdb
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server though
socket '/var/lib/mysql/mysq.sock' (2)'
Check th
I have to get some results from a mysql table, and I'm pretty sure that I'm
not doing it the best way.
its like this... I have a table (a historical one) with these fields:
date | item_id | item_type_id | qty | value
and there are multiple lines for the pair item/type (as I said it's a
histori
> It's more of a pain if I have to remember what order the parameters go
Yeah, good point. I can see that. What i have been doing is componentising
the page into functions which are responsible for rendering a discrete
section of that page...ie if a page consists of a title bar and a form and
t
If what you mean is if PHP sessions can register objects, that is true and
quite effective.
Ethan Schroeder
- Original Message -
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 4:36 PM
Subject: [PHP] Objects and sessions
Hello,
I was informed by someone that is a blatent liar and regulary makes
things up that PHP session can handle Objects. Is this true?
Thank you,
Brandon Orther
Jon Shoberg pressed the little lettered thingies in this order...
>
> Is there an SQL query for resetting the autoincrement field of a table ? I
> know myisamchk will do this but the system I am on will not let me us it.
> I can get console level access but that is all. I simply want to reind
I would like to know if any one has information on phpAdsNew, which can be
used to manage banners.
Thanks
Cesar Cuneo
President
Corpsoft Inc.
10855 NW 33 Street
Miami FL 33172
Tel. 305-971-8032
Fax. 305-232-2227
Visit our website: ---> www.corpsoftinc.com
--
PHP General Mailing List
Is there an SQL query for resetting the autoincrement field of a table ? I
know myisamchk will do this but the system I am on will not let me us it. I
can get console level access but that is all. I simply want to reindex my
data back to the start of 1.
Thanks
--
PHP General Mailing List (
i would love to see this too, i think it was stripped.
thanks,
joe
www.bigidea.com
scott [gts]([EMAIL PROTECTED])@Mon, Jul 02, 2001 at 04:54:26PM -0400:
> it's attached to the email.
>
> did you get the attachment, or was it stripped off somewhere?
>
> i can upload the files to a server and p
on 7/2/01 3:59 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:
> Yes, I could load a page from localhost until I set up networking.
>
> No, I cannot load a page from 127.0.0.1. Tried that.
>
> Embarrassed to ask. What is a routing table and how do I find it?
no need to be embarrased for
you will probably need to use two programs to
properly configure your linux box for networking
you have to configure a default gateway to tell the
linux networking stuff how to get out to the internet.
read the man pages on 'route' and 'ifconfig', the
binaries should be here:
/sbin/route
/
Yes, I could load a page from localhost until I set up networking.
No, I cannot load a page from 127.0.0.1. Tried that.
Embarrassed to ask. What is a routing table and how do I find it?
Best,
Daniel
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, July
so, let me see if i understand the situation. you could load a webpage from
localhost. then you set up networking to access the internet thru a windows
machine acting as a gateway. now you can't load a page from localhost?
correct?
is localhost still your machine? can you load a page from http://
Hmm. I tried "http://123.123.123.123/ (using windows machine) and I got a
request for authorization. When I filled in my Linux username and pass, it
returned an "authorization failed" message. Any advice.
Best,
daniel
-Original Message-
From: Peter Houchin - SunRentals Australia [mail
Appreciate your help. Yes I can ping localhost. I do believe I can solve the
php problem once I solve the networking problem as I've discovered that the
prepend path was set incorrectly.
Best,
Daniel
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 0
it's attached to the email.
did you get the attachment, or was it stripped off somewhere?
i can upload the files to a server and provide
a link if you didn't get the email attachment.
> -Original Message-
> From: Aral Balkan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 4:26
correction below
chuck
- Original Message -
From: "Charles Williams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Php-General (E-mail)"
<[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 10:54 PM
Subject: Re: [PHP] Capturing output of shell script.
>
> - Original Message -
> From
- Original Message -
From: "Brad Hubbard" <[EMAIL PROTECTED]>
To: "Charles Williams" <[EMAIL PROTECTED]>;
"Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Saturday, June 30, 2001 1:12 PM
Subject: Re: [PHP] Capturing output of shell script.
> On Sat, 30 Jun 2001 06:36, Charles Williams w
Hi Scott,
I'd love to see the class you made but couldn't find a link in your email.
Could you let me know where to find it?
Thanks :)
Aral
__
([EMAIL PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., American University
¯¯¯
On Mon, 2 Jul 2001 12:55:32 -0700 (PDT), John Holcomb
([EMAIL PROTECTED]) wrote:
>The company that houses our servers only has php 3.0
>installed. I need a function that can unzip files.
>Are there any methods(functions) that can handle this
>in php3.0 or any version of php that's before php 4.0
The best way I've seen this done is:
But putting it within while(0), you can simply break; from it...
There may be better ways... Any other suggestions?
-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:33 PM
To: php
Subject: RE: [PHP] Fu
Here's a little function i use to traverse an array
of arbitrary complexity... it uses recursion.
function array_traverse ($ary, $b=array()) {
while ( list($k,$v) = each($ary) ) {
print (join("", $b)) . "$k = $v\n";
array_push($b, "\t");
if ( is_array($ary[$k]) ) {
IE does a lot of mysterious things behind the scenes...
perhaps IE automatically puts in the current page's
location if no ACTION is specified. however, i
really dont know.
try echo-ing the variable somewhere outside of a form,
to see if the variable itself contains anything...
to my knowledg
The company that houses our servers only has php 3.0
installed. I need a function that can unzip files.
Are there any methods(functions) that can handle this
in php3.0 or any version of php that's before php 4.0.
Thank you,
John
__
Do You Yahoo
Hello scott,
You are right the Action tag is empty in Netscape but in IE it is in
there. How come it puts it there in IE but not in Netscape
Monday, July 02, 2001, 10:46:10 AM, you wrote:
scott [gts]> did you try viewing source to make sure that
scott [gts]> the ACTION="" tag actually contains so
you could print "Set-Cookie: name=value; etc. etc. etc."
but setcookie(); is really what you want.
> -Original Message-
> From: Gonyou, Austin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 12:40 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Best Way to set cookies
>
>
> Id lik
does your browser prompt you to download the file when
you try and look at *.php files?
did you make the appropriate entires into the apache
httpd.conf and restart apache?
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 1:26 PM
> To
this is my guess at what's happening... i dont know
100% if that's why cookies aren't setting properly,
but here's an educated guess on my part:
probably becuase time() is seconds since 1970, and as
far as i understand, once it gets over 999,999,999
it will not work correctly becuase it will roll
in regards ot the "OO v. Functions", where you asked about
a session handler class... i have written a class that handles
sessions, although i dont know if it's exactly what you're
looking for, you might want to give it a peek.
since i am a big fan of code reuse, i must include my
DB abstraction
i dont know of a function to skip to the end of the
nearest ?>, and i suspect that there isn't one...
you can use other control func's to do what you need,
in the context that you're working in...
read up on: goto, break, continue, return
> -Original Message-
> From: Anil [mailto:[EMAI
have you tried doing it using while()?
At 01:28 29/06/01, Anette Löfquist wrote:
>I have an array, $field, like following:
>
>Array ( [0] =>
> Array ( [0] => Array ( [disp] => computer
> [index] => computer )
>
On Monday 02 July 2001 18:25, [EMAIL PROTECTED] wrote:
> Hi, I'am trying to install PHP406 under W2K and Apache132 web server. The
> installation of Apache was successfull and it works. About PHP I'am trying
> to install the CGI version but even the installation finishes ok, the PHP
> looks not w
Hi,
I posted this on Friday but figured I would try one more time before learning to
"live with it".
I am running PHP 4.0.5 as an Apache Module (with Zend Optimizer) on NT 4.0
SP6 and have been very happy with it. Until we think about using Easysoft
solution the only method we have to get
did you try viewing source to make sure that
the ACTION="" tag actually contains something?
AFAIR, MSIE will post to the same location if there's
no ACTION="", but netscape will not...
so it looks like your ACTION="" tag is empty, but
becuase IE and Netscape handle things differently,
you're ge
how did you install PHP? as CGI or apache module?
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 7:31 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How can i read php from browser??
>
>
> Hello,
> i have apache 1.3.19 configured wi
exec('passwd');
that's how you do it.
now figure out why it wont work. :)
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Moise Bertrand TACHAGO
> Sent: Monday, July 02, 2001 5:33 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to execute passwd
confucious say:
typing it up in 20 minutes and then spending 2 hours
debugging is much worse than taking an hour to type it
up and spending only 20 minutes debugging ;)
> -Original Message-
> From: ReDucTor [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 3:31 AM
> To: [EMAIL PR
Hi, I'am trying to install PHP406 under W2K and Apache132 web server. The
installation of Apache was successfull and it works. About PHP I'am trying
to install the CGI version but even the installation finishes ok, the PHP
looks not working becouse nothing happen when I load some PHP file.
I ne
Hi, I'am trying to install PHP406 under W2K and Apache132 web server. The
installation of Apache was successfull and it works. About PHP I'am trying
to install the CGI version but even the installation finishes ok, the PHP
looks not working becouse nothing happen when I load some PHP file.
I ne
Hi, I'am trying to install PHP406 under W2K and Apache132 web server. The
installation of Apache was successfull and it works. About PHP I'am trying
to install the CGI version but even the installation finishes ok, the PHP
looks not working becouse nothing happen when I load some PHP file.
I ne
I have a login form (look below) It works just perfict in IE but in
Netscape it gives me this error Not Found The requested URL /build3.0/user/
was not found on this server.
It can not find the page the thing is the page that it needs to find
is the same page the login form is on and the path to t
it's also a dangerously common misconception among
non-programmer manager-types that the more important
or essential a program is, the more lines of code
it will require
> -Original Message-
> From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] Pricing Advice Needed
>
I have found that browsing through the tutorials at www.devshed.com to be
quite useful.
It covers alot of the basics and some advanced stuff as well.
Kevin Johnson
Jr. System Administrator
Erogo, Inc.
www.erogo.com
Contact Info:
Email: [EMAIL PROTECTED]
Office: (714) 832- x150
Cell: (714)
of course it can ;)
> -Original Message-
> From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 01, 2001 9:13 PM
> To: PHP Mailing List
> Subject: [PHP] sending 5000+ emails - use PHP?
>
>
> I at looking at using PHP to send a monthly newsletter to 5000+ users who
> h
using the full pathname of the uptime binary should work.
although, there are issues on some servers that user
'nobody' (a common owner for apache) cannot get 'uptime'
information... so even if you get uptime to work correctly,
beware that it may return bogus data.
> -Original Message-
Is there a func() that will let me break or skip to the END of the
code
snippet?
I have a file that contains both HTML and PHP.
I know there are several ways of attacking this. Including making a func()
that outputs the footer - skip() containing a bunch of print statements with
the
Bill Rausch pressed the little lettered thingies in this order...
> Rasmus, et.al.,
>
> OK, I'm still confused. What does SSL have to do with any of this?
>
SSL makes it impossible (well, improbable anyway) to sniff the session
ID from the network. Without SSL, anyone on the network between t
do you have the image data in the database, or are all the images
stored in the filesystem?
it appears to be the latter... so i'd say either:
1) move the images into the webserver's document root,
or somewhere web-accessable.
2) symlink them permanently.
i can't understand why you'd wan
i'm pretty sure apache tries its best to keep things like this (doing
anything as root) from happening.
you might look at apaches documentation for suexec.
on 7/2/01 3:31 AM, Yamin Prabudy at [EMAIL PROTECTED] wrote:
> sorry i might miss the discussion bout setuid
> can anyone give me an help o
On 02-Jul-01 Clayton Dukes wrote:
> Don,
> Thanks for the info.
>
> I'm a bit confused,
> When I call the function, what is the syntax as it applies to my form?
>
> ie:
> openpost ("dps2.usairways.com, /cgi-bin/fi, FltNum=2972 page=fi");
>
> I know this doesn't work, but do you see what I mean
You guys have some serious problems. I recommend getting help
- Original Message -
From: "Justin Farnsworth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 8:42 AM
Subject: [PHP] Re: mailing list [EMAIL PROTECTED]µÄ×Ô¶¯»ØÐÅ
Have a look at these two settings in your php.ini
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textsize = 4096
- Frank
> Hi,
> I've hit a little problem... When retreiving large TEXT data (equivilant to
> MyS
if what you need is to obscure source code, scripting
languages are probably not what you're looking for...
there are ways to compile/encrypt/obscure the source,
but they're usually a bit of a pain in the neck
and easy to crack.
> -Original Message-
> From: Thomas Deliduka [mailto:[
Id like to discuss what the best params are for setting cookies using PHP.
Specifically the expirey. Anyone?
--
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Rasmus, et.al.,
OK, I'm still confused. What does SSL have to do with any of this?
If I'm running a site using SSL, all that does is encrypt the
transmitted info right? It doesn't have anything to do directly with
the sessions though?
The problem I'm wrestling with is:
Person A logs in to m
Hi,
How to set a forever cookie into client machine. I use the following
syntax to set the cookie, but when I close the brower's window, then the
cookie is deleted when the browser closed.
setcookie("buyerid",$email,time()+360,"","$domain");
setcookie("buyeridpasswd",$passwd,time()+3
use assoc. arrays, please. your code will be *much*
easier to maintain and extend. variables-of-variables
are headaches for everyone involved.
$location = $input_form[$i];
> -Original Message-
> From: David A Castillo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 29, 2001 1:41 PM
>
mysql returns an assoc array that also have numerical keys,
perhaps you're thinking of that...
to my knowledge, PHP never supported numeric & string
indexing to it's assoc. arrays... i've tested the code
below on PHP v4.0.4 and v4.0.6 and it runs the same:
numerical index values return nothing.
Hi,
I've hit a little problem... When retreiving large TEXT data (equivilant to
MySQL's MEDIUMTEXT) from a MS SQL database using PHP, the data becomes
truncated after 4,095 bytes. I have tried connecting both with ODBC, and the
MsSQL php functions, but to no avail. It works fine in ASP ;-)
Andrew Halliday wrote:
>
>
>Ive coded in both PHP and ASP and in both OO and function oriented.
>Ultimately, i find functionally oriented PHP to be the best ... what do
>other people think?
>
As much classes/objects as possible, imo. 'functions' by themselves are
OK for smaller stuff,
but when
maximum verbosity is not good programming practise. :)
don't succumb to the dreaded Charles Dickens Syndrome
and make the code too wordy and cluttered to be easily
maintanable or understandeable.
i've had to wade thru code written by people with CDS,
and it's a nightmare seeing some of the exes
You might also want to reference James Hoffman's excellent "Introduction to
Structured Query Language" (SQL Tutorial) page:
http://w3.one.net/~jhoffman/sqltut.htm
Aral :)
__
([EMAIL PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., Am
i dont mean any offense at this, but if you dont even
know how to give an unprivileged script 'root' privileges,
you probably shouldnt be doing it ;) you can inadvertently
make your system extremely vulnerable.
but if you're intent, read up on "SUID scripts" and
"wrapper" programs that give you
>> Ive coded in both PHP and ASP and in both OO and function oriented.
Ultimately, i find functionally oriented PHP to be the best ... what do
other people think?
Having learnt how to program using Basic when I was 8, I had to unlearn a
lot of things as I moved from Basic to Pascal (what? I can't
You need to open your httpd.conf and add the extension lines to make it
parse php. Mine looked like this:
ServerRoot "C:/Dev/Apache Group/Apache"
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .ph
that last email accidentally got sent to the wrong list...
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
or you could output the raw contents of the file
after sending the appropriate headers...
albeit, a simple redirect is much easier :)
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Gonzalo Quan
> Sent: Monday, July 02, 2001 4:42 AM
> To: Syed An
put it outside the document root accessable by apache.
if your documentroot is: /usr/local/apache/htdocs/
put your script somewhere outside the 'htdocs' directory.
> -Original Message-
> From: Petur Bjorn Thorsteinsson
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 29, 2001 11:54 AM
try something like this:
$emails = array('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]',
'[EMAIL PROTECTED]');
$doms = array(
'domain1.com'=>1,
'domain2.com'=>1,
);
while ( list(,$email) = each($emails) ) {
preg_match('/^([_\.0-9a-z-]+)@(([0-9a-z][0-9a-z-
i dont know the function you're looking for, but read up on
the rules of formal logic, and maybe you can roll your own.
i know that simplification of logical statements (and therefore,
easing the burden of analyzing those statements) is a foundation
of formal logic...
> -Original Message---
how about something like,
$result = @mysql_query($sql);
$data = @mysql_result($result, 0, "PICTURE");
$type = @mysql_result($result, 0, "FILETYPE");
$comment = @mysql_result($result, 0, "COMMENT");
Header("Content-type: $type");
echo $data . "" . $comment;
or, instead of using Header, crea
/usr/sbin/sendmail should be SUID root, if your isn't change that and it
should work fine.
Julia
Quoting Shrout, Ryan ([EMAIL PROTECTED]):
> I don't think that is it anymore. I have a new discovery. Upon running the
> actually PHP script from the console, the code works! But only when I am
>
I don't think that is it anymore. I have a new discovery. Upon running the
actually PHP script from the console, the code works! But only when I am
logged in as root. When logging is as anyone else, the mail() function
fails with a Permission Denied on /usr/sbin/sendmail
So, it would appear t
hmmm...
i just copied your code and changed the email address to mine and it
worked. $message was set to 'blah'.
this tells me you either have a problem with your email address or
$message.
why don't you echo $message along with "Email NOT sent!".
mail messages are particular about
as a start, you'll probably have to update httpd.conf
(if you're using apache) and named ... or at least know
how both work.
please read the pertinent docs.
> -Original Message-
> From: Man He [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 10:51 PM
> To: [EMAIL PROTECTED]
>
Hi
After upgrading to pdflib-4.0.1 from 3.x (and php 4.0.4pl1),
both pdf_open_gif (deprecated) and pdf_open_image_file
say Could not open file, although images are there
and they were working before.
Someone else had this problem too
http://www.php.net/manual/en/function.pdf-open-image-file.php
1 - 100 of 142 matches
Mail list logo