I've seen that, there is no mb_trim() that I can see.
- Naz.
adel wrote:
http://www.php.net/manual/en/ref.mbstring.php
On 8/3/07, Naz Gassiep <[EMAIL PROTECTED]> wrote:
The functions trim() and explode() appear to be munging multibyte UTF-8
strings. I can't find multibyte safe versions of t
Hi,
I need to get the current time in EST timezone while my current timezone is
CEST. I use the function :
date_default_timezone_set('EST')
But now the time that I get is 1 hour less than the time in EST (
http://wwp.greenwichmeantime.com/time-zone/usa/eastern-time/), probably
without taking car
HI,
Are you looking for EDT or EST?
EST = EDT -1.
EDT = EST +1
Take care,
Leonard
On 8/4/07, Crab Hunt <[EMAIL PROTECTED]> wrote:
> Hi,
> I need to get the current time in EST timezone while my current timezone is
> CEST. I use the function :
>
> date_default_timezone_set('EST')
>
>
> But now
Hi!
Try setting the timezone to one of the cities inside it from this list:
http://www.php.net/manual/en/timezones.america.php
DST will be taken into account automatically.
Hope that helps.
Jan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
if time() is always 1 hour behind what you want, why not
time() + 3600 // 60 seconds * 60 minutes
On 8/4/07, Crab Hunt <[EMAIL PROTECTED]> wrote:
> Hi,
> I need to get the current time in EST timezone while my current timezone is
> CEST. I use the function :
>
> date_default_timezone_set('EST')
>
At 3:57 PM +0200 8/4/07, Jan Reiter wrote:
Hi!
Try setting the timezone to one of the cities inside it from this list:
http://www.php.net/manual/en/timezones.america.php
DST will be taken into account automatically.
Hope that helps.
Jan
Jan:
That's the problem, it doesn't work.
I have min
I mostly use Firefox but still I check to make sure everything works in IE7
and other browsers equally as well. I had strange results here. I have a
simple login form(user/pass field and submit button). I have the actual
login request script in a common php file. I have an Authentication class
tha
Hi Naz,
Any byte function is NOT safe for UTF-8.
trim() works properly with UTF-8 IF you don't specify the charlist
(second argument). This is because all whitespace characters are in the
ASCII range, and therefore it won't corrupt the UTF-8 string.
The explode() function will handle UTF-8 as
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 question is how
do I create a Watermark on the image? I want something transparent but
still visi
On 8/4/07, Tom Ray [Lists] <[EMAIL PROTECTED]> wrote:
> 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 question is how
This is usually referred
Great! Thanks for the answer, that's very helpful. Will trim() work if I
specify charlists in the ASCII range? Not that I ever do, but just curious.
- Naz
Daniel Macedo wrote:
Hi Naz,
Any byte function is NOT safe for UTF-8.
trim() works properly with UTF-8 IF you don't specify the charlist
(
Hi,
1. first you know current page number
2. you know how many pages
Next consider total how many page number you want to display Assume 5
I.e. <<
first previous | 1 2 3 4 5 | next last >>
Now when you come to page 4 then starting page is around 4-1 or 4-2 (however
you want) and start
Tedd:
you can set your default php timezone in the php.ini with the date.timezone
value.
What Server do you use? What OS?
I'm using apache2.x on win32, debian and fedora core. The time of Detroit
looks ok to compared to
times stated on world time pages on the internet.
After upgrading to PH
Yes it will, trim() was given the option to specify other characters in
PHP 4.1.0.
Rember that it's a byte function, so single byte characters can be
handled, you just can't use it for multi-byte characters.
~ DM
Naz Gassiep escreveu:
Great! Thanks for the answer, that's very helpful. Will
Hi!
Try using imagealphablending() to blend your logo onto the original image.
This function should not require the user browser to be capable of blending
functions as would using the alpha channel of a png inmage or such ...
Jan
-Original Message-
From: Tom Ray [Lists] [mailto:[EMAIL
you can use also the following function :
Regards,
Greg
http://www.psmdev.com
On 8/4/07, Tom Ray [Lists] <[EMAIL PROTECTED]> wrote:
>
> 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
At 11:32 AM -0400 8/4/07, Tom Ray [Lists] wrote:
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 question is how do I create a Watermark on the i
Hello ,
Those code doesn't mean anything to client browser, you may session cookie
problem. Please check php.net online manual about it.
Regards
Sancar
On Saturday 04 August 2007 18:20:49 Brian Seymour wrote:
> I mostly use Firefox but still I check to make sure everything works in IE7
> and ot
GP INTERACTIVE wrote:
you can use also the following function :
function getPictureMarked($sourcefile, $watermarkfile) {
#
# $sourcefile = Filename of the picture to be watermarked.
# $watermarkfile = Filename of the 24-bit PNG watermark file.
#
//Get the resource
I just couldn't find it anywhere, google or yahoo. I know how to make
first, previous, last, and next links for php/mysql pagination. How do
you list page numbers in the middle, between previous and next? (ex. <<
first previous | 1 2 3 4 5 | next last >> )
I know how to display them from 1 to
Hi,
I need to add a simple chat system to my site and I am trying to find out
good solutions, free or paid. Some of the requirements :
- php :)
- uses some sort of template system (smarty better)
- support for private chats
- source code available
- one chat room (except for private chats everybo
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 question is how
do I create a Watermark on the image? I want something
robert mena escreveu:
Hi,
I need to add a simple chat system to my site and I am trying to find out
good solutions, free or paid. Some of the requirements :
- php :)
- uses some sort of template system (smarty better)
- support for private chats
- source code available
- one chat room (except f
Hi all,
I was curious if anyone could provide some insight on tools which allow
developers who strictly focus on server-side programming and not UI, to
quickly implement XHTML/HTML templates with proper div placement. Drag and
drop would be preferable.
I'm currently working on a project which no
I have since hired a designer who's going to take everything I hand to him
and CSS
it and add the right touches to it to make it a deliverable project.
You mean you will hand him your PHP code? I wouldn't expect a designer to
take it from there. Perhaps you mean hand him the rendered HTML?
Hi Everyone,
I'm having problem with php mail. When I try to create an html message
with only mydomain, gmail is registering it as a
spam while yahoo is not. Can you suggest solutions to my problem.
Thanks,
Jason
Send instant messages to your online friends http://uk.messenger.yahoo.com
Hi All,
How do I prior check file's size in server side before the upload process
begin ?
Regards,
Feris
Check http://www.php.net/file_upload .. In specific, the MAX_FILE_SIZE
form field .. And then check
http://us3.php.net/manual/en/ini.core.php#ini.upload-max-filesize
On 8/4/07, php mail <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> How do I prior check file's size in server side before the upload proce
At 11:48 AM +0700 8/5/07, php mail wrote:
Hi All,
How do I prior check file's size in server side before the upload process
begin ?
Regards,
Feris
If you want file information for a file on the *server*, see
http://www.php.net/manual/en/ref.filesystem.php
If you want file size inf
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 th
30 matches
Mail list logo