php-general Digest 5 Aug 2007 16:37:06 - Issue 4944
Topics (messages 260197 through 260208):
Rejecting File Upload
260197 by: php mail
260198 by: Michael Preslar
260199 by: Steve Edberg
260207 by: Tijnema
Problems with file_get_contents() and local PHP file
php-general Digest 6 Aug 2007 04:51:05 - Issue 4945
Topics (messages 260209 through 260223):
Wierd error with xml_set_element_handler()
260209 by: Bruce Steinback
260210 by: Tijnema
Re: Check for well formed html
260211 by: Kathleen Ballard
Adding to time having a
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
I'm having problem with php mail. When I try to create an
html message with only a href='mydomain.com'mydomain/a,
gmail is registering it as a spam while yahoo is not.
Can you suggest solutions to my problem.
Try sending a real message. Messages being too small is one indicator of
a
Hi gang:
I have a client who wants to include html tags in his CMS.
I know that I can limit what tags he can use, but how can I check if
the text is well formed with the tags permitted before storing it in
his CMS?
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com
Hi!
If you want file_get_contents() to open the compiled data, force the server
to compile it first. ;-)
Do not open the file from filesystem, use the ULR
(http://server/flash_frames.php?...).
For this fopen() wrappers have to be enabled.
Can you post the headers that you are using...they play a role how the message
is viewed by the receiving agent
bastien
Date: Sat, 4 Aug 2007 21:06:53 -0700
From: [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] Problem with php
On 8/5/07, tedd [EMAIL PROTECTED] wrote:
Hi gang:
I have a client who wants to include html tags in his CMS.
I know that I can limit what tags he can use, but how can I check if
the text is well formed with the tags permitted before storing it in
his CMS?
Cheers,
tedd
Have a look at
On 8/5/07, Jason Sia [EMAIL PROTECTED] wrote:
Hi Everyone,
I'm having problem with php mail. When I try to create an html message
with only a href='mydomain.com'mydomain/a, gmail is registering it as a
spam while yahoo is not. Can you suggest solutions to my problem.
Thanks,
Jason
On 8/5/07, php mail [EMAIL PROTECTED] wrote:
Hi All,
How do I prior check file's size in server side before the upload process
begin ?
Regards,
Feris
You can't do it with PHP, with PHP you can only check it after the
file has uploaded, you can only do it on the client side. This means
Jason,
There's a chance your domain link is listed on a spam URL realtime blocklist.
Try using http://www.rulesemporium.com/cgi-bin/uribl.cgi to find out.
This might also be totally wrong, just throwing that around as a possibility
since you mentioned the problem happens with URLs. Does the
Okay, I'm probably really stupid, but I can't figure this out. I'm getting the
error:
Fatal error: Function name must be a string in .../pages-stage/loginresp.php on
line 205
(which is the xml_set_element_handler() call)
with this code:
function startElement($parser, $name, $attrs) {
On 8/5/07, Bruce Steinback [EMAIL PROTECTED] wrote:
Okay, I'm probably really stupid, but I can't figure this out. I'm getting
the error:
Fatal error: Function name must be a string in .../pages-stage/loginresp.php
on
line 205
(which is the xml_set_element_handler() call)
with this
Tedd,
Finally, I can give you an answer! :)
You can use html tidy. I did this before the php tidy function was fully
implemented, so I don't know the syntax for that. But using tidy from the
command line you can set have it either correct errors (probably not what
you want) or just have it
OOzy Pal wrote:
How can I add a day to a date if I have a timestamp. Here is my line:
list($d,$m,$y,$dayname,$monthname,$am)=explode(' ',date('d m Y D M a',
$timestamp));
Thank you in advance
$timestamp = $timestamp + 86400;
A timestamp is a number of seconds and there are 86400 seconds in
As far as I understand it is only possible to create a DateTimeZone
Object from a string, which describes the timezone.
On the other hand it is not possible (at least I did not find any
possibility) to get the users tz string, it is only possible to get the
current UTC offset. (via JavaScript
On Fri, 20 Jul 2007 16:39:51 -0500 (CDT), Richard Lynch wrote:
Did you save it as UTF-8 with that byte-order-mark (BOM) thingie?
Does UTF-8 even HAVE a BOM?
http://www.unicode.org/Public/UNIDATA/Index.txt:
byte order markFEFF
U+FEFF is ef bb bf in UTF-8.
/Nisse
--
PHP
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
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. Given that the server's OS is unix based, it
may also work to execute the php-script like a shell
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
Hi
In the past, I always used mysql_insert_id() and never had a problem,
but now that I'm using PDO, I'm finding that it always returns zero.
The tables are identical between the two methods but where
mysql_insert_id works $pdo_connection-lastInsertID() doesn't.
The PDO documentation
You've got a point about that.
Try
?php
echo file_get_contents(http://localhost/path/to/webdir;);
?
First ... If you see your own webpage it's okay, else don't mess with it.
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, August 06, 2007 2:51 AM
To: Jan Reiter
Disregard.
After more head scratching I found that I was branching to the
'insert' handler without calling this-db-query($query).
On Aug 5, 2007, at 9:18 PM, Ken Tozier wrote:
Hi
In the past, I always used mysql_insert_id() and never had a
problem, but now that I'm using PDO, I'm
I have two tables that share product codes to relate data.
One table is called IMAGE, and another one is called the PRODUCT.
There are more than one image for every product, for example product
code 1122 will have 3 images and 4938 will have 5 images within the
IMAGE table. Since all my product
On Sun, 2007-08-05 at 21:35 -0700, Kelvin Park wrote:
I have two tables that share product codes to relate data.
One table is called IMAGE, and another one is called the PRODUCT.
There are more than one image for every product, for example product
code 1122 will have 3 images and 4938 will
zerof [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Tom Ray [Lists] escreveu:
I've been learning how to use PHP with the GD Library and I've managed to
learn quite a bit. I can upload, resize, create thumbnails and I'm even
able to create security code images for forms. My
26 matches
Mail list logo