"Mike Gifford" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I'm trying to replace a couple of lines of code:
>
> $dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.'));
> $extension = substr($userfile_name, $dotpos);
>
> with a simp
Are they powerful? Well they are compatible with PERL's Regular
expressions...you should use the 'preg_' functions...
Check the manual anyway...: http://www.php.net/manual/en/ref.pcre.php
"Jeff Lewis" <[EMAIL PROTECTED]> wrote in message
009201c13704$b20abe90$76a1a8c0@LEWISJCIT">news:009201c1370
thanks again all,
The data will be the whole web page and I have to extract out the current
share pricing etc, probaly grab thier sexy chart as well (was told you can
take what you want as long as you use thier guidlines which they provide
apon contact) I suppose I could use imlib or gd to genera
PHAKT will reduce your development time, but you'll still need to
customize the code. That is, unless your doing something relatively
simple.
You're best bet is to learn the code. That's invaluable.
-john
__John Monfort_
_+---+_
Version php 4.0.6 Win32
I get :
Unable to load './extensions/php_ldap.dll'.
Witch dlls must be copied in /winnt/system32 (dlls are all in /php/dlls
?).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
From: ~~~i LeoNid ~~ <[EMAIL PROTECTED]>
Date: Thu, Sep 06, 2001 at 05:30:44PM +
Message-ID: <3b97b222.78196206@localhost>
Subject: Re: [PHP] For the RegExps gurus!
> You can keep improving:) or you can use piece of my working (except for
> $Harlem, to which i am not going:) code (I give it
then it should probably be
SetCookie("bilderanzeige","\"$bilderanzeige\"",time()+3600*24*30,"/","",0);
as a general rule, only numerics can get away without being surrounded in
quotes
- Original Message -
From: "Jochen Kaechelin" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTE
Also remember PHP has a maximum execution time (normally 30 seconds) so you
will need to overwrite when running the script.
- Original Message -
From: "Kath" <[EMAIL PROTECTED]>
To: "Fotwun" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 12:39 AM
Subject: Re: [P
Hi there
Is there any way to use in php.ini previously set environment variables? I
mean when I set doc_root to "C:/Documents and Settings/zaruba/My
Documents/My Webs" and several lines below I need to set session_save_path
to "C:/Documents and Settings/zaruba/My Documents/My Webs/.sessions" is it
Me again :)
I have a query that orders by id#, the problem is I have 17 items and I get an output
like so: 1,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9
So it thinks 1 and 10 are the same, and it thinks 11 is less than 2 and so on and so
forth. Remedy please? (I'd rather not rename the items 01, 0
It is simply ordering them as type data rather than as type integer. Change
your data type in the db.
George, a newbie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 9:16 AM
Subject: [PHP] ordering a query
Me again :)
I have a qu
Just to expand slightly on this answer...
think back to days at school, you order works as so aardvark, abbey,
accoustic, ie you compare rightmost letters, if they match then compare the
next letter along until you find a difference... this is what your sort is
doing. It doesn't think 1 and 10 are
Hi,
while installing php on my windows 98 machine
i got the following warning
this came when i execute this
C:\php>php.exe -i
"Unable to load dynamic library 'c:\php/mysql.dll'-one of the library files
needed to run this application can not be found"
(that error is java script dialog warning)
Hi!
I want to know how many users are currently online at my site.
How can I get this info from php? Can I?
Thank you for answer.
Barno
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
put this code in the home web page
$conn user online";
} else {
echo"$conn users online";
}
?>
and create this table in you db to hold the necesary values
#
# Table structure for table 'uonline'
#
CREATE TABLE `uonline` (
`caduc` int(15) NOT NULL default '0',
`ip` varchar(40) NOT NUL
Hey Richard, you are right but I got someone that suggested an easier way to do
it.
tar xvzf php-4.0.5.tar.gz
cd php-4.0.5
# need to make sure -lssl is before -lcrypto in configure for curl to work
correctly
sed 's/-lcrypto/-lssl -lcrypto/g' configure > c2
rm -f configure
cp c2 configure
chmod 75
When do I have to use mysql_free_result($res). Is it good to use it with
every query or only if the result is very big (what's the size of the result
I shoud use mysql_free_result?).
What's about the use of unset($var). Is this good to save RAM to make my
script run faster?
Do I have to do this al
Hi friends,
I would like to implement sending an e-mail through SMTP server.
Here my SMTP server needs authentication.
How to pass the username and password to SMTP server??
Thanks and regards
-Balaji
--
I suppose You have ASA 6.0 or later version installed on Your machine with
Linux. If it is true, then You can install Open Client for ASE 11.0.3 (it is
free) and You can communicate via Open Client to ASA. It works only with ASA
6.0 and higher. Then You need to compile PHP with Sybase Open Client.
Hello all,
i tried to make the browser save a file by setting headers
In this case the Browser (IE 5.5 W2K) just displays the content,
http request
T4 09/07 11:03:17 Server Data: GET http://iwonttell/
T4 09/07 11:03:17 Server ausgabe/auswertung.php
HTTP/1.0{0D}{0A}Accept:
T4 09/07 11:03:1
Hi,
I want to extend an existing array.
the array is
$shoplist[$pid] = $units;
and i want to have $ price in it too.
How do I do?
/Kristofer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To conta
Hello there
Our company is located in the offshores, we specialise in helping our clients to
setup offshore Banks, IBC's, asset protection,
Bank accounts and other offshore services.
We can offer you a Class I bank located in the Caribbean with a holding Swiss Trust
Company with an administra
Hi !
I used PHP 4.0.3pl1 with gd lib (>1.6) and used the PNG functions.
Everything was ok.
I have changed to PHP 4.0.6 , i installed it with gd support, but now PHP
says that there are no support for PNG files...
In phpinfo(), GD support is well enaled.
I search the mailing lists in the archiv
If you wish $shoplist[$pid] have $price in it with $units, you have to make
$shoplist a multidimensional array which is simpple:
Try that out, it should give you the idea. You can make it even more
multidimensional if you need to.
Niklas
-Original Message-
From: Kristofer Thorssell [
[EMAIL PROTECTED] (Mike Gifford) writes:
> Hello,
>
> I'm trying to replace a couple of lines of code:
>
> $dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.'));
> $extension = substr($userfile_name, $dotpos);
>
> with a simpler regular expression:
> $extension
Hello people,
I've got a question regarding the follwing scripts that gives an error.
When I execute the scripts below I get an warning-message:
- Warning: Division by zero in ./scripts/fasen_include.php on line 47...
This is the script I use.
When the vars are set the value has to be added to
I need to solve the following problem, but I can't figure out how:
Let's assume we have a server called www.test.com
When a user access http://www.test.com/path/username,
I want a php script to execute, as if the url entered was
http://www.test.com/path.php?value=username.
I'm running PHP 4.0.6
Hi,
Does anyone know why the custom error handler (set_error_handler) doesn't
catch all errors? Some still falls through to PHP's standard error handler.
Bug?
(PHP/4.0.4pl1)
--
Thanks,
Tais M. Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
ichange that line to
if($weight[$i]) $percentage[$i] = $totaal[$i] / $weight[$i];
All tho this does mean that if $weight[$i] is zero then $percentage will be
as well
HTH, Tom
- Original Message -
From: "Bart Verbeek" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Friday
Try method=GET in Your form to submit if You want to url be like
url?var=value. Or php function header( 'Location: ' .rul . 'var=value' );
That's all You need I hope. Sorry but Your question is not good explained.
Krzysztof Kocjan
Martin Lindhe wrote:
> I need to solve the following problem, bu
> Try method=GET in Your form to submit if You want to url be like
> url?var=value. Or php function header( 'Location: ' .rul .
> 'var=value' );
No, i'm not using a form, and i cant execute any php scripts whatsoever
if there are no php script specified to execute.
> That's all You need I hope
Hy there,
I've got serious problems with the imap_fetchbody function and need help
urgent.
When using $atty = imap_fetchbody($mbox, $i, $b, FT_INTERNAL); to fetch
a base64 encoded attachment, imap_fetchbody replaces CRLF although it
shouldn't. I did RTFM and it says:
--- snap ---
FT_INTERNAL -
Hi Martin,
Take a look at the Apache mod_rewrite docs.
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
I added this to my httpd.conf:
---snip---
RewriteEngine on
RewriteCond %{HTTP_HOST}^nu\.osd\.dk$
RewriteRule ^.*$http://www.osd.dk/main.php?m=nu
[R=301,L]
---
Note: The example I wrote is only 3 lines, each starting with RewriteX!
Beware of unintended line breaks caused by newsposting. :)
--
Tais M. Hansen
" Tais M. Hansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ---snip---
> RewriteEngine on
> RewriteCo
> Hi Martin,
>
> Take a look at the Apache mod_rewrite docs.
>
> http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
Thanks alot!
I made a similar solution which works
RewriteEngine on
RewriteRule "^/x/(.*)" "http://www.server2.com/users/$1";
takes www.server1.com/x/martin to www
On Thursday 06 September 2001 23:20, James wrote:
> 1) Have you released full or partial code to any of your projects?
Yep.
http://lgdc.sunsite.dk/
(http://lgdc.sunsite.dk/source/ for the code)
> 2) What kind of program was it (web mail, groupware, bulletin board,
> website template etc)?
Webs
hello all,
i am trying to install Loadrunner for in linux,
am not sure where is my LD_LIBRARY_PATH
linux rhat7.1 can some pls point me out
many thanks,
kind regards
caleb
_
Get your FREE download of MSN Explorer at http://explo
Hi there
I have set "session.auto_start" to "1", but without "Session_Start()" the
session handling doesn't work. But I think it definetely should - am I
wrong? /:o) Or what else should I change in PHP.INI to make this work
properly.
Bye
Yaroukh
--
PHP General Mailing List (http://www.p
I think I remember doing it a while ago. But I think you need to use
mod_alias instead. Take a look here:
http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect
The Redirect/RedirectMatch/RedirectTemp might do it.
--
Tais M. Hansen
"Martin Lindhe" <[EMAIL PROTECTED]> wrote in message
83
> I think I remember doing it a while ago. But I think you need to use
> mod_alias instead. Take a look here:
>
> http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect
>
> The Redirect/RedirectMatch/RedirectTemp might do it.
>
RedirectMatch permanent "^/x/(.*)" http://www.test.com/y/tes
As far as I can tell, it's a bug. I posted it on here and the only reply I
got was from someone having the same problem. I logged it as a bug and then
wasn't able to add more information as I hadn't set a password when I first
entered the bug. Then I emailed trying to be able to change it and h
[EMAIL PROTECTED] (Martin Lindhe) writes:
> > Hi Martin,
> >
> > Take a look at the Apache mod_rewrite docs.
> >
> > http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
>
>
> Thanks alot!
> I made a similar solution which works
>
> RewriteEngine on
> RewriteRule "^/x/(.*)"
> As far as I can tell, it's a bug. I posted it on here and the only reply I
> got was from someone having the same problem. I logged it as a bug and then
> wasn't able to add more information as I hadn't set a password when I first
> entered the bug. Then I emailed trying to be able to change
>useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html
>
>RewriteEngine on
>RewriteRule ^/x/(.*)http://www.server2.com/users/$1 [P]
Hm, what does the [P] do? I played around a bit and figured that
a [T] does the trick for me, thanks!
/Martin
--
PHP General Mailing List
I think if you use "RedirectMatch temp ..." it'll work...
-tais
"Martin Lindhe" <[EMAIL PROTECTED]> wrote in message
831D8A28AF18D5119EAA00E018C5B81C23BA11@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA11@MAIL1...
> > I think I remember doing it a while ago. But I think you need to use
> > mo
AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!!
-tais
"Martin Lindhe" <[EMAIL PROTECTED]> wrote in message
831D8A28AF18D5119EAA00E018C5B81C23BA13@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA13@MAIL1...
> >useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html
>
I am wrong! ;)
" Tais M. Hansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!!
> -tais
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
hi,
i'm recently observing a strange behaviour of php when using a combination
of ob_start() and ignore_user_abort() in the same page, php hangs (after
the script is executed) and is unable to create/write to /destroy sessions!!
i'm observing this on my win98 machine with apache 1.20 and php 4
hi!
How can I find out if gd-library is installed on my server and if not, how
can I install it
please email me if you want to help me.
TIA,
gert.
email: [EMAIL PROTECTED]
http://www.mellak.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTEC
Hi
I'm having trobles with this code. Can you take a look at it?
Parse error: parse error in C:/XITAMI/webpages/index.php on line 34 is the
error msg.
thanx
Example 2.01
";
echo "Iznos na Vasem racunu je $vrednost dolara";
}
?>
--
PHP General Mailing List (http://www.php.net/
This is what they mean:
(from http://www.apache.org/docs-2.0/mod/mod_rewrite.html)
***
'proxy|P' (force proxy)
This flag forces the substitution part to be internally forced as a proxy
request and immediately (i.e., rewriting rule processing stops here) put
through the proxy module. You
> > > Let's assume we have a server called www.test.com
> > > When a user access http://www.test.com/path/username,
> > > I want a php script to execute, as if the url entered was
> > > http://www.test.com/path.php?value=username.
> > >
> > > I'm running PHP 4.0.6 on Apache 1.3.20.
Step 1: Renam
On Thu, Sep 06, 2001 at 11:04:09PM -0500, Peter Hutnick wrote:
> http://www.php.net/manual/en/function.similar-text.php states that the third
> argument should be a reference. PHP 4.0.6 complains "Warning: Call-time
> pass-by-reference has been deprecated - argument passed by value;" etc.
>
> Bu
I just gave a very quick look... so maybe there are some things that
I've overlooked. But I hope this solves your problem...
>
>
> Example 2.01
>
>
>
> if (emty(provera)) {pokazi();}
I'd use $ here :)
if (empty ($provera)) ...
^
^
> else {obr
Well... I've already found something I overlooked. You call emty()
io empty(); see below...
> >
> >
> > Example 2.01
> >
> >
> >
> >
> > if (emty(provera)) {pokazi();}
^^
^^
Here you forgot the 'p' in emPty()
>
> I'd use $ here :)
> if (empty ($provera))
On the first page of a session, PHP attempts to set a PHPSESSID cookie. It
won't get that cookie back until you reload the page or load another page,
so it has no way of knowing on the first page whether or not the browser
accepted the cookie. So, it adds the PHPSESSID string to all of your loca
R&Ze
soundex(emty) = soundex(empty) maybe someday parser will consider that
;)
"* R&Ze:" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Well... I've already found something I overlooked. You call emty()
> io empty(); see below...
>
>
> > >
> > >
> >
The timestamp data type is a special MySQL type that automatically updates
whenever you add or update a row in a table.
If you want timestamp to work when you add a row but not when you update a
row, you need to write your update statements like this:
UPDATE tbl_name SET vartochange="newvalue",
<[EMAIL PROTECTED]> wrote in message
001001c136af$7c649db0$[EMAIL PROTECTED]">news:001001c136af$7c649db0$[EMAIL PROTECTED]...
>Can someone tell me what i'm doing wrong here?
>
>while($myrow<>mysql_fetch_array($result2))
>
I would guess that you actually want that line to read:
while($myrow=mysq
You don't have a closing } for function obrada().
When the line number of the parse error is the last line of the file, I've
found it is almost *always* due to a missing brace, paren, or quote
somewhere in the file.
Doug Granzow
[EMAIL PROTECTED]
"Nikola Veber" <[EMAIL PROTECTED]> wrote in mess
FFA Posting Engine..This email address was used to post to our site !
Removal Instructions at the bottom of this page !
Don't Leave Any Tracks Behind...
WARNING:
Your Computer tracks all of your internet activity and all of the acti
You also seem to be missing a closing }. please check all braces before
posting to a list...
- Original Message -
From: "Nikola Veber" <[EMAIL PROTECTED]>
To: "php forum" <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 1:29 PM
Subject: [PHP] code troble
> Hi
> I'm having trobles
I wrote a small script to generate an image file containing a version number
for use in some web apps we are coding at work. The problem is, that with
an up-to-date version of IE, the image shows up and can only be saved as a
BMP. Older versions don't display it, but prompt for download and save
Hi speedboy, I see that you know the GD software and probably you have
some good experience on that. What do you know about to compile PHP406+GD
on windows?
Greetings
Atte. Ignacio Estrada F.
Centro Nacional de Control de Energia
Area de Control Occidental
025+6463, 025+6464, 025+6469
--
P
> On Thu, Sep 06, 2001 at 11:04:09PM -0500, Peter Hutnick wrote:
>> http://www.php.net/manual/en/function.similar-text.php states that the
>> third argument should be a reference. PHP 4.0.6 complains "Warning:
>> Call-time pass-by-reference has been deprecated - argument passed by
>> value;" etc.
Adam Plocher wrote:
> First of all, is there anyway I could have my script take a full size image
> and crop out a chunk of it to be used as a thumbnail - or just simply shrink
> the image down to be used as a thumbnail?
ImageCopyResized, requires GD.
> Also, is there anyway to convert misc ima
"Theodore Brinkman" <[EMAIL PROTECTED]> wrote in
message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I wrote a small script to generate an image file containing a version
number
> for use in some web apps we are coding at work. The problem is, that with
> an up-to-date version of IE, the imag
"Balaji Ankem" <[EMAIL PROTECTED]> wrote in message
01bc01c137e0$280b0f60$[EMAIL PROTECTED]">news:01bc01c137e0$280b0f60$[EMAIL PROTECTED]...
> Hi friends,
> I would like to implement sending an e-mail through SMTP server.
>
> Here my SMTP server needs authentication.
>
> How to pass the usern
This really doesn't work well to say the least... I've had endless problems
with it, and basically just using headers there is no great way to to it.
The best solution I found is to use the mod_rewrite module in apache to map
a url onto the script.
- Original Message -
From: "Franklin va
I just installed PHP 4.0.6.
1) Do I have to down load GD (graphics library) and install it sperately or
is it in 4.0.6 already?
2) Do I have to run anything special during configuration?
3) Do I have to completely re-install PHP and Apache?
Thanks,
Joseph
--
PHP General Mailing List (http://
Tom,
Every man and his dog seems to have an Access database they want to view
on the web.
What I usually do for them is :
a) Tell them to save the data from Access as a text file, comma separated. (It's
a standard Access option).
b) Give them a web page where they can upload it, (From the cust
Robert,
Well, I bet you're getting tired of this thread! So just a few closing
remarks:
a) Nested Loops - Yup, they're not so common that we can't just fudge
about with a bit of embedded html.
b) Luggage - I may yet agree with you about the advantages of two neatly
packed bags!
c) An awkward
Thanks for that helpful email george, it's something I've been looking at as
well.
In a situation I'm tackling now I've rewritten the core part of the access
such that it is dependant upon data recieved from the server, rather than
the server being dependant upon data from access. So far it appea
At 10:06 Uhr -0500 07.09.2001, Joseph Bannon wrote:
>I just installed PHP 4.0.6.
>
>1) Do I have to down load GD (graphics library) and install it sperately or
>is it in 4.0.6 already?
>2) Do I have to run anything special during configuration?
>3) Do I have to completely re-install PHP and Apache
Hello,
I have noticed that PHP can be used to define constants but
not parametrized macros, a feature is is currently lacking.
It is possible to use arrays instead with the only
disadvantage that array values can be reassigned.
I guess this is not a real concern. Does anyone
know if parameterize
with phpinfo it just says GD 1.6 or above. This is on a webhoster. How do
I find out what version they're actually running? I tried asking but
they're useless...
- seb
-Original Message-
From: Sebastian Wenleder [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 16:36
To: Joseph Banno
Hi everone...
I'm having a little problem. The code below pops up a password dialog box
where the user types in a username and a password to be able to proceed.
However, if the user does not close the browser and goes back to the link,
which they pops up the diolog box again and they don't have t
What is FreeType?
J
-Original Message-
From: Sebastian Wenleder [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 10:36 AM
To: Joseph Bannon; PHP (E-mail)
Subject: Re: [PHP] GD
At 10:06 Uhr -0500 07.09.2001, Joseph Bannon wrote:
>I just installed PHP 4.0.6.
>
>1) Do I have to
Hi,
I need to know wich is the best way to send variables through an URL,that if
the variables are of the string type, and what if the variable has spaces
like $string='this is a test'.
I have read about the use of urlencode(), but I have a strange behaviour
using this function, sometimes it work
Run this function:
phpinfo ([int what])
Check the manual for further details.
Regards,
Sumarlidi Einar Dadason
SED - Graphic Design
--
Phone: (+354) 4615501
Mobile: (+354) 8960376
Fax: (+354) 4615503
E-mail: [EMAIL PROTEC
Hi,
I've got a problem with regular expression syntax with ereg_replace:
ereg_replace(':start:(.*):end:','this is \\1',':start: first :end: middle :start: last
:end:');
returns - this is first :end: middle :start: last
but I want - this is first middle this is last
The problem seems t
i've got a command-line php script that i've been using to deliver large
amounts of e-mail. originally it relied on mail() to deliver the
messages but i could easily overload sendmail and bring the box (redhat
7.1) to a crawl. so i am now using the various network functions to
speak smtp dir
look into the s modifier...it makes a dot match a newline as well, where
normally it wouldn't
jack
-Original Message-
From: George Whiffen [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] ereg_replace - How do I stop it being "g
Hi !
Can anyone tell me why this line returns the parse error
if (strstr($name, "firstname") or strstr($ime, "lastname")){
}
With this line I'd like to determine if string $name , which contains both first and
last name, has earlier defined first and last name, with no difference of the
order
ImageGif: No GIF support in this PHP build in counter.php
I get this error message when I try to run this code...
Header("Content-Type: image/gif");
$im = ImageCreate(500, 75);
$red = ImageColorAllocate($im, 255, 0, 0);
ImageFill($im, 100, 100, $red);
ImageGIF($im);
I installed GD. When I us
> ImageGif: No GIF support in this PHP build in counter.php
>
> I get this error message when I try to run this code...
>
> Header("Content-Type: image/gif");
> $im = ImageCreate(500, 75);
> $red = ImageColorAllocate($im, 255, 0, 0);
> ImageFill($im, 100, 100, $red);
> ImageGIF($im);
>
> I install
There is no parse error in this code. Check the line before that one.
And see stristr(), strcasecmp() and strtolower() for ways to do case
independant comparisons.
-Rasmus
On Fri, 7 Sep 2001, Nikola Veber wrote:
> Hi !
>
> Can anyone tell me why this line returns the parse error
>
> if (strstr
No, its not listed. What do I need to do?
J
-Original Message-
phpinfo() also lists which image types your GD supports. Does it list
GIF? Later versions do not have GIF support.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Install a version of GD with GIF support.
> No, its not listed. What do I need to do?
>
> J
>
>
>
> -Original Message-
>
> phpinfo() also lists which image types your GD supports. Does it list
> GIF? Later versions do not have GIF support.
>
> -Rasmus
>
>
--
PHP General Mailing List
Thanks Jack,
preg_replace with an s modifier works a treat.
I'm still curious as to how to get ereg_replace to work as well. Everything
I read about regex/Posix Regular Expressions, seems to suggest that a ?
should also work with ereg_replace!
George
Jack Dempsey wrote:
>
> look into the s
> for an example I send the variable $user='user 1', and in the url there
> appears user=user+1 (which I think is correct) but when I read the
variable
> in the php page it displays user+1 (doesn´t it has to return to user
'1'?).
urlencodes counterpart is "urldecode"
you need to decode each varia
Jeremy,
I don't think it's possible to do what you want, and I have tried finding
a way.
With your "header " you are requestion an http authentication which means
the browser has to store the username and password and send them with EVERY page.
Those are the rules.
The only way to tell the b
Thanks for your comments. The advice to just learn the code is both wise
and simple. To complicate matters, I did download a trial version of
Ultra Dev, installed PhAkt, found a JDBC driver that would work through
my Mac to connect to a MySQL database, only to learn that the webhosting
company
Oops!!!
I didn't read your question fully.
I think you CAN do what you want, if you can get some kind of cookie or
and/or session variable to work to record when the user got to your page.
You leave your logic as is, except that when you get a valid
user you check to see if they have been on th
On Fri, 7 Sep 2001 09:39:37 +0200 impersonator of [EMAIL PROTECTED] (*
R&Ze:) planted &I saw in php.general:
>
>From: ~~~i LeoNid ~~ <[EMAIL PROTECTED]>
>Date: Thu, Sep 06, 2001 at 05:30:44PM +
>Message-ID: <3b97b222.78196206@localhost>
>Subject: Re: [PHP] For the RegExps gurus!
>
>> You can
On Fri, 7 Sep 2001 13:28:16 +0200 impersonator of
[EMAIL PROTECTED] (\ Tais M. Hansen) planted &I saw in
php.general:
>Hi Martin,
>
>Take a look at the Apache mod_rewrite docs.
>
>http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
>
>
>I added this to my httpd.conf:
>
Or if you don't have acce
Hi,
I would like to know how i can force a PHP script to be
executed everytime a certain directory is accessed, for
example in http://domain.com/go/getit the presence of the
/go/ directory would force a PHP script to be executed
prior to any operation.
Do i need to play with rewriting urls in Ap
You could always add an include() for every page under the /go directory.
Simplest way that I can think of.
- Original Message -
From: "Enrique Vadillo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 12:09 PM
Subject: [PHP] execute a script on access to a
Could someone give me an example of the sort of error handling you put in
your php scripts? Cheers. Should I be preceding every command with @?
Anything where this would be harmful? Just looking for some pointers really
:-)
- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-v
If you're talking over a million messages, I think you need a solution that
is designed specifically for handling mail. I would suggest looking into
qmail (www.qmail.org) to replace sendmail on the server in question. qmail
is much more efficient than sendmail in handling large amounts of mail, a
1 - 100 of 165 matches
Mail list logo