The proper content type is text/xml.
--Matt
-Original Message-
From: bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 3:11 PM
To: Tyler Longren
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] xml header
Hmmm. I'm thinking of the http headers.
Assume you have an xml
Did you try adding:
header(Content-Type: text/xml);
To the top?
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 01, 2001 12:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] XML and PHP - dynamic hell
I'm having one page output XML for other sites to
It would be mighty handy for MySQL to have a binary file column type,
like Oracle, where the file was stored externally, outside of the rest
of the table data... Anyone heard of any plans to implement this?
-Original Message-
From: Julio Nobrega Trabalhando
[mailto:[EMAIL PROTECTED]]
tables)
http://www.nusphere.com/products/tech_library.htm
-Original Message-
From: jimmy elab [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 1:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL to Excel with mutiple sheets
Matthew Loff wrote:
http://www.wotsit.org
http://snaps.php.net/
Again, the whole not fully tested issue comes to play... I'd avoid
using these on a production server, obviously. :)
-Original Message-
From: Mike Eheler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 4:04 PM
To: Zeev Suraski; [EMAIL PROTECTED]
Can't be done easily with PHP right now... To get that type of
functionality, you'd need to write it in Perl using the
SpreadSheet::WriteExcel module.
http://homepage.tinet.ie/~jmcnamara/perl/WriteExcel.html
-Original Message-
From: Brian Lee [mailto:[EMAIL PROTECTED]]
Sent:
-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 1:02 AM
To: 'Matthew Loff'; 'Brian Lee'; [EMAIL PROTECTED]
Subject: RE: [PHP] MySQL to Excel with mutiple sheets
Can't be done easily with PHP right now... To get that type of
functionality, you'd need
I always stick with PHP for web apps, but I am in a similar situation, I
have to write a script that generates statistics and item reports from a
database... The client wanted them in Excel format... I could have done
CSV, but for the sake of aesthetics, I decided to go with a native Excel
Richard already answered the variable part, but I thought I'd point out
that you need to use double quotes in your HTML tags... Single quotes
are incorrect...
?
echo(P
FORM method=\POST\ action=\join2.php\
text for button
INPUT type=\submit\ value=\Next step\
INPUT type=\hidden\
I was waiting for someone to meantion de Morgan! 10 points for Mr.
Elab. Ha ha...
-Original Message-
From: jimmy elab [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 17, 2001 1:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: alzheimers and confused
de Morgan and Boole, not
I would have to agree on a global scale.
However, strictly in discussion of server-side languages, I haven't seen
ASP documentation as complete/useful as PHP's... I have never had to
use anything besides the PHP manual to solve a problem in writing
something.
-Original Message-
More generally, this should work:
$smallarray1=array_slice($bigarray, 0, sizeof($bigarray) / 2);
$smallarray2=array_slice($bigarray, sizeof($bigarray) / 2);
I haven't tested it though...
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 4:32
What prevents you from doing this iteratively, (not loading all 150,000
rows into memory, but processing each row sequentially)?
-Original Message-
From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 11:44 AM
To: Php General MailingList
Subject: [PHP]
I found sessions to be kind of fussy to get working, perhaps that's just
because I didn't have any experience with them until the last site I
did...
A simple call to session_unset() won't erase the session, but should
clear whatever username/passkey (I say passkey, assuming/hoping it's
Response.Clear
Response.Redirect
Doesn't that imply that ASP buffers the output? The problem with
redirecting the browser after you output data isn't a PHP issue, it's
the HTTP spec.
I think the best solution would be to turn on output buffering, then
immediately flush the output buffer when
The only reason I could see that not working is if PHP is typecasting
test to (int) in the second example...
$qty = 0; (string)
test = test; (string)
0 != test (evaluates true)
$qty = 0; (int)
test = 0; (when cast to int)
0 != 0 (evaluates false)
e.g. By comparing an int to a string in
The main manual seems to be down right now, probably being rebuilt...
Take a look at:
http://www.php.net/manual/en/html/
strip_tags() is under String Functions, and has been around for a
while.
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21,
Last time I checked, there is a class for creating tar files in PEAR...
Check your PHP installation...
Once you create a tar file, I'm sure you can filter it through zlib to
create a .tar.gz file.
-Original Message-
From: Georgie Casey [mailto:[EMAIL PROTECTED]]
Sent: Friday, October
Have you tried using curly brackets?
print td$a[B]td{$quotes[$a[B]]}td
Does that work? Just cuious...
-Original Message-
From: Job Miller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 8:44 PM
To: Maxim Maletsky (PHPBeginner.com); [EMAIL PROTECTED]
Subject: Re: [PHP]
The lack of fprintf() has been discussed on this list before, but I'm
not sure what the status is on the PHP development side...
http://bugs.php.net/bug.php?id=1027
-Original Message-
From: Bill Rausch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 7:08 PM
To: [EMAIL
Read the manual. (Déjà vu?)
http://www.php.net/manual/en/function.fread.php
Even has an example that says -- get contents of a file into a string
-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 7:42 PM
To: [EMAIL PROTECTED]
Subject:
PROTECTED]]
Sent: Sunday, September 23, 2001 4:11 AM
To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED]
Subject: Re: [PHP] Disk Usage
Well, it's an intriquing idea, but I'm not getting any success out of
it. thanks for the suggestion. I'll keep plugging away.
--
Scott Poarch
http://www.globalhost.com
!
-Matt
-Original Message-
From: Scott Poarch [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 22, 2001 10:37 PM
To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED]
Subject: Re: [PHP] Disk Usage
I appreciate the help.
I understand the 'du -sk', but what's the (int) all about. Are you
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 8:32 PM
To: PHP Users
Subject: [PHP] Just for fun:
Here is a question, just for fun:
What is the biggest function (In terms of line count) you have ever
written?
I just finished one
FYI-- Page breaks can be designated with CSS (style sheets)...
Although that's not a completely cross-platform method.
-Original Message-
From: * RzE: [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 18, 2001 4:01 AM
To: hue micheal; [EMAIL PROTECTED]
Subject: Re: [PHP] Print
Thanks for the clarification...
Anyone have any benchmarks of the MySQL ODBC driver? Just out of
curiousity...
--Matt
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 9:47 AM
To: Matthew Loff; 'Michael Kimsal'; 'Masami Kawakami'
Cc
Can't be done...
1) Browser sends request
2) PHP page is compiled and executed
3) PHP output is sent to browser
4) Browser displays page/executes javascript/etc.
-Original Message-
From: Salty Marine [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 16, 2001 3:54 PM
To: [EMAIL
+ 'color_depth=' +
screen.colorDepth
-Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 16, 2001 4:13 PM
To: Matthew Loff; 'Salty Marine'; [EMAIL PROTECTED]
Subject: RE: [PHP] Getting screen resolution and color depth
But you could then re-submit the page
I would agree that the DB is probably the biggest bottleneck...
Are you connecting to the DB via ODBC? I'm not an expert at DB stuff
outside of the MySQL realm, but I've heard many say ODBC is horribly
slow. I don't know ASP that well, but could someone comment on ADODB?
It uses OLEDB, not
Are you using Internet Explorer? I've found that broken installations
of Acrobat will cause that... Try reinstalling acrobat on your computer,
and also try using Netscape... See if they work.
--Matt
-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
What version of PHP are you running?
There were a few bugs in the file upload code that have been fixed in
recent relases of PHP...
--Matt
-Original Message-
From: Jani Rautiainen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 3:51 PM
To: [EMAIL PROTECTED]
Subject:
echo SELECT NAME=\whatever\\n;
while($row = mysql_fetch_assoc($yourquery)
echo OPTION . ($whatever == $row['value']? SELECTED :)
.VALUE=\{$row['value']}\{$row['name']}/OPTION\n;
echo /SELECT\n;
Just insert a ternary operator in there, and check if the submitted
value is equal to the
Oops... My bad.
I misread the question... Ignore my previous reply.
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 6:47 PM
To: Jared Mashburn; PHP Users
Subject: Re: [PHP] Dynamic Form
PHP does not know what the user has selected
Subdomains are first a DNS issue... The first place you have to go is
your DNS config, since users.body-builders.org wouldn't exist without an
A or CNAME record.
I don't know if mod_rewrite can do anything about the subdomains like
that, if it can't, you will have to add VirtualHost directives
[mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 09, 2001 1:38 PM
To: [EMAIL PROTECTED]; 'Matthew Loff'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] mod_rewrite
How about http://wasarrested.com? IO don't know how they do it, but you
can enter whatever subdomain you want and it reflecst
There isn't any difference, if your php.ini settings allow it
(short_tags, I believe), you can use ? instead of ?php
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 09, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] difference between
You could insert a ternary operation...
($order?$order:defaultfield)
Is the same as:
if($order)
echo $order;
else
echo defaultfield;
...
$result = mysql_query(SELECT
articles.title,vote.votes,vote.total,articles.date,staff.firstname,artic
les.content,articles.id FROM
Doesn't PHP exec sendmail when mail() is called anyway? (Unless you run
another MTA, of course)
I would think they'd take the same amount of time, unless there is
overhead with using popen()
--Matt
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
Banning PHP from your system just because GD won't compile with it seems
a bit drastic...
You have to realize that the PHP developers don't really have anything
to do with GD, pdflib, etc... they have added support for them into the
PHP language, but an issue with one of these external
You need to specify which item to group the query by.
SELECT users.uid FROM users, picks WHERE users.uid picks.user_id
GROUP BY users.uid;
-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 10:42 AM
To: [EMAIL PROTECTED]
Subject:
I got the same error message, and couldn't figure out why...
In the example for pdf_findfont(), it has:
$font = pdf_findfont($pdf, Times New Roman, winansi, 1);
Try changing your embed parameter to 0...
$font = pdf_findfont($pdf, Times New Roman, winansi, 0);
... That fixed it for me. Give
It's postscript points, I believe... 72 points per inch.
So, an 8.5x11 page is 612x792 points large.
--Matt
-Original Message-
From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 3:59 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP]
1) strftime(%T on the %D, strtotime($yourdate));
Should produce: 00:12:45 on the 08-22-2001
You can check the manual page for strftime() to see different ways to
format the time to your liking:
http://www.php.net/manual/en/function.strftime.php
2) The way you're trying to do that sounds
PHP docs are weak on debugger_on() because the debugger isn't a feature
in PHP 4 :)
It was not included in the transition from PHP 3 to 4. You'll have to
use a 3rd-party debugger for PHP code. Search the archives for this
list, it has been discussed in the past.
-Original Message-
JavaScript Reference Guide--
http://rts.ncst.ernet.in/resources/javascript/reference/
I remember having trouble finding a complete object/method reference
too, this document really helped me.
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001
How exactly is the username/password from the mysql_connect() call shown
to the browser?
I normally just get a PHP error when the db connection can't be made.
No code is shown, just a line number. If, in your case, PHP dumps the
source code to the browser window when the db connection won't
The debugger is not built into PHP 4, it was a feature in PHP 3.
--Matt
-Original Message-
From: Peter Dowie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 12:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Is there a debugger ???
Hi,
I noticed in php.ini there was a
Ha ha... hardcore the user/password
Sorry... I realize you gave a good answer, just had to laugh. :)
-Original Message-
From: Attila Strauss [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL connection
hi,
there
Usually if-statements and regex's are used to validate data... If you
just want to make sure the form is filled out completely, you could do
this: (which is how I do it)
if(empty($name) || empty($address) || empty($phone))
{
// Form is not complete
echo 'Name: INPUT TYPE=TEXT
For reference, in case anyone cares-- from within functions, I usually
just do:
global $HTTP_POST_VARS;
extract($HTTP_POST_VARS);
...to account for the scope of the form vars.
-Original Message-
From: Mark Roedel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 4:08 PM
Resizing a whole page of large images on the fly every time is going to
put a heavy load on your CPU...
If you insist on doing that, see the PHP image functions available
through the GD library...
http://www.php.net/manual/en/ref.image.php
I recommend you use PHP 4.0.6 with GD 2.0.x... With
You can do this several ways... Either use explode():
http://www.php.net/manual/en/function.explode.php
...to split the retrieved data by a space as the delimeter, then use
a for() loop to print X number of words... E.g.:
$array = explode( , $db_string);
for($i = 0; $i 25; $i++)
I agree with the try to answer your own question first theory that you
propose...
I have used PHP for almost 2 years now, and just subscribed to this list
a month or two ago, but have yet to ask a single question... But I
realize we're all at different skill levels, and so far, I haven't done
Try this:
function month_list()
{
echo select name=\month\\n;
$month_names = array(1 = January, 2 = February, 3 =
March,
4 = April, 5 = May, 6 = June, 7 = July,
8 = August, 9 = September, 10 = October,
11 = November, 12 =
Oops! I forgot to include the parameter...
function month_select($month)
{
echo select name=\month\\n;
$month_names = array(1 = January, 2 = February, 3 =
March,
4 = April, 5 = May, 6 = June, 7 = July,
8 = August, 9 = September, 10 = October,
RTFM... Read the Fabulous Manual. :) ha ha...
It's possible, and downright easy.
http://www.php.net/manual/en/language.variables.variable.php
-Original Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 10:58 PM
To: PHP Mailing List
Instead of using numbers, I use this system:
chmod a+rwx
(all users read/write/execute)
chmod u+rwx
(owner of file read/write/execute)
chmod g+rwx
(group read/write/execute)
chmod o+rwx
(all users read/write/execute)
The plus + can be substituted with a minus - to remove specific
If you're only doing one DB query per page, then the query is probably
what's taking the longest.
Log into mysql, and execute EXPLAIN SELECT ...rest of query ... It'll
tell you how MySQL plans on performing the query across the rows of the
table(s). You can use the information it provides to
If the PDF file is publicly accessible via a web server, you should be
able to simply do:
header(Location: http://www.server.com/file.pdf;);
-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 7:47 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
O'Reilly book and PHP manual? That's the best you're going to get.
(Others will recommend other books, but the O'Reilly one is great to
start with)
Good luck!
-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 9:06 PM
To: [EMAIL PROTECTED]
That's like saying What's C++ good for?
Well, not quite... Ha ha... I get a bit carried away... But it's close
enough.
PHP does what you want it to do... Database-driven sites are covered
frequently on this list because PHP's database support is extensive and
very easy to use.
You
http://www.php.net/manual/en/function.substr.php
string substr (string string, int start [, int length])
Substr returns the portion of string specified by the start and length
parameters.
If start is positive, the returned string will start at the start'th
position in string, counting from
Ben--
Thanks for pointing that out... I've been looking for info like that for
a long time!
Much appreciated.
--Matt
-Original Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 1:23 PM
To: Vincent P. Cocciolone
Cc: [EMAIL PROTECTED]
Subject: Re:
Output control functions will let you buffer the output, and you can
decide to send a header instead of flushing the buffer to the client:
http://www.php.net/manual/en/ref.outcontrol.php
ob_start() flush() should accomplish this all for you.
-Original Message-
From: Clayton Dukes
I don't see why you wouldn't be able to access that share... Did you try
escaping the path?
e.g. chdir(computer\\dir);
-Original Message-
From: ReDucTor [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 6:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Networking
Hey does any
I think ucfirst() only does the first character of the string...
ucwords() will do all the parts of the name.
The only shortcoming I've found is if people put in a middle initial and
add a period to it, or put a nickname in quotes... ucwords() skips
those.
-Original Message-
From:
Whew! They're giving away a lot of vacations if we -all- qualify...
:)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 22, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] 33 Need A Vacation? Let Us Take You On One for FREE...
You have
If $lookup is passed from the client, then you should be careful with
that exec() call...
http://www.php.net/manual/en/ref.exec.php
Use one of the escape...() functions, perhaps?
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 12:47 AM
INPUT TYPE=HIDDEN NAME=name_of_variable VALUE=value_of_variable
-Original Message-
From: Tim Olsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 2:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] passing variables from forms to the same page
repetatively
People,
I have 4 forms
I don't know a way around the problem you're describing with your
version of PHP, but PHP 4.0.6 with GD 2.0.1 allows you to call
ImageCreateTrueColor(), which eliminates the 256-color limitation with
JPEG files-- solved my problem right away.
-Original Message-
From: Jennifer
$site = fopen( http://www.whatever.com/ http://www.whatever.com/,
r);
$contents = fread($site, 102400);
fclose($site);
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] GEt Command
Does
If PHP won't overload them to an array, you could parse $QUERY_STRING
manually.
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:06 PM
To: 'Kurt Lieber'; 'PHP General List (E-mail)'
Subject: RE: [PHP] REPOST: converting multiple URL
I am not sure how easy it would be to learn PHP from scratch without any
prior programming experience...
In my case, knowing C and HTML very well made learning PHP easy as
pie... I think both are great starting points for someone who wants to
do PHP well.
-Original Message-
From:
Just for reference, I originally meantioned a comparison of PostgreSQL
beta vs. MySQL latest-- here's the article:
http://www.phpbuilder.com/columns/tim2705.php3?page=1
I'm curious to hear comments on stability of Postgres, since the author
of that article meantions it as a concern of
You probably mean SSH tunnel, which is quite feasable-- Hank Marquardt
posted this earlier to the list:
--- BEGIN QUOTE ---
Works just fine ... as does postgres --
ssh -N -2 -f -C -c blowfish -L3306:yourdatabase.server.here:3306
[EMAIL PROTECTED]
or the other usual
on a Windows platform. Is there any way to get this
functionality on Win32?
I downloaded the tar.gz file with teh libmcal library in it, but I have
no idea what I would do next.
-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 1:43 PM
Unfortunately, it doesn't -- you bring up a good point.
It does support the compressed client/server protocol, which would make
it harder to intercept-- but encryption is not an option yet on the
client.
I don't suppose there's any way on Win32 to use an SSH tunnel, is there?
-Original
-h 127.0.0.1
for postgres examples, change the port numbers (3306) to 5432
On Fri, Jul 13, 2001 at 06:39:51PM -0400, Egan wrote:
On Fri, 13 Jul 2001 12:28:37 -0400, Matthew Loff [EMAIL PROTECTED]
wrote:
Does mysql-front encrypt the password before it travels the net?
It does support
I second that recommendation-- MySQL-Front is downright excellent!
http://www.mysqlfront.de/
-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 6:47 AM
To: Steph; [EMAIL PROTECTED]
Subject: RE: [PHP] Alternative to phpMyAdmin
mysql front
Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 2:15 PM
To: Matthew Loff
Cc: 'Steve Brett'; 'Steph'; [EMAIL PROTECTED]
Subject: Re: [PHP] Alternative to phpMyAdmin
So sprach »Matthew Loff« am 2001-07-12 um 14:07:16 -0400 :
I second
libmcal is a pain in the butt to set up, but once it's set up, it has
some great features... I had to write a PHP page that handled
scheduling of appointments, and mcal saved me a lot of time, after I
spent the initial 2 hours pulling my hair to set it up. :)
-Original Message-
From:
Jason--
There are many reasons I don't quite recommend creating the thumbnails
on the fly with ImageMagick:
1) I've heard many say that storing/retrieving images from MySQL
databases isn't the greatest idea, because you end up with -huge-
tables, which leads to long query times.
2) Resizing a
With PHP, not without creating an index file.
If the server is apache, you can simply create a .htaccess file in the
directory, containing:
order deny,allow
deny from all
I'm pretty sure that should do it.
-Original Message-
From: Tom Malone [mailto:[EMAIL PROTECTED]]
Sent:
Maybe his mysql.sock file isn't in /var/lib/mysql/mysql.sock?
Mine is /tmp/mysql.sock
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 1:31 AM
To: Gaylen Fraley
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP installed - MySql Server can't
Ahh! I forgot to meantion the \n at the end of the headers in my
original post...
-Original Message-
From: Marcus James Christian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Mail Bcc to a $variable?
Like this...
Since IDs can disappear when records are delted, I think it's best to do
a COUNT() first, then retrieve your listings with
SELECT * FROM table WHERE blah LIMIT offset,number_to_retrieve;
-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001
Have you tried a non-persistant connection? Does that work?
mysql_connect()?
-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 3:12 PM
To: php list
Subject: [PHP] Fatal error: Call to undefined function: mysql_pconnect()
in ...
I'm
;
}
but that's also a quick-n-dirty way, becuase it
doesnt know when the first/last record is...
however, that's less quick and less dirty than
the original code i posted
TIMTOWTDI - there's more than one way to do it. :)
-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED
(This is assuming you'll have all images in the directory, and no other
file types...)
$directory = opendir(./);
$dirEntry = readdir($directory); // Skip .
$dirEntry = readdir($directory); // Skip ..
while($dirEntry = readdir($directory))
{
// GetImageSize Code for Each $dirEntry
Sendmail should (by default) attempt to send the mail immediately... If
it can't deliver it on that attempt, then it should be queued to send
again later (30 mins?)...
Unless you've configured sendmail differently, it should attempt to
deliver as soon as the mail is sent from PHP.
You can
The build date in phpinfo() is the date that configure was run from
scratch on the build...
Try deleting config.cache in the PHP directory, then rerun configure.
-Original Message-
From: Kyle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:44 PM
To: [EMAIL PROTECTED]
Is this only a problem with PHP/GD versions previous to 4.0.6/2.0.1?
Does the new ImageCreateTrueColor() function fix this issue?
http://www.php.net/manual/en/function.imagecreatetruecolor.php
-Original Message-
From: James Cox [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10,
(Have the To: address be yourself, or a mail account that simply dumps
to /dev/null)
$to = [EMAIL PROTECTED];
$subject = Subject of Message;
$message = blah blah blah...
$headers = From: Optional Name of List [EMAIL PROTECTED]\nBCC:
[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED];
I believe the problem is GD previous to version 2.0.1... They could only
create images with indexed (256?) colors...
I had a PHP script that used GD to resize JPEGs to smaller thumbnails
automatically... And it would always reduce them to 256 colors, until I
upgraded to PHP 4.0.6, GD 2.0.1, and
;
...or if you had the BCC e-mail addresses in one-dimensional array...
$headers = BCC: . implode(,, $bcc_emails_array);
Best of luck!
-Original Message-
From: Marcus James Christian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 9:48 PM
To: Matthew Loff
Cc: [EMAIL PROTECTED
You could always do...
If(!strcmp($text1, $text2))
{
equal;
} else {
not equal;
}
-Original Message-
From: James Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 10:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variables
No it doesn't seem to like
A quick plug for Mysql-front at http://www.mysqlfront.de/ that Hennik
meantions here...
If you use Win98/ME/2k/NT, and are looking for a utility to admin a
MySQL database, this is hands-down the best front end I've ever used...
-Original Message-
From: Henrik Hansen [mailto:[EMAIL
Make sure the code is like:
#!/usr/local/bin/php -q
?php
...code...
?
(obviously the location of php may be different, but the above works for
me, I'm running a daily e-mail batch from a PHP script via cron)
Make sure you chmod ug+x it.
-Original Message-
From: James, Yz
Yep... Getting them here too.
-Original Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 8:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Mosinskis's autoreply
Just out of curiosity, is everyone else receiving auto-replies from
Peter Mosinskis when
I completely agree, Dave...
I use IE 6 for browsing, but when I develop sites, I always test them
for backwards compatibility all the way down to Netscape 3.0. If your
site renders properly in NS 3.0, then you can rest assured it will
render correctly for the majority of web users out there.
1 - 100 of 116 matches
Mail list logo