>http://www.binarycloud.com/code_standard.html
>> http://marc.theaimsgroup.com/?l=php-pear&m=97603413001842&w=2
>> Best Practices: PHP Coding Style :
>> http://phpbuilder.com/columns/tim20010101.php3
>> Smart Architectures in PHP :
>> http://phpbuilder.com/
>i do think that the code standard has some good elements to it, but
>it goes
>too far to specify a 4-space indent and to specify no spaces within
>if
>(condition) statements.
I don't think it goes too far (I think it should be 3 spaces tho),
but until the php guys publish some official style gu
I think you missed something:
tell me that's not easier on your eyes :) Another nice thing about
doing it this way is you can work with a web designer who uses a
visual tool like dreamweaver.
On Fri, 12 Jan 2001 22:10:08 +0100, MR ([EMAIL PROTECTED])
wrote:
>Alex B
On Mon, 15 Jan 2001 19:52:29 GMT, [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
>Hey folks,
>
>I've been experimenting with creating some graphics on the fly with
>GD. So
>far, so good. However, I've switched ISP's, and their gd doesn't
>support
>gifs. I've tried changing the header syntax heade
On Mon, 15 Jan 2001 13:57:04 -0800 (PST), jeremy brand
([EMAIL PROTECTED]) wrote:
>for ($i=100; $i>0; $i++)
> print "\n";
>
>But, I presume you would rather do this:
>for ($i=100; $i>0; $i++)
^^^
should be $i--
> print "\n";
or how about:
0; $i--){?>
-
On Fri, 26 Jan 2001 13:37:42 -0500, Shane McBride
([EMAIL PROTECTED]) wrote:
>I have a script that pulls in the following file via: require
>'common.inc'
>
>The problem occurs when it hits the $UNIX_PATH variable. At least I
>think that's where it creates a problem. If I comment it out it
>works f
On Wed, 21 Feb 2001 11:36:02 -0800, Jerry Lake ([EMAIL PROTECTED])
wrote:
>I have a field in my MySQL DB that is "DATE"
>
>on the form that populates this field, various
>people will by typing in dates in various formats
>
>how to I convert say 2/21/01 or 02-21-2001 etc...
>to 2001-02-21(MySQL For
The last time I used these guys I didn't like them because the
software they were running was way out of date. I can deal with an
old version of php, but mysql needs to be current because there's too
many things that old versions can't do.
Right now I'm looking for a cheap virtual host that runs
On Wed, 21 Feb 2001 14:55:25 -0800, ..s.c.o.t.t.. ([EMAIL PROTECTED])
wrote:
>liquidweb.com has some nice looking deals.
>
>last time i checked, they supported
>MySQL/PHP/Perl/lots of other stuff
well, most hosts do, but not many are using 3.23.30 or higher. I'm
looking for a host that somebody k
On Thu, 22 Feb 2001 17:41:43 -0500, ..s.c.o.t.t.. [gts]
([EMAIL PROTECTED]) wrote:
>mysql executes the queries in the order it recieves
>them, (so if your program's logic executes a select
>before an update, you'll never see results from the
>update in your select... at least not normally :)
well
On Sat, 24 Feb 2001 17:51:07 +0100, Christian Reiniger
([EMAIL PROTECTED]) wrote:
>On Saturday 24 February 2001 17:18, PHPBeginner.com wrote:
>> in my preceding email I've written:
>>
>> if($var!='')
>>
>> will fix your all your worries without an intervention of a
strings
>> function.
>
>Except t
On Mon, 26 Feb 2001 11:57:04 -0800, Brandon Orther
([EMAIL PROTECTED]) wrote:
>Hello,
>
>Is there a way to remove the first numbers of a string? Here is an
>example:
>
>$string1 = "12 this is number twelve";
>when done: " this is number twelve";
>
>$sting1 = "123 this is number one twenty three"
On Tue, 27 Feb 2001 15:04:09 -0800, Joe Stump
([EMAIL PROTECTED]) wrote:
>You need to remember a few things when it comes to joins:
>
>the joined fields must be the EXACT same definition
> - example: a join on id int(9) and id int(3) will NOT be optimized
> - more: a join on id char(9)
On Wed, 28 Feb 2001 12:33:55 -0800, Dallas K. ([EMAIL PROTECTED])
wrote:
>I am looking for somthing that will parse a multidimentional array
>of any
>size, and return a key / value listing for debugging
>
>Example:
>
>if I have an array such as...
>
>$arr[name] = dallas
>$arr[address][city] =
On Wed, 28 Feb 2001 20:54:07 +0200 (EET), Dragos Roua
([EMAIL PROTECTED]) wrote:
>Hello,
>
>If you'll take a look at Brainbench.com you'll see a PHP4 cert exam
>there. As
>brainbench plan to become a paid service, their certifications may
>start worth
>something sometime.
The brainbench exam is t
for free ... tomorrow they start charging $20 or so for each
>exam
>
>
>-----Original Message-
>From: Mark Maggelet [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 28, 2001 2:14 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: Re
On Fri, 02 Mar 2001 13:49:17 -0600, Michael David
([EMAIL PROTECTED]) wrote:
>Jeff:
>
>You're talking about sessions, for the most part.
I might be wrong but I think he's talking about setcookie(), for
which the docs are here:
http://www.php.net/manual/en/function.setcookie.php
meaning that the
On Fri, 9 Mar 2001 09:12:46 -0600, Chris Lee
([EMAIL PROTECTED]) wrote:
>using client side form verification is a bad idea anyhow, just write
>a simple php verify.
Imagine waiting 10 minutes for a 5 MB file to upload on a form just
to get an error message that says 'please go back and fill out yo
On Mon, 12 Mar 2001 17:04:13 -0500, Russ Cobbe ([EMAIL PROTECTED])
wrote:
>If you are worried about your payment processor going down (which to
>me would be a very serious concern) you might want to look at
>www.opayc.com which is a standardized way to talk to about 30 or so
>payment processors.
On Mon, 12 Mar 2001 17:34:14 -0500, Russ Cobbe ([EMAIL PROTECTED])
wrote:
>> On Mon, 12 Mar 2001 17:04:13 -0500, Russ Cobbe ([EMAIL PROTECTED])
>> wrote:
>> >If you are worried about your payment processor going down (which
>>to
>> >me would be a very serious concern) you might want to look at
>>
On Wed, 14 Mar 2001 12:12:22 -0800, Dennis Gearon ([EMAIL PROTECTED])
wrote:
>I'd like to see mysql_fetch_field() return as the last value in the
>object, the allowable values for an enum field as an array. Could I
>get
>a cc as well as a listserver group answer from the PHP guys as to
>whether th
editplus can do this.
On Wed, 14 Mar 2001 13:49:04 -0900 (AKST), chris
([EMAIL PROTECTED]) wrote:
>Do any of these editors support server mappings allowing one to
>auomatically preview files through a server? I find this invaluable
>in
>HomeSite (which is also VERY stable for me using Win2K) and
On Thu, 15 Mar 2001 19:59:50 +0200, Marian Vasile
([EMAIL PROTECTED]) wrote:
>I have 3 situations and I need an answer about what is faster...
>
>1. A PHP script that it's executed 10 times in a second, and have to
>update
>a a MySQL table.
>1. A PERL script that it's executed 10 times in a second
nitely not one
of them.
>Marian Vasile
>IT Manager
>Schnecker van Wyk & Pearson
>www.investments.ro
>
>-Original Message-
>From: Mark Maggelet [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, March 15, 2001 9:11 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subjec
Hi,
I'm working on something like this too. I was hoping to be able to
put something like this into an icapd server because my app might
have been able to use mcal. It was too much effort though, so I'm
looking at doing it with cron.
Let me know if you find a more creative way of doing it.
- Mar
On Sun, 18 Mar 2001 20:36:15 -0500, Gary ([EMAIL PROTECTED]) wrote:
>Is there a way to dynamically change a variable name? For example:
>I want to change the variable name $DWG to
>$DWG1
>$DWG2
>$DWG3
>with a for loop. Is there a way to do this?
you could try:
for($i=1;$i<=3;$i++){
${"DW
for php4:
AddType application/x-httpd-php .html
for php3:
AddType application/x-httpd-php3 .html
On Tue, 20 Mar 2001 10:12:56 -0800, Rick VanNorman
([EMAIL PROTECTED]) wrote:
>On 3/20/2001 at 12:29 PM Jack Dempsey wrote:
>
>>You can tell apache to have the php interpreter parse files with an
>>h
On Tue, 20 Mar 2001 21:27:14 -0800, Ed Lazor ([EMAIL PROTECTED])
wrote:
>Hi =)
>
>I'd like to setup a banner exchange with some friends. Some of them
>don't
>have PHP access, so I'm trying to come up with something that will
>work for
>everyone. I checked one site that's running a banner exchang
check the projects page on php.net for an extension called php_imlib.
On Tue, 17 Apr 2001 01:28:02 +0200, Richard ([EMAIL PROTECTED])
wrote:
>Nah... It's up to the browser. 8-bit text cannot be given any
>effects using
>PHP.
>
>- Richard
>
>"Brandon Orther" <[EMAIL PROTECTED]> wrote in message
>[
On Mon, 16 Apr 2001 20:00:27 -0700, Dddogbruce \(@home.com\)
([EMAIL PROTECTED]) wrote:
>Whistler's cool!
Yeah, and a php job at a ski resort?! Hmm, that's way too good to be
true.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
On Tue, 17 Apr 2001 15:59:37 +1000, Peter Houchin
([EMAIL PROTECTED]) wrote:
>can any one see a problem with this loop?
>
> $db = include"connect.inc";
>$foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card";
>
> $result = mysql_query($foo,$db);
>
>
>while ( ($myrow = mysql_fetch_array($res
On Tue, 17 Apr 2001 11:30:07 -0700, Colin Putney
([EMAIL PROTECTED]) wrote:
>On Tuesday, April 17, 2001, at 11:00 AM, Devin Atencio wrote:
>
>> I have a SQL Table that has over 1,000 records and I was wanting
>> to write a script that would find duplicate phone numbers and
>> then list the duplic
Google doesn't choke at all on dynamic pages. pages get ranked by
keywords appearing on the page and even more importantly, the link
text of links on other pages pointing to the page that's being
indexed.
in other words, if a lot of sites link to your page like so:
google choke
then a search for
On Tue, 17 Apr 2001 12:34:27 -0700, Colin Putney
([EMAIL PROTECTED]) wrote:
>On Tuesday, April 17, 2001, at 12:19 PM, Mark Maggelet wrote:
>
>> That works for mysql. He probably just wants to kill the
>>duplicates,
>> so there's an easier way: add a unique index
On Tue, 17 Apr 2001 15:55:38 -0500, Boget, Chris
([EMAIL PROTECTED]) wrote:
>Ok, I found out what the problem was. I'm still curious
>why the problem is occuring.
>
>> if( $tmpArray[errorNumber] & $typesToDisplay ) { // line to
>>comment out
you're using the bitwise & when you want the logical
On Tue, 17 Apr 2001 16:06:47 -0500, Boget, Chris
([EMAIL PROTECTED]) wrote:
>> >Ok, I found out what the problem was. I'm still curious
>> >why the problem is occuring.
>> >> if( $tmpArray[errorNumber] & $typesToDisplay ) {
>> you're using the bitwise & when you want the logical &&
>
>No, I actua
maybe it's something in auto_prepend_file or auto_append_file. do
phpinfo() to check.
On Thu, 26 Apr 2001 09:36:56 +0930, Joseph Blythe
([EMAIL PROTECTED]) wrote:
>Hey all,
>
>I keep getting this error message on a couple of pages from a site I
>am
>currently working on, the strange thing about
I have a cookie that times out after an hour for security reasons.
About 1 out of 200 of my users send me an email saying they can't log
into my site and I find out that it's usually because their clocks
are off. Has anyone had any luck using the time on the client to set
cookies by instead of ser
On Thu, 26 Apr 2001 01:48:13 +0200, Thomas Booms
([EMAIL PROTECTED]) wrote:
>Hi all,
>
>I'm using on my new machine (SuSE 7.0) PHP4. In one PHP4-Script I
use
>the mail-Function. But my /var/log/mail (qmail) does not give any
>entry
>for this mail.
>
>Is there a bug?
>
>In PHP3 it was all running g
On Thu, 26 Apr 2001 09:54:04 +0930, Joseph Blythe
([EMAIL PROTECTED]) wrote:
>Chris Fry wrote:
>
>> Have a look at php.ini in /usr/local/lib
>>
>> It looks like your prepend file is browser.php - just comment that
>>line out.
>
>Those lines in the php.ini are blank
>
>; automatically add files bef
his though. I guess I'm asking if someone out
there has had this problem and found a good way around it.
thanks,
- Mark
>HTH,
>DanO
>
>
>"Mark Maggelet" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>I have a cookie
On Wed, 25 Apr 2001 17:48:48 -0700 (PDT), Rasmus Lerdorf
([EMAIL PROTECTED]) wrote:
>> I have a cookie that times out after an hour for security reasons.
>> About 1 out of 200 of my users send me an email saying they can't
>>log
>> into my site and I find out that it's usually because their clocks
On Mon, 30 Apr 2001 13:56:20 -0500, Joe Stump ([EMAIL PROTECTED])
wrote:
>I have a quick question regarding timezones ...
>
>On the local side a record is inserted into the DB by someone in
>Michigan, while
>the server rests in CA. Thus a three hour difference. The local
>mktime() will
>create a t
rence in hours between them and pst*3600
>2.) we have users ALL OVER the world - is there a place to find all
>of the timezones at?
good luck, there's tons and some of them are wacky or don't honor
daylight saving time.
>
>--Joe
>
>On Mon, Apr 30, 2001 at 12:11:55PM
On Thu, 3 May 2001 20:15:26 +0100, James, Yz ([EMAIL PROTECTED])
wrote:
>Hi Guys,
>
>Does anyone know how to select one field randomnly from a MySQL
table
>against a weighting column in the same row the field is selected
>from?
>
>For example, "SELECT id, url, image FROM table ORDER BY rand() LIMI
On Tue, 8 May 2001 11:09:18 -0700, Ryan Christensen ([EMAIL PROTECTED])
wrote:
>Would anyone be able to help me out with this:
>
>I have quite a few (almost 2000) .html files that I would like to
>change
>over to the .php extension. Past that, I would also like to add
>text to the
>top & bottom o
On Wed, 9 May 2001 15:49:51 -0500, Joseph Bannon
([EMAIL PROTECTED]) wrote:
>> you need to point to the apache-source install
>> ie: ./configure --with-apache=../apache-1.3.19
>
>
>But what if I have apache already installed? I have a Cobalt Raq3
>with
>apache already installed.
you need to recom
On Wed, 9 May 2001 18:08:45 -0700, Dexter ([EMAIL PROTECTED]) wrote:
>Hi PHP sters,
>
>Looking for a function like Perls index function to get the first
>occurrence of a string within another.
>
>Thanks
>
>Dexter
http://www.php.net/manual/en/function.strpos.php
--
PHP General Mailing List (htt
On Wed, 9 May 2001 20:19:34 -0400, Mike ([EMAIL PROTECTED]) wrote:
>As a devoted php programmer I was surprised how bad PC MAG blasted
>php this
>month.It sound as if it doesnt scale very well(Ive never had more
>than a few
>people on my site at once).Any comments???
seeing as how zdnet is owned
On Fri, 11 May 2001 17:28:25 -0500, WebMaster
([EMAIL PROTECTED]) wrote:
>I did :( went character by character and could find not extra
spaces.
>
>At 06:16 PM 5/11/01 -0400, Michael Kimsal wrote:
>>Check for extraneous spaces in your script.
>>
>>Tim Schulte wrote:
>>
>> > Hi there -
>> >
>> >
On Mon, 14 May 2001 23:29:03 -0800, Christopher Ostmo
([EMAIL PROTECTED]) wrote:
>Tyrone Mills pressed the little lettered thingies in this order...
>
>> How about using something like puTTY or SecureCRT?
>>
>
>Just a side note. I also like SecureCRT, but it isn't "free" (which
>was
>the original
reset($array);
while(list($key,$value)=each($array)){
$array[strtoupper($key)]=$value;
unset $array[$key];
}
On Tue, 15 May 2001 16:19:41 -0400, Altunergil, Oktay
([EMAIL PROTECTED]) wrote:
>Yes. But I want to change the name of the key, not the value. Plus I
>want to
>be able to
>The sercuity of java is better and the network controlling features
>is better too .
>
>The loading time of servlet is faster since the server just need to
>run the servlet one times
You probably mean that it needs to load the jvm one time, the servlet
gets run with every request (unless you cac
On Sun, 20 May 2001 22:03:05 -0300, Carlos Fernando Scheidecker
Antunes ([EMAIL PROTECTED]) wrote:
>Hello All,
>
>I need to output a string that must always be 17 characters even if
>the inside value is not.
>
>Supose a have the HELLO word that is a 5 character string and I need
>to output "HELLO
On Mon, 21 May 2001 13:55:12 +0100, py ([EMAIL PROTECTED]) wrote:
>> Hi,
>>
>> I am designing a system for my company to get employee resumes via
>>the
>Web,
>> rather than paper. All resumes now go into a mySQL DB, which can
be
>> searched by HR (at least that's the theory :)
>
>[I would do it li
On Tue, 22 May 2001 10:44:42 -0700, Jason Caldwell
([EMAIL PROTECTED]) wrote:
>I'm trying to figure out how to "say" with a Regular Expression how
>to check
>for the following characters in a phone number:
>
>( ) -
>
>with a length between 1 and 20 --
>
>I've tried the following and it doesn't see
On Wed, 21 Mar 2001 11:04:48 -0700, Jared Howard ([EMAIL PROTECTED])
wrote:
>I need to retrive all column information from a DISTINCT query. But
>so
>far, I only can get one column to show by using this:
>
>SELECT DISTINCT my_column FROM my_table;
>
>which then gives me a list of my_column inform
On Wed, 21 Mar 2001 18:09:47 +0800, Wen Ni Leong
([EMAIL PROTECTED]) wrote:
>I need help in this basic string function.
>I query from the database by using while loop and the result in in
>array. I separated them by using "," .
>
>I want at the end of the string to be trim off. Unfortunately I
>
On Wed, 21 Mar 2001 17:09:17 -0800, Jason Granum
([EMAIL PROTECTED]) wrote:
>I'm wanting to benchmark a single PHP page to the millisecond (if
>possible) that basicly just will put a
>
>This page generated in X.XXX seconds
>
>at the bottom of every page.
>
>I've tried looking through the past mess
On Tue, 27 Mar 2001 17:31:25 +0100, Costas ([EMAIL PROTECTED])
wrote:
>when i try printing
>
>print $HTTP_USER_AGENT;
>
>I get the error message Undefined variable: HTTP_USER_AGENT
>
>have i missed a declaration of some sort or something else?
>
>thanks
Are you doing this from inside a function
On Tue, 27 Mar 2001 14:04:58 -0600 (Central Standard Time), Michael
Champagne ([EMAIL PROTECTED]) wrote:
>Is there a way to have an ordinary href link call some javascript
>and say "are
>you sure blah blah blah?" and then once you hit Ok it calls the same
>php file
>which then does all the databas
On Tue, 27 Mar 2001 15:50:44 -0600 (Central Standard Time), Michael
Champagne ([EMAIL PROTECTED]) wrote:
>But then how would you process it in the same file? If I'm calling
>it from
>myfile and my link is to myfile then how does it know that it's
>already been
>clicked?
well you can make the url
On Thu, 29 Mar 2001 19:58:51 +0200, Johannes Janson
([EMAIL PROTECTED]) wrote:
>Hi,
>
>SELECT a.list FROM db1 a, db2 b WHERE a.email!=b.email;
>
>this shoulds work
no, this isn't even close. you need a left join, there's an example
in the mysql docs under left join that shows you how to do what y
On Sat, 31 Mar 2001 20:07:10 +0600, ([EMAIL PROTECTED]) wrote:
>Dear Friends,
>
>I am accessing a MySQL database through PHP.
>
>I have to calculate the difference between todays date and the date
>obtained
>from MySQL database.
select to_days(curdate())-to_days(datefield) from table;
- Mark
I think you want:
exec("/path/to/mysql -p$password -u$username $database < $filename");
On Wed, 04 Apr 2001 00:35:34 +0100, Andy Warwick
([EMAIL PROTECTED]) wrote:
>I'm after some pointers on how to dump and load SQL files to and
>from mySQL
>using a PHP/HTML form.
>
>I've read the manual about "
On Tue, 03 Apr 2001 16:44:36 -0700, Brandon Orther
([EMAIL PROTECTED]) wrote:
>Hello,
>
>I have an array from an ftp nlist. Is there any way I can
>alphabetize the
>array?
sort($array);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
On Thu, 05 Apr 2001 10:11:20 -0700, Lindsay Adams
([EMAIL PROTECTED]) wrote:
>If you don't want to rewrite any of your existing code, consider the
>behavior of frames.
>If you make a frameset with a 0 height for the top frame, and then
>use the
>bottom frame for everything, then the URL in the loc
On Mon, 09 Apr 2001 12:08:48 -0400, Curtis ([EMAIL PROTECTED])
wrote:
>Hello,
>Could someone please tell me where I am going wrong here.
>I have an HTML form and I want to past the input from a text box to
>the
>next page url to connect
>to my mysql database.
>
>Here is where I am at now
>
>
On Tue, 10 Apr 2001 14:18:54 -0400, Daniel ([EMAIL PROTECTED])
wrote:
>I am writting a session enabled webapp that has a typical login
>page. The
>page submits to itself and upon validation, I want to allow the user
>to
>continue on to the next page.
>
>>From everything I have read so far, the on
On Tue, 10 Apr 2001 17:16:08 -0400, Daniel ([EMAIL PROTECTED])
wrote:
>I might have misread this comment, but I found the opposite.
>
>In one instance, I had:
>header("Location: $path/newpage.php");
>and in another instance:
>header("Location: newpage.php");
I'm talking about using the full url (
Hi , I'm having compile problems with php4.04pl1 and the latest
development version (where can I get older?)
here's what the end of make looks like:
.libs/libphp4.a(xml.o): In function `xml_parser_dtor':
/home/certscape/php4-200104102145/ext/xml/xml.c:304: undefined
reference to `php_XML_ParserF
On Thu, 12 Apr 2001 15:42:54 -0400, Mike ([EMAIL PROTECTED])
wrote:
>I would like to put a mysql resultset into an array of type
>row(rownunber)(data).Any Ideas?
>Mike P
>[EMAIL PROTECTED]
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For a
it looks like you're getting your ereg and preg mixed up but try it
like this:
switch(1){
case ereg("\\.jpg$",$filename):
echo "JPEG Image";break;
case ereg("\\.gif$",$filename):
echo "GIF Image";break;
case ereg("\\.zip$",$filename):
echo "Compressed File"; break;
defa
another way to match this that works with preg or ereg is to go like
this:
]*>
On Mon, 25 Jun 2001 15:31:29 -0400, scott [gts]
([EMAIL PROTECTED]) wrote:
>exactly. use the non-greedy "?" with the perl regex's
>to have perl match the least amount of characters it can.
>
>preg_match('//', $text, $
Is there any way to set output_buffering per directory or host?
I tried putting:
php_value output_buffering On
in my virtual host, also in , , and .htaccess
the only place it seems to get noticed is in php.ini
php4.7devel/apache1.3.20/linux
thanks,
- Mark
--
PHP General Mailing List (http://w
I don't see how this is weighted.
I would suggest doing it the easy way and treating the options as
keywords and just putting them all in a text field with a fulltext
index. this will give you the weighting you want and it will be a lot
easier to deal with, but you will have to watch out for thin
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
Hi,
I just upgraded gd to 2.0.1 and recompiled apache1.3.20/php4.06.
when I do phpinfo() it says:
GD Support enabled
GD Version 1.6.2 or higher
WBMP Support enabled
and when i call imagepng() it says:
Warning: ImagePng: No PNG support in this PHP build
any ideas what's going on here?
I removed c
On Thu, 5 Jul 2001 14:59:19 +0200, Tobias Talltorp
([EMAIL PROTECTED]) wrote:
>Hello all.
>
>I want multiple domains to be able to read from one cookie, or set
>one
>cookie each for the different domains.
>
>Here is the case:
>When the user logs in to my server, I want to set a cookie that has
>th
On Fri, 13 Jul 2001 14:46:41 -0700, Brandon Orther
([EMAIL PROTECTED]) wrote:
>Hello,
>
>I am making a script at the moment and want to use images instead of
>the
>usual buttons. Does anyone know how I can use the image as a reset
>button?
>Thank you,
>
>--
On Mon, 16 Jul 2001 16:23:19 -0700, Adam Plocher
([EMAIL PROTECTED]) wrote:
>$reqmonth = ${explode("-",$row[5])}[1];
>
>Is there anyway I can get that to work without having to use
>multiple lines
>of code?
hmm... how about
$reqmonth = array_pop(explode("-",$row[5],2));
--
PHP General Mailing
On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL PROTECTED])
wrote:
>mail0 is sending mail that can't be received by aol or my local isp.
> That
>same mail can be received by other sites on that same server. The
>mail doesn't bounce but I am getting a few DSN errors in my maillog.
it so
On Fri, 27 Jul 2001 09:31:50 -0700, Brandon Orther
([EMAIL PROTECTED]) wrote:
>Hello,
>
>I am trying to get the Payflow pro library compiled with PHP and am
>having any problems. When I compile it without shared it gives me a
>-8
>error or SSL connection error. If I try to compile it with shared
On Fri, 27 Jul 2001 14:21:41 EDT, ([EMAIL PROTECTED]) wrote:
>Is it possible to send an array of numbers into a php file through a
>url?
>Like if I have a file that adds numbers together, could I send it
>
>www.domain.com/add.php?num=2,3,4,5
>
>$num would be an array.
on the next page just go:
$
t;
>- Original Message -
>From: Mark Maggelet <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>Sent: Friday, July 27, 2001 12:14 PM
>Subject: Re: [PHP] PHP mail() function
>
>
>On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL
On Wed, 1 Aug 2001 23:17:49 +0200, Ivo ([EMAIL PROTECTED])
wrote:
>Hi
>
>I faced following problem:
>
>I've a form where which could have one or more input text fields (it
>is not
>clear how many they will be - one or more). Thay have same name - pn
>- and
>if they are more that one JavaScript tre
On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED])
wrote:
>After a sign up page I want to check if someone is already entered
>into a database. The First Name, Last Name and Address all have
>to match exactly in order for it to be considered a duplicate.
>However
>this isn't doing wh
On Mon, 6 Aug 2001 08:57:08 -0500, garman ([EMAIL PROTECTED])
wrote:
>I have a form that generates a list of "categories" dynamically.
>That is, for
>each category in a database, the form has a corresponding checkbox.
>The
>checkboxes are given serialized names, such as "chkbx1", "chkbx2",
>etc.
>
On Mon, 6 Aug 2001 13:56:45 -0500, garman ([EMAIL PROTECTED])
wrote:
>For all of my HTML forms, I put in some JavaScript to check and make
>sure no
>fields are left blank. When the forms are processed in PHP, I also
>perform a
>check to make sure the forms fields aren't null (redundant, I know).
>Well, Mark... almost! You shouldn't use empty() _instead_ of
>isset(). You should use 'm together:
>
> if (isset ($input) && !empty($input)) {
> print ("Okay... form is completed!");
> } else {
> print ("No way... can't do!");
> }
>
>Because, when you check using empty($input) there's still t
On Thu, 09 Aug 2001 14:30:43 -0500, Sheridan Saint-Michel
([EMAIL PROTECTED]) wrote:
>Bzzzt...Wrong! But thank you for playing. If you read the FAQ on
>Sun's "Open Source" website not only do they admit Java is not
>open source, but they sort of tip toe around whether or not it ever
>will be.
w
On Sun, 12 Aug 2001 18:42:48 -0500, Erich Zigler
([EMAIL PROTECTED]) wrote:
>I am currently writing a piece of code that when a user enters in
>their
>email address it will check it for validity.
>
>In this instance they are supposed to type in [EMAIL PROTECTED] But if
>they
>just type in user I w
>Something like this, perhaps (untested):
I needed this too so I just tested it.
>function smart_ucwords($String)
>{
>
> $ExceptionList = array('the', 'an', 'a'); # should all be in
>lowercase
>
> $String = ucwords(strtolower(ltrim($String))); # LINE A
>
> foreach ($ExceptionLi
On Mon, 13 Aug 2001 17:06:37 -0400 (EDT), Daniel Adams
([EMAIL PROTECTED]) wrote:
>Sounds like you could use javascript rather than php for this one.
>Or you
>could try using an http refresh after a certain number of seconds.
> - Dan
yeah but an http refresh won't post the form. you could t
On Mon, 13 Aug 2001 23:16:35 +0100, Seb Frost ([EMAIL PROTECTED])
wrote:
>I have a php page which generates a page of thumbnails from a
>database. In
>internet explorer all of the layout loads first, and the thumbnails
>appear
>one by one as they are downloaded. Netscape however seems to insist
lots of things:
1) variables in single-quoted strings aren't evaluated so you don't
need to escape the $ in $email
2) php uses . not + for concatenation.
3) try it like this:
eval('$email = $email_'.$i.';');
or
eval("\$email = \$email_$i;");
4) you can save yourself the trouble by using arrays
On Fri, 24 Aug 2001 16:25:08 -0400, Thomas Deliduka
([EMAIL PROTECTED]) wrote:
>Wait, you blame someone convicting microsoft for a recession? Give
>me a break. Things were on the way out before it started.
Was that the cause? Not really, there were many causes and that was
just one of them.
Was
On Tue, 28 Aug 2001 11:35:33 -0400, Michael Kimsal
([EMAIL PROTECTED]) wrote:
>So require them to have cookies turned on. If it's YOUR system, you
>can require whatever you want. If this is something for your
>company,
>presumably
>it's a business tool of some sort, and you can then require them
On Wed, 29 Aug 2001 13:58:34 +0200, BRACK ([EMAIL PROTECTED]) wrote:
>> In article <3B8A1D6A.4295.2947D@localhost>, [EMAIL PROTECTED]
>> (Yura) wrote:
>>
>> > How to sort search results of php-mysql site by relevance?
>>
>> See the mysql manual's chapter on FULLTEXT indexes.
>
>I indexed column 't
On Sat, 1 Sep 2001 14:01:57 +0200, BRACK ([EMAIL PROTECTED]) wrote:
>I have query -
>
>$res = mysql_query("SELECT
>skits.*,category.cat_id,category.cat_name FROM skits,category WHERE
>MATCH (title,descr,skits) AGAINST ('%$search_idea%') and skits.lang
>like 'English' and skits.category like catego
1 - 100 of 115 matches
Mail list logo