|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Thu Mar 01 2001 - 00:07:08 CST
php-general Digest 1 Mar 2001 06:07:08 -0000 Issue 540
Topics (messages 42048 through 42124):
Re: Pulling my hair out over Netscape...
42048 by: Batonik
42055 by: Ernest E Vogelsinger
sitemap script
42049 by: Ali
42051 by: Tim O'Callaghan
42053 by: Tim O'Callaghan
How to insert time and date into mysql?
42050 by: Zenith
42065 by: Christian Reiniger
Need an array parser
42052 by: Dallas K.
Need an array parser(CONT)
42054 by: Dallas K.
42059 by: Ernest E Vogelsinger
42071 by: Steve Edberg
42075 by: Mark Maggelet
Please turn me off from this list
42056 by: Mike Futerko
PHP 4.0.4pl1 --with-oracle
42057 by: Hardy Merrill
Re: Pluralize a word for searching a database
42058 by: richard merit
42108 by: CC Zona
Developer certifications
42060 by: Chris Adams
42061 by: Dragos Roua
42062 by: swinkle
42077 by: Mark Maggelet
42084 by: kmurrah
42092 by: Mark Maggelet
Re: exchange data between javascript & php!
42063 by: Johnson, Kirk
ora_error segfaults
42064 by: Hardy Merrill
When form doesn't know what it's sending
42066 by: Matt Hanley
Re: How to disable some functions?
42067 by: Steve Edberg
Can't get extension dlls loaded in Windows
42068 by: Alan Hale
Re: Hebrew websites transition with php3 ..
42069 by: Boaz Yahav
42080 by: Manuel Lemos
42093 by: Aviv Revach
Compiling Scripts
42070 by: Johnny Withers
42099 by: Jeff
42101 by: John Donagher
Re: Double Click
42072 by: Manuel Lemos
42074 by: John Huggins
Re: Manuel Lemos's PHP POP3 class
42073 by: Manuel Lemos
Cold Fusion vs. PHP
42076 by: Alex Puritche
42079 by: John Huggins
logic question concerning sale prices in shopping basket app
42078 by: Brett
Passing values from ASP to PHP
42081 by: Isaac
42087 by: Thomas Deliduka
How can I log a record??
42082 by: Zenith
Problem creating and manipulating Jpegs with GD
42083 by: Cherie Benoit
Info needed
42085 by: Chris
Question about session data and pop window!
42086 by: Zenith
regex frustration
42088 by: Jerry Lake
42090 by: Simon Garner
42091 by: Chris
require on compressed files
42089 by: Shane Wegner
Template recommendations
42094 by: Joseph H Blythe
A little help with my script
42095 by: Felipe Lopes
PHP Manual in EBOOK Format
42096 by: YoBro
42098 by: eschmid+sic.s.netic.de
42119 by: YoBro
Restrict Access per IP Addresses
42097 by: Nazoréen
42104 by: Ernest E Vogelsinger
checking for a defined function
42100 by: Eric Peters
42107 by: CC Zona
PHP and Mod_auth_mysql.
42102 by: Lists
problem with cgi-binary
42103 by: James Hamilton
PHP on Cobalt
42105 by: Jochen Kaechelin
42111 by: Chuck Barnett
Daily Rotating Page
42106 by: RalphGzman.aol.com
42109 by: Kelly Corkill
42122 by: richard merit
free webhosting
42110 by: Rene Maldonado
42114 by: Philip Olson
Re: image file prob
42112 by: John LYC
displaying form array values
42113 by: Claudia
42116 by: Philip Olson
Re: best slashdot?
42115 by: Matt \"TrollBoy\" Wiseman
42118 by: Jason Murray
newbie:cron job
42117 by: Wen Ni Leong
42120 by: Kelly Corkill
42121 by: Wen Ni Leong
42123 by: Chris Lee
Loss of Connection hanle in object
42124 by: Andrew Halliday
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
On Wed, 28 Feb 2001, Jackson, Michael wrote:
> I.E. I enter a value, hit OK. Then I press the back button. Then
> I enter a DIFFERENT value, and hit OK. The SAME value is passed to the PHP
> script! I'm using the post method, and I haven't found a way to shake this
> yet! This is afflicting Netscape 4.7 and Netscape 6. Driving me crazy....
Maybe try setting headers like "Expires" or "Cache-Control"?
Greets,
Batonik
attached mail follows:
At 18:57 28.02.2001, Jackson, Michael said:
--------------------[snip]--------------------
> Hello everyone... I've been developing a PHP app here for a while
>now, and I have been encountering some most frustrating situations in which
>something will work in IE but not Netscape. Some of this seems to be IE's
>allowances for sloppy coding... :) But here's a new one. I have a form,
>that if you were to submit this form once, it will always retain the same
>value. I.E. I enter a value, hit OK. Then I press the back button. Then
>I enter a DIFFERENT value, and hit OK. The SAME value is passed to the PHP
>script! I'm using the post method, and I haven't found a way to shake this
>yet! This is afflicting Netscape 4.7 and Netscape 6. Driving me crazy....
--------------------[snip]--------------------
I'm not sure if any values get passed to PHP at all... Netscape is very
cache-inclined, so it is likely that you're seeing the cached output of
your previous query.
There are several methods to overcome this situation:
(1) HTTP cache headers (see RFC2616, ftp://ftp.isi.edu/in-notes/rfc2616.txt):
Cache-Control: no-cache (HTTP/1.1)
Pragma: no-cache (HTTP/1.0)
(2) Expires headers
Expires: Sat, 1 Jan 2000 00:00 +0000
Or use the <META HTTP-EQUIV> fields. Note as a side effect that using the
"Expires" header will keep a lot of search engines from indexing the result
page.
Another method is using a random value as SEARCH parameter, e.g.
http://www.myhost.com/myapp.php?rv=0987412&...other parameters
Your application must ensure that the random value is as random as
possible. This makes the URL "unique" and will bypass any ill-behaved cache
(it won't help if the user hits the back button, of course...)
...ebird
>O Ernest E. Vogelsinger
(\) http://www.1-at-web.at/
^ ICQ# 13394035
attached mail follows:
Does anybody know of a sitemap script written in php? I appreciate any hint.
Ali
attached mail follows:
try freshmeat.org
http://freshmeat.net/projects/phpsitemapper/
hope it helps :)
tim....
----- Original Message -----
From: "Ali" <arsajedi
bupnet.de>
To: <php-general
lists.php.net>
Sent: Wednesday, February 28, 2001 1:16 PM
Subject: [PHP] sitemap script
> Does anybody know of a sitemap script written in php? I appreciate any
hint.
>
> Ali
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
ahh my mistake .net, you know what i mean :)
tim..
----- Original Message -----
From: "Tim O'Callaghan" <timoc
sympatico.ca>
To: "Ali" <arsajedi
bupnet.de>; <php-general
lists.php.net>
Sent: Wednesday, February 28, 2001 1:19 PM
Subject: Re: [PHP] sitemap script
> try freshmeat.org
>
> http://freshmeat.net/projects/phpsitemapper/
>
> hope it helps :)
>
> tim....
> ----- Original Message -----
> From: "Ali" <arsajedi
bupnet.de>
> To: <php-general
lists.php.net>
> Sent: Wednesday, February 28, 2001 1:16 PM
> Subject: [PHP] sitemap script
>
>
> > Does anybody know of a sitemap script written in php? I appreciate any
> hint.
> >
> > Ali
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
How can I insert time and date into mysql table,
if the table i have to insert has a field of type time, and a field of type
date.
Then how can I insert it in PHP, if I use time() function??
attached mail follows:
On Monday 28 February 2000 19:15, you wrote:
> How can I insert time and date into mysql table,
> if the table i have to insert has a field of type time, and a field of
> type date.
>
> Then how can I insert it in PHP, if I use time() function??
Look at the MySQL manual, function FROM_UNIXTIME()
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)"Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has."
- Margaret Mead
attached mail follows:
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] = austin $arr[address][state] = Texas $arr[somthing][somthing_else][blah1]= some_value1 $arr[somthing][somthing_else][blah2]= some_value2 $arr[somthing][somthing_else][blah3]= some_value3
I would want the result to be displaied as:
attached mail follows:
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] = austin $arr[address][state] = Texas $arr[somthing][somthing_else][blah1]= some_value1 $arr[somthing][somthing_else][blah2]= some_value2 $arr[somthing][somthing_else][blah3]= some_value3
I would want the result to be displaied as:
ARR name --- dallas address --- city --- austin address --- state --- Texas somthing --- somthing_else --- blah1 --- some_value1 somthing --- somthing_else --- blah1 --- some_value1
attached mail follows:
At 21:33 28.02.2001, Dallas K. said: --------------------[snip]-------------------- >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] = austin >$arr[address][state] = Texas >$arr[somthing][somthing_else][blah1]= some_value1 >$arr[somthing][somthing_else][blah2]= some_value2 >$arr[somthing][somthing_else][blah3]= some_value3 > >I would want the result to be displaied as: > >ARR > name --- dallas > address --- city --- austin > address --- state --- Texas > somthing --- somthing_else --- blah1 --- some_value1 > somthing --- somthing_else --- blah1 --- some_value1 --------------------[snip]--------------------
Not tested, but try this as an example:
<?php
function showArray($name, $value) { if (is_array($value)) { if (strlen($name)) $name .= " --- "; while (list($key, $data) = each ($value)) $result .= showArray($name . $key, $data); } else $result = "$name --- $value\n"; return $result; }
$a = array("name" => "dallas", "address" => array("city" => "austin", "state" => "Texas"), "something" => array("something else" => array("blah1", "some_value1", "blah2", "some_value2"))); print(showArray(null, $a); ?>
this should recursively go into multi-dimensional arrays and construct an output similar to your requirements.
...ebird
>O Ernest E. Vogelsinger (\) http://www.1-at-web.at/ ^ ICQ# 13394035
attached mail follows:
At 12:33 PM -0800 2/28/01, Dallas K. 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] = austin >$arr[address][state] = Texas >$arr[somthing][somthing_else][blah1]= some_value1 >$arr[somthing][somthing_else][blah2]= some_value2 >$arr[somthing][somthing_else][blah3]= some_value3 > >I would want the result to be displaied as: > >ARR > name --- dallas > address --- city --- austin > address --- state --- Texas > somthing --- somthing_else --- blah1 --- some_value1 > somthing --- somthing_else --- blah1 --- some_value1
var_dump($arr) or print_r($arr) --- see
http://www.php.net/manual/en/function.var-dump.php
http://www.php.net/manual/en/function.print-r.php
-steve
-- +--- "They've got a cherry pie there, that'll kill ya" ------------------+ | Steve Edberg University of California, Davis | | sbedbergucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-------------------------------------- FBI Special Agent Dale Cooper ---+
attached mail follows:
On Wed, 28 Feb 2001 12:33:55 -0800, Dallas K. (dallask
austin.rr.com)
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] = austin
>$arr[address][state] = Texas
>$arr[somthing][somthing_else][blah1]= some_value1
>$arr[somthing][somthing_else][blah2]= some_value2
>$arr[somthing][somthing_else][blah3]= some_value3
>
>I would want the result to be displaied as:
>
>ARR
> name --- dallas
> address --- city --- austin
> address --- state --- Texas
> somthing --- somthing_else --- blah1 --- some_value1
> somthing --- somthing_else --- blah1 --- some_value1
<pre> <?var_dump($arr)?> </pre>
will come pretty close to what you want
attached mail follows:
unsubscribe
attached mail follows:
Anyone experience any problems working with Oracle when PHP has Oracle compiled in --with-oracle=/oracle/home/dir?
I am occassionally having the webserver hang when I try to execute a php script that I'm testing to access an Oracle database - this was causing <defunct> Oracle processes so I re-compiled with --enable-sigchild, and now I don't see any defunct processes, but the whole webserver still hangs, and now I get a seg fault.
Is this a recognized problem/bug, and is there a solution? Would compiling --with-oci8 solve this?
TIA.
-- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com
attached mail follows:
I don't think you can since the plural form of English words can vary, woman, women, families, family, foot, feet, church, churches, sheep, sheep, road, roads...
?????
rm
--- "Robert V. Zwink" <rzwink
microcenter.com> wrote:
> Has anyone every written a function in php to
> pluralize an english word,
> particularly when searching a database?
>
> function pluralize($word){
> return array of pluralized words;
> }
>
> Any help would be appreciated. Seems like their
> might be a nice regex
> waiting to handle this? Thanks!
>
> Robert Zwink
> http://zwink.levitate.org
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe
lists.php.net
> For additional commands, e-mail:
> php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
__________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
attached mail follows:
In article <20010228183347.89585.qmail
web12715.mail.yahoo.com>,
richand2002
yahoo.com (richard merit) wrote:
> I don't think you can since the plural form of English
> words can vary, woman, women, families, family, foot,
> feet, church, churches, sheep, sheep, road, roads...
>
> ?????
>
> rm
>
> --- "Robert V. Zwink" <rzwink
microcenter.com> wrote:
> > Has anyone every written a function in php to
> > pluralize an english word,
> > particularly when searching a database?
> >
> > function pluralize($word){
> > return array of pluralized words;
> > }
Maybe by posting a lookup to an online dictionary, and parsing out the returned definition for the plural wordform...?
-- CC
attached mail follows:
Does anyone know of a company which is offering or planning to offer PHP developer certifications? Arguments against certification programs aside[1], there are a lot of companies which prefer certified developers, even to the point of assuming a project done in ASP will be better than the same thing done in PHP simply because the ASP developers are Microsoft certified.
While this seems like an interesting sideline for a company like Zend, I'm also somewhat curious about whether an "Open Source" test could be developed. It'd certainly have to be quite different from normal tests and that move away from easily memorized answers would probably be a very good thing.
[1] We've all heard them before. I'm personally in favor only of certifications like certain devilishly hard Cisco exams which measure more than multiple-choice memory.
attached mail follows:
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.
My 2 cents anyway...
> Does anyone know of a company which is offering or planning to offer PHP
> developer certifications? Arguments against certification programs aside[1],
> there are a lot of companies which prefer certified developers, even to the
> point of assuming a project done in ASP will be better than the same thing
done
> in PHP simply because the ASP developers are Microsoft certified.
>
> While this seems like an interesting sideline for a company like Zend, I'm
also
> somewhat curious about whether an "Open Source" test could be developed. It'd
> certainly have to be quite different from normal tests and that move away from
> easily memorized answers would probably be a very good thing.
>
> [1] We've all heard them before. I'm personally in favor only of
certifications
> like certain devilishly hard Cisco exams which measure more than
> multiple-choice memory.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
-- Dragos Roua Mirabilis Media, http://www.portal.ro http://www.net-info.ro http://www.analyser.ro http://www.adserver.ro http://www.culinar.ro http://www.cartipostale.ro
attached mail follows:
Brainbench, www.brainbench.com offers many online certifications, including one in PHP.
>===== Original Message From chris
improbable.org (Chris Adams) =====
>Does anyone know of a company which is offering or planning to offer PHP
>developer certifications? Arguments against certification programs aside[1],
>there are a lot of companies which prefer certified developers, even to the
>point of assuming a project done in ASP will be better than the same thing
done
>in PHP simply because the ASP developers are Microsoft certified.
>
>While this seems like an interesting sideline for a company like Zend, I'm
also
>somewhat curious about whether an "Open Source" test could be developed. It'd
>certainly have to be quite different from normal tests and that move away
from
>easily memorized answers would probably be a very good thing.
>
>[1] We've all heard them before. I'm personally in favor only of
certifications
>like certain devilishly hard Cisco exams which measure more than
>multiple-choice memory.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Wed, 28 Feb 2001 20:54:07 +0200 (EET), Dragos Roua
(dragos
mirabilis.ro) 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 terrible. It's heavy on knowing the details of mssql functions and oci functions, and no points are given for speed. It's like an open book test so anybody can spend all day looking up the right answer, fill it out, and get a perfect score. If you just want to get the thing over with you can be honest and dump all the answers you don't know.
Anyway, I think that as a benchmark it's garbage. A good test should stay away from most modules, and also include speed as a factor. Also It's way too easy to cheat on a test like this, so I don't think they should be taken too seriously no matter what.
I can see requiring a person to pass a test like this before they get a job interview, but a company using the scores as a basis for hiring someone would be silly.
>My 2 cents anyway...
>
>> Does anyone know of a company which is offering or planning to
>>offer PHP
>> developer certifications? Arguments against certification programs
>>aside[1],
>> there are a lot of companies which prefer certified developers,
>>even to the
>> point of assuming a project done in ASP will be better than the
>>same thing
>done
>> in PHP simply because the ASP developers are Microsoft certified.
>>
>> While this seems like an interesting sideline for a company like
>>Zend, I'm
>also
>> somewhat curious about whether an "Open Source" test could be
>>developed. It'd
>> certainly have to be quite different from normal tests and that
>>move away from
>> easily memorized answers would probably be a very good thing.
>>
>> [1] We've all heard them before. I'm personally in favor only of
>certifications
>> like certain devilishly hard Cisco exams which measure more than
>> multiple-choice memory.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>> For additional commands, e-mail: php-general-help
lists.php.net
>> To contact the list administrators, e-mail: php-list-
>>admin
lists.php.net
>>
>
>
>--
>Dragos Roua
>Mirabilis Media,
>http://www.portal.ro http://www.net-info.ro
>http://www.analyser.ro http://www.adserver.ro
>http://www.culinar.ro http://www.cartipostale.ro
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-
>admin
lists.php.net
attached mail follows:
actually, it IS a timed test, so you cannot simply "spend all day looking up the right answer."
BTW, if you do want to take the test, today is the last day that the exam is offered for free ... tomorrow they start charging $20 or so for each exam....
-----Original Message-----
From: Mark Maggelet [mailto:maggelet
mminternet.com]
Sent: Wednesday, February 28, 2001 2:14 PM
To: dragos
mirabilis.ro; chris
improbable.org
Cc: php-general
lists.php.net
Subject: Re: [PHP] Developer certifications
On Wed, 28 Feb 2001 20:54:07 +0200 (EET), Dragos Roua
(dragos
mirabilis.ro) 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 terrible. It's heavy on knowing the details of mssql functions and oci functions, and no points are given for speed. It's like an open book test so anybody can spend all day looking up the right answer, fill it out, and get a perfect score. If you just want to get the thing over with you can be honest and dump all the answers you don't know.
Anyway, I think that as a benchmark it's garbage. A good test should stay away from most modules, and also include speed as a factor. Also It's way too easy to cheat on a test like this, so I don't think they should be taken too seriously no matter what.
I can see requiring a person to pass a test like this before they get a job interview, but a company using the scores as a basis for hiring someone would be silly.
>My 2 cents anyway...
>
>> Does anyone know of a company which is offering or planning to
>>offer PHP
>> developer certifications? Arguments against certification programs
>>aside[1],
>> there are a lot of companies which prefer certified developers,
>>even to the
>> point of assuming a project done in ASP will be better than the
>>same thing
>done
>> in PHP simply because the ASP developers are Microsoft certified.
>>
>> While this seems like an interesting sideline for a company like
>>Zend, I'm
>also
>> somewhat curious about whether an "Open Source" test could be
>>developed. It'd
>> certainly have to be quite different from normal tests and that
>>move away from
>> easily memorized answers would probably be a very good thing.
>>
>> [1] We've all heard them before. I'm personally in favor only of
>certifications
>> like certain devilishly hard Cisco exams which measure more than
>> multiple-choice memory.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>> For additional commands, e-mail: php-general-help
lists.php.net
>> To contact the list administrators, e-mail: php-list-
>>admin
lists.php.net
>>
>
>
>--
>Dragos Roua
>Mirabilis Media,
>http://www.portal.ro http://www.net-info.ro
>http://www.analyser.ro http://www.adserver.ro
>http://www.culinar.ro http://www.cartipostale.ro
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-
>admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Wed, 28 Feb 2001 15:16:41 -0600, kmurrah (kmurrah
bakergrfx.com)
wrote:
>actually, it IS a timed test, so you cannot simply "spend all day
>looking up
>the right answer."
Heh, maybe not all day, but I took it twice to see if speed was getting counted in the score. The first time I sped thru it, and the second time I let sit there for what seemed like enough time to consult the manual or a book for each question and probably even write a sample program to check the output (whatever it would take to double check that I had the right answer).
It scored me the same both times, and for this reason I decided that it was not a very good system. Besides, at this point somebody's probably posted the answers on the internet somewhere, making this thing completely useless.
>BTW, if you do want to take the test, today is the last day that the
>exam is
>offered for free ... tomorrow they start charging $20 or so for each
>exam....
>
>
>-----Original Message-----
>From: Mark Maggelet [mailto:maggelet
mminternet.com]
>Sent: Wednesday, February 28, 2001 2:14 PM
>To: dragos
mirabilis.ro; chris
improbable.org
>Cc: php-general
lists.php.net
>Subject: Re: [PHP] Developer certifications
>
>
>On Wed, 28 Feb 2001 20:54:07 +0200 (EET), Dragos Roua
>(dragos
mirabilis.ro) 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 terrible. It's heavy on knowing the details
of
>mssql functions and oci functions, and no points are given for
speed.
>It's like an open book test so anybody can spend all day looking up
>the right answer, fill it out, and get a perfect score. If you just
>want to get the thing over with you can be honest and dump all the
>answers you don't know.
>
>Anyway, I think that as a benchmark it's garbage. A good test should
>stay away from most modules, and also include speed as a factor.
Also
>It's way too easy to cheat on a test like this, so I don't think
they
>should be taken too seriously no matter what.
>
>I can see requiring a person to pass a test like this before they
get
>a job interview, but a company using the scores as a basis for
hiring
>someone would be silly.
>
>>My 2 cents anyway...
>>
>>> Does anyone know of a company which is offering or planning to
>>>offer PHP
>>> developer certifications? Arguments against certification
programs
>>>aside[1],
>>> there are a lot of companies which prefer certified developers,
>>>even to the
>>> point of assuming a project done in ASP will be better than the
>>>same thing
>>done
>>> in PHP simply because the ASP developers are Microsoft certified.
>>>
>>> While this seems like an interesting sideline for a company like
>>>Zend, I'm
>>also
>>> somewhat curious about whether an "Open Source" test could be
>>>developed. It'd
>>> certainly have to be quite different from normal tests and that
>>>move away from
>>> easily memorized answers would probably be a very good thing.
>>>
>>> [1] We've all heard them before. I'm personally in favor only of
>>certifications
>>> like certain devilishly hard Cisco exams which measure more than
>>> multiple-choice memory.
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>>> For additional commands, e-mail: php-general-help
lists.php.net
>>> To contact the list administrators, e-mail: php-list-
>>>admin
lists.php.net
>>>
>>
>>
>>--
>>Dragos Roua
>>Mirabilis Media,
>>http://www.portal.ro http://www.net-info.ro
>>http://www.analyser.ro http://www.adserver.ro
>>http://www.culinar.ro http://www.cartipostale.ro
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>>For additional commands, e-mail: php-general-help
lists.php.net
>>To contact the list administrators, e-mail: php-list-
>>admin
lists.php.net
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-
>admin
lists.php.net
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-
>admin
lists.php.net
attached mail follows:
I know of two ways to pass data from PHP to JavaScript.
1. Do an "echo" in the JS function definition:
function myJavascriptFunction() { var foo = <?php echo $somePhpVariable ?>; }
2. Assign the PHP variable to a HIDDEN <FORM> element, then access this from JS:
<INPUT TYPE="HIDDEN" NAME="somePhpVariable" VALUE=1>
function myJavascriptFunction () { document.forms[0].somePhpVariable.value += 1; }
Good luck!
Kirk
-----Original Message-----
From: kaab kaoutar [mailto:kaab_k
hotmail.com]
Sent: Wednesday, February 28, 2001 10:51 AM
To: php-general
lists.php.net
Subject: [PHP] exchange data between javascript & php!
Hi! i want to when i click on a button, i execute some php syntax ! i also want to give a php variable to a javascript function Thanks
attached mail follows:
I'm receiving consistent segfaults when invoking ora_error after an ora_exec error. When I give
SELECT abc FROM customer
and "abc" is *NOT* a valid column name for "customer" table, then ora_parse is successful, but ora_exec fails - and if as a result of the failure I try to call ora_error I get a segfault.
Has anyone else seen this - any solutions?
TIA.
-- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com
attached mail follows:
Hi. i've concatenated a string from a while statement on a SQL query. example: "$mars","$venus","$jupiter". let's say i call this $planets. there are actual variables from a posted form with those names. say, $mars=1, $venus=2, $jupiter=3. however, when i echo "$planets" i get the string "$mars,"$venus"... rather than what I want: "1," "2", "3". but if echo $mars i get "1." i'm trying to create a dynamic sql insert statement because the page sending it doesn't know what/how many varialbes it's sending. if i hard code it, it works. this has been puzzling me for days! see, the 'planets' are all displayed on the form from the while statement to database table1. i.e. while (...results) $name=row[(planets)]....the other variables in the form are defined. say, $number. the statement/string reads them okay. i.e. if string/statement was ("\"$number\",\"$mars\",\"venus\") it will echo as ("54","$mars","$venus.....). have i made my problem clear? because it's sure confusing me!
attached mail follows:
At 4:54 PM +0000 2/28/01, Philip Reynolds wrote:
>Batonik's [weirdo
poczta.onet.pl] 15 lines of wisdom included:
>:>Hi,
>:>
>:> I've heard that it is possible, for security reasons, to disable
>:>such functions like phpinfo(). How can I do this?
>
>You can edit the sources...
>PHP4: $PHP_BASE_DIR/ext/standard/basic_functions.c
>
>You're looking for a struct called
>function_entry basic_functions[]
>
>On my version (4.0.4-pl1) it's on line 91.
>Your functions are listed there..
>
>for example, delete line "PHP_FE(time, NULL)"
>which is on line 100 on my version disables the time function.
>However, why you want to disable functions is beyond me, to make PHP
>"safe" you're going to have to disable a LOT of functions..
>
>There might be some PHP4 way to disable functions, I think there
>might be some way to do it from php.ini, but I can't find it
>offhand.
>Phil.
>
It's not documented yet at
http://www.php.net/manual/en/configuration.php
, but you can use the following in your php.ini file:
disable_functions = ; This directive allows you to disable certain ; functions for security reasons. It receives ; a comma separated list of function names. ; This directive is *NOT* affected by whether ; Safe Mode is turned on or off.
I presume you could use the
php_value disable_functions phpinfo
syntax in your httpd.conf or .htaccess (you might need to use php_admin_value instead of php_value). This is available in php 4.0.4; I don't know about availability in earlier versions. I don't use this, though, so I'm just copying from the provided .ini file.
-steve
-- +--- "They've got a cherry pie there, that'll kill ya" ------------------+ | Steve Edberg University of California, Davis | | sbedbergucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-------------------------------------- FBI Special Agent Dale Cooper ---+
attached mail follows:
I'm using Omnihttpd Pro personal web server running on Windows ME, and with PHP 4 bundled with the server. When I try to enable dlls by uncommenting lines in php.ini (e.g. ;extension=php_gd.dll) the browser becomes unable to load pages from the server, takes a long time trying and then gives up with a blank page showing. I've left the extension directory at the default of "extension_dir = ./ " with the dlls directly under the php directory. I've a copy of php.ini in both the php directory and under windows, though its the latter thats being read.
Any suggestions please - I really want to use the gd extension!! (Note I get the same problem if I uncomment any other dll lines in php.ini)
Alan Hale
attached mail follows:
The figures I'm giving you are from one of the two biggest portals in Israel. it's less than 3%.
I'm not sure about Opera, if you are developing for an Israeli audience, you can simply develop for IE 4.x and up.
anyone with any other browser can go and get IE :)
-----Original Message-----
From: Aviv Revach [mailto:jolp
netvision.net.il]
Sent: Tuesday, February 27, 2001 4:03 PM
To: Boaz Yahav; php-general
lists.php.net
Subject: RE: [PHP] Hebrew websites transition with php3 ..
Hey!
Thank you for the quick reply.
I do have some questions regarding your answer.
From what I know and have seen so far, there are more than just 3% Internet users in Israel which use Netscape 4.x (I use it myself...). Are you sure that I should just ignore these people, and just use logical Hebrew?
Also, quite a lot of people started using Opera lately.. (ain't speaking about Israeli users). Does Opera supports Logical Hebrew? If so, from which version?
Best Regards -
Aviv Revach
At 15:20 28/02/01 +0200, Boaz Yahav wrote:
>Hi Aviv
>
>Let me give you a small tip about Hebrew on the net.
>
>The proper Hebrew code which was adopted by the Israeli Institute of
>Standards
>is the Logical standard. This standard is automatically supported by IE 4.x
>and 5.x
>and also by Netscape 6.x.
>
>The percentage of not IE4.x or 5.x users in Israel is less than 3%.
>
>3 of the major portals in Israel (Walla, Nana and MSN) are already moving
to
>
>logical Hebrew.
>
>So why use Visual Hebrew?
>
>In case you decide to go with Visual in any case, did you try hebrevc()?
>
>Sincerely
>
> berber
>
>Visit http://www.weberdev.com Today!!!
>To see where PHP might take you tomorrow.
>
>
>-----Original Message-----
>From: Aviv Revach [mailto:jolp
netvision.net.il]
>Sent: Tuesday, February 27, 2001 1:43 PM
>To: php-general
lists.php.net
>Subject: [PHP] Hebrew websites transition with php3 ..
>
>
>Hey!
>
>I've just joined this mailing-list, therefore, first of all, I would like
>to say hello to everybody.
>
>
>Now, regarding the issue..
>
>As some of you might know, handling with Hebrew websites is rather
>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth'
>instead of 'html').
>
>I'm working on a php3 script which would help me do the following -
>Load an existing HTML file which consists Hebrew words (as well as English
>words and HTML tags), then reversing the Hebrew words back to order.
>
>The problem I'm dealing with is how to reverse only the Hebrew words and
>not the entire
>document, which contains HTML tags and English words as well.
>The function 'hebrev()' does the process of reversing, but it reverses tags
>as well.
>
>
>I would really appreciate it, if anyone will find some spare time to help
>me.
>
>
>Thank you in advance -
>
> Aviv Revach
>
>XOR-Coders Mega Programming Resource Site! -
> http://members.xoom.com/xorcoders/
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/
attached mail follows:
Hello Boaz,
How are you doing these days? :-)
On 28-Feb-01 16:39:35, you wrote:
>The figures I'm giving you are from one of the two biggest portals in >Israel. >it's less than 3%.
Mind me for jumping in, but I think Aviv question about the truth of the 3% figure ie very pertinent.
The way I see it it is a gross mistake to assume that the audience of a large portal is necessary a reflex of the potential audience of that portal.
I also work for a large portal company (not for the Hebrew audience though) and I found people making the same large mistake. They looked at the sites audience and figure that there is over 90% of Internet Explorer users in a site that used IE specific DHTML. Needless to say that it didn't show right in Netscape.
Given that sites do not show right in certain browsers, it looks obvious that almost nobody using those browsers would show in the browser audience rates.
I even wonder why there are still 3% of users of browsers that do not support logical Hebrew display that go to your portal. Same for the 10% of Netscape users that go to that other site in my company portal. Maybe those are just lurkers that went there and gave up on the site and did not return because they could not see right what was in there.
The reality is that it turns out that there is still about 30% os Netscape users, meaning that if you force a certain type of display that they don't see right, you loose their audience.
Just my .02 EUR. :-)
Manuel Lemos
>I'm not sure about Opera, if you are developing for an Israeli >audience, you can simply develop for IE 4.x and up.
>anyone with any other browser can go and get IE :)
>-----Original Message-----
>From: Aviv Revach [mailto:jolp
netvision.net.il]
>Sent: Tuesday, February 27, 2001 4:03 PM
>To: Boaz Yahav; php-general
lists.php.net
>Subject: RE: [PHP] Hebrew websites transition with php3 ..
>Hey!
>Thank you for the quick reply.
>I do have some questions regarding your answer.
> From what I know and have seen so far, there are more than just 3% >Internet users in Israel which use Netscape 4.x (I use it myself...). >Are you sure that I should just ignore these people, and just use logical >Hebrew?
>Also, quite a lot of people started using Opera lately.. (ain't speaking >about Israeli users). >Does Opera supports Logical Hebrew? If so, from which version?
>Best Regards -
> Aviv Revach
>At 15:20 28/02/01 +0200, Boaz Yahav wrote:
>>Hi Aviv
>>
>>Let me give you a small tip about Hebrew on the net.
>>
>>The proper Hebrew code which was adopted by the Israeli Institute of
>>Standards
>>is the Logical standard. This standard is automatically supported by IE 4.x
>>and 5.x
>>and also by Netscape 6.x.
>>
>>The percentage of not IE4.x or 5.x users in Israel is less than 3%.
>>
>>3 of the major portals in Israel (Walla, Nana and MSN) are already moving
>to
>>
>>logical Hebrew.
>>
>>So why use Visual Hebrew?
>>
>>In case you decide to go with Visual in any case, did you try hebrevc()?
>>
>>Sincerely
>>
>> berber
>>
>>Visit http://www.weberdev.com Today!!!
>>To see where PHP might take you tomorrow.
>>
>>
>>-----Original Message-----
>>From: Aviv Revach [mailto:jolp
netvision.net.il]
>>Sent: Tuesday, February 27, 2001 1:43 PM
>>To: php-general
lists.php.net
>>Subject: [PHP] Hebrew websites transition with php3 ..
>>
>>
>>Hey!
>>
>>I've just joined this mailing-list, therefore, first of all, I would like
>>to say hello to everybody.
>>
>>
>>Now, regarding the issue..
>>
>>As some of you might know, handling with Hebrew websites is rather
>>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth'
>>instead of 'html').
>>
>>I'm working on a php3 script which would help me do the following -
>>Load an existing HTML file which consists Hebrew words (as well as English
>>words and HTML tags), then reversing the Hebrew words back to order.
>>
>>The problem I'm dealing with is how to reverse only the Hebrew words and
>>not the entire
>>document, which contains HTML tags and English words as well.
>>The function 'hebrev()' does the process of reversing, but it reverses tags
>>as well.
>>
>>
>>I would really appreciate it, if anyone will find some spare time to help
>>me.
>>
>>
>>Thank you in advance -
>>
>> Aviv Revach
>>
>>XOR-Coders Mega Programming Resource Site! -
>> http://members.xoom.com/xorcoders/
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>>For additional commands, e-mail: php-general-help
lists.php.net
>>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>XOR-Coders Mega Programming Resource Site! - > http://members.xoom.com/xorcoders/
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
attached mail follows:
Hey!
So what do YOU offer me to do?
Should I use visual Hebrew (write a php3 script which will reverse Hebrew words), or should I stick only to Logical Hebrew?
Thank you in advance -
Aviv Revach
At 17:50 28/02/01 -0300, Manuel Lemos wrote:
>Hello Boaz,
>
>How are you doing these days? :-)
>
>On 28-Feb-01 16:39:35, you wrote:
>
> >The figures I'm giving you are from one of the two biggest portals in
> >Israel.
> >it's less than 3%.
>
>Mind me for jumping in, but I think Aviv question about the truth of the 3%
>figure ie very pertinent.
>
>The way I see it it is a gross mistake to assume that the audience of a
>large portal is necessary a reflex of the potential audience of that portal.
>
>I also work for a large portal company (not for the Hebrew audience though)
>and I found people making the same large mistake. They looked at the sites
>audience and figure that there is over 90% of Internet Explorer users in a
>site that used IE specific DHTML. Needless to say that it didn't show
>right in Netscape.
>
>Given that sites do not show right in certain browsers, it looks obvious
>that almost nobody using those browsers would show in the browser audience
>rates.
>
>I even wonder why there are still 3% of users of browsers that do not
>support logical Hebrew display that go to your portal. Same for the 10% of
>Netscape users that go to that other site in my company portal. Maybe
>those are just lurkers that went there and gave up on the site and did not
>return because they could not see right what was in there.
>
>The reality is that it turns out that there is still about 30% os Netscape
>users, meaning that if you force a certain type of display that they don't
>see right, you loose their audience.
>
>Just my .02 EUR. :-)
>
>Manuel Lemos
>
>
>
> >I'm not sure about Opera, if you are developing for an Israeli
> >audience, you can simply develop for IE 4.x and up.
>
> >anyone with any other browser can go and get IE :)
>
> >-----Original Message-----
> >From: Aviv Revach [mailto:jolp
netvision.net.il]
> >Sent: Tuesday, February 27, 2001 4:03 PM
> >To: Boaz Yahav; php-general
lists.php.net
> >Subject: RE: [PHP] Hebrew websites transition with php3 ..
>
>
> >Hey!
>
> >Thank you for the quick reply.
>
> >I do have some questions regarding your answer.
>
> > From what I know and have seen so far, there are more than just 3%
> >Internet users in Israel which use Netscape 4.x (I use it myself...).
> >Are you sure that I should just ignore these people, and just use logical
> >Hebrew?
>
> >Also, quite a lot of people started using Opera lately.. (ain't speaking
> >about Israeli users).
> >Does Opera supports Logical Hebrew? If so, from which version?
>
>
> >Best Regards -
>
> > Aviv Revach
>
>
> >At 15:20 28/02/01 +0200, Boaz Yahav wrote:
> >>Hi Aviv
> >>
> >>Let me give you a small tip about Hebrew on the net.
> >>
> >>The proper Hebrew code which was adopted by the Israeli Institute of
> >>Standards
> >>is the Logical standard. This standard is automatically supported by IE 4.x
> >>and 5.x
> >>and also by Netscape 6.x.
> >>
> >>The percentage of not IE4.x or 5.x users in Israel is less than 3%.
> >>
> >>3 of the major portals in Israel (Walla, Nana and MSN) are already moving
> >to
> >>
> >>logical Hebrew.
> >>
> >>So why use Visual Hebrew?
> >>
> >>In case you decide to go with Visual in any case, did you try hebrevc()?
> >>
> >>Sincerely
> >>
> >> berber
> >>
> >>Visit http://www.weberdev.com Today!!!
> >>To see where PHP might take you tomorrow.
> >>
> >>
> >>-----Original Message-----
> >>From: Aviv Revach [mailto:jolp
netvision.net.il]
> >>Sent: Tuesday, February 27, 2001 1:43 PM
> >>To: php-general
lists.php.net
> >>Subject: [PHP] Hebrew websites transition with php3 ..
> >>
> >>
> >>Hey!
> >>
> >>I've just joined this mailing-list, therefore, first of all, I would like
> >>to say hello to everybody.
> >>
> >>
> >>Now, regarding the issue..
> >>
> >>As some of you might know, handling with Hebrew websites is rather
> >>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth'
> >>instead of 'html').
> >>
> >>I'm working on a php3 script which would help me do the following -
> >>Load an existing HTML file which consists Hebrew words (as well as English
> >>words and HTML tags), then reversing the Hebrew words back to order.
> >>
> >>The problem I'm dealing with is how to reverse only the Hebrew words and
> >>not the entire
> >>document, which contains HTML tags and English words as well.
> >>The function 'hebrev()' does the process of reversing, but it reverses tags
> >>as well.
> >>
> >>
> >>I would really appreciate it, if anyone will find some spare time to help
> >>me.
> >>
> >>
> >>Thank you in advance -
> >>
> >> Aviv Revach
> >>
> >>XOR-Coders Mega Programming Resource Site! -
> >> http://members.xoom.com/xorcoders/
> >>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> >>For additional commands, e-mail: php-general-help
lists.php.net
> >>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
> >XOR-Coders Mega Programming Resource Site! -
> > http://members.xoom.com/xorcoders/
>
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> >For additional commands, e-mail: php-general-help
lists.php.net
> >To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
>Regards,
>Manuel Lemos
>
>Web Programming Components using PHP Classes.
>Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
>--
>E-mail: mlemos
acm.org
>URL: http://www.mlemos.e-na.net/
>PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
>--
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/
attached mail follows:
[I'm not on this list, please CC me in reply]
Is there any way to compile a .php file instead of using the source code to distribute?
Problem is, I may have to release an application written in PHP out to companies who do not wish to use this application across the Internet and would like to use it on their local intranet. I do not wish to have to deal with the non-disclosers, agreements, etc which comes with releasing source code.
Thanks in advance.
---------------------
Johnny Withers
johnny
mindbender.net
p. 601.853.0211
c. 601.954.9133
attached mail follows:
Use the zend optimizer, www.zend.com . Of course it requires the people who use the script to have the optimizer as well, but at least they can't see the source.
Jeff
Johnny Withers wrote:
> [I'm not on this list, please CC me in reply]
>
> Is there any way to compile a .php file instead of using the source code to
> distribute?
>
> Problem is, I may have to release an application written in PHP out to
> companies who do not wish to use this application across the Internet and
> would like to use it on their local intranet. I do not wish to have to deal
> with the non-disclosers, agreements, etc which comes with releasing source
> code.
>
> Thanks in advance.
>
> ---------------------
> Johnny Withers
> johnny
mindbender.net
> p. 601.853.0211
> c. 601.954.9133
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
You mean the Encoder. The Optimizer has no such requirement.
John
On Wed, 28 Feb 2001, Jeff wrote:
> Use the zend optimizer, www.zend.com . Of course it requires the people who use
> the script to have the optimizer as well, but at least they can't see the
> source.
>
> Jeff
>
> Johnny Withers wrote:
>
> > [I'm not on this list, please CC me in reply]
> >
> > Is there any way to compile a .php file instead of using the source code to
> > distribute?
> >
> > Problem is, I may have to release an application written in PHP out to
> > companies who do not wish to use this application across the Internet and
> > would like to use it on their local intranet. I do not wish to have to deal
> > with the non-disclosers, agreements, etc which comes with releasing source
> > code.
> >
> > Thanks in advance.
> >
> > ---------------------
> > Johnny Withers
> > johnny
mindbender.net
> > p. 601.853.0211
> > c. 601.954.9133
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
--John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.intacct.com
Public key available off http://www.keyserver.net Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD
attached mail follows:
Hello Fabian,
On 28-Feb-01 03:01:02, you wrote:
>Hi,
>I have a page, and when I have to add a product I use a form, many people are >used to make double click in every task, so when the product is sent with a >double click in the send button, the program send it twice to the data base.
>What can I do to prevent this?
You may want to try this forms generation class that lets you define a warning message that shows when the user attempts to submit a form more than once.
http://phpclasses.UpperDesign.com/browse.html/package/1
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
attached mail follows:
If you are lucky and are feeding this form data to a database, you can create a unique hash field from other fields that would not change from click 1 to click 2. Then just make the database treat the hash as a unique index and it should prevent double entries. Works for me.
Other advice is to not tell the double clicker that had an error; Just silently ignore their second request.
> -----Original Message-----
> From: Manuel Lemos [mailto:mlemos
acm.org]
> Sent: Wednesday, February 28, 2001 2:55 PM
> To: php-general
lists.php.net
> Subject: Re: [PHP] Double Click
>
>
> Hello Fabian,
>
> On 28-Feb-01 03:01:02, you wrote:
>
>
> >Hi,
>
> >I have a page, and when I have to add a product I use a form,
> many people are
> >used to make double click in every task, so when the product is
> sent with a
> >double click in the send button, the program send it twice to
> the data base.
>
> >What can I do to prevent this?
>
> You may want to try this forms generation class that lets you define a
> warning message that shows when the user attempts to submit a form more
> than once.
>
> http://phpclasses.UpperDesign.com/browse.html/package/1
>
> Regards,
> Manuel Lemos
>
> Web Programming Components using PHP Classes.
> Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
> --
> E-mail: mlemos
acm.org
> URL: http://www.mlemos.e-na.net/
> PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
> --
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hello Adrian,
On 28-Feb-01 14:00:48, you wrote:
>anyone using this class:
>whats a good way to extact the address of who sent the mail and stick it in >a variable,in order >to reply?
You need to retrieve the message headers with the function RetrieveMessage and then look in the $headers array (strtok(strtolower($headers[$line]),":")) for a reply-to or from headers and then use the address specified in that header.
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
attached mail follows:
Hi, folks! I'll highly appreciate if somebody can send me URL of the page where I can read performance comparison of the both techniques, of course if somebody has it own experience in such things then I'll get to know it with increased attention!
P.S. I'm a bit abashed because of my English. I'm sorry. English isn't my native language.
-- Regards, Alex mailto:Alexwebdb.mldnet.com
May all your Internet Dreams come true! http://www.intellinetusa.com/
attached mail follows:
Try this...
http://www.google.com/search?q=PHP+vs.+ColdFusion
> -----Original Message-----
> From: Alex Puritche [mailto:Alex
webdb.mldnet.com]
> Sent: Wednesday, February 28, 2001 3:15 PM
> To: php-general
lists.php.net
> Subject: [PHP] Cold Fusion vs. PHP
>
>
> Hi, folks!
> I'll highly appreciate if somebody can send me URL of the page where I
> can read performance comparison of the both techniques, of course if
> somebody has it own experience in such things then I'll get to know it
> with increased attention!
>
> P.S. I'm a bit abashed because of my English. I'm sorry. English isn't
> my native language.
>
>
>
>
>
> --
> Regards,
> Alex mailto:Alex
webdb.mldnet.com
>
> May all your Internet Dreams come true!
> http://www.intellinetusa.com/
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I have a simple page that offers three items(7700,7701,7702). I am trying to figure the best way to calculate the price for each shirt depending on the amount they want. The breakdown of prices is: Any 3 shirts for $50 7700 - 3 for $33 or $14.99 7701 & 7702 - 3 for $50 or $25.
So I sort through the 7700's and set the price for multiples of three which is 11, then sort through the 7701 and 7702 and set the price for multiples of three which is 16.66.
Now I run into a problem with the remaining shirts and figuring out how they should be priced. If there are four shirts left and they are 2-7700, 1- 7701, and 1- 7702, I need a way to make sure that the 7701 and 7702 are included with 1 of the 7700, and the other 7700 is priced at 14.99.
The items are stored in mysql and referenced by the product code(7700). Hopefully I explained this weel enough. Maybe some ofyou have an idea. If you want to see what this is for go to http://www.jnewman.com/oxfords. Play all you want, it does nothing but add the prices. If you add 1 buttondown and 2 of the other shirts you will see that the total is 70 something instead of 50 something.
Thanks, Brett
attached mail follows:
I've been given a project that I want to use PHP with, but unfortunately there are unchangable hard-coded values that point clients to an ASP script residing on our server. Here's what I want to do, and I don't really know how to do it:
I want to pass all the key/value pairs that are passed to the ASP script to a PHP script. I can get values with Request.Form("key_name"), but that takes hard-coding the name of the key.
So if the following is passed to the ASP script: oneue&two=red&three=yellow
Then I would want to redirect to myscript.php?oneue&two=red&three=yellow
How do I go about walking through all the key/values that have been passed in ASP? I really don't want to have to learn this ugly language..
-- Isaac Force gorgonous656home.com (503)656-2489 http://gorgonous.dhs.org
Real Users find the one combination of bizarre input values that shuts down the system for days.
attached mail follows:
Well, if it's a query string it's easy...
In the ASP page you do:
<% Response.Redirect("myscript.php?" & Request.ServerVariables("QUERY_STRING")) %>
If it's posted form data do this:
<% Dim Querystring Querystring = "" For each Item in Request.Form if Querystring = "" Then Querystring = Item & "=" & Server.UrlEncode(Request.Form(Item)) Else Querystring = Querystring & "&" & Item & "=" & Server.UrlEncode(Request.Form(Item)) ' the above line isn't supposed to wrap End If Next Response.Redirect("myscript.php?" & Querystring) %>
On 2/28/01 4:08 PM this was written:
> I've been given a project that I want to use PHP with, but unfortunately > there are unchangable hard-coded values that point clients to an ASP > script residing on our server. Here's what I want to do, and I don't > really know how to do it: > > I want to pass all the key/value pairs that are passed to the ASP script > to a PHP script. I can get values with Request.Form("key_name"), but > that takes hard-coding the name of the key. > > So if the following is passed to the ASP script: > one=blue&two=red&three=yellow > > Then I would want to redirect to > myscript.php?one=blue&two=red&three=yellow > > How do I go about walking through all the key/values that have been passed > in ASP? I really don't want to have to learn this ugly language..
--Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
attached mail follows:
Hello, I am using PHP4 + mysql + Apache to do a little project,
Now, I want to let the end user can browse the record in a database table. Someone may want the record, through my php script interface, how can I log the record, which the user is editing and going to save it.
Or at least how can other instance process know that the record is using by some other . So that the script can warn the user not to edit the record.
Thanks! Zenith
attached mail follows:
I know you've addressed this already, but I'm still learning a lot of things and didn't get much from the previous posts. :) I am using a hosting service, not my own server. So before I complain that they installed the jpeg module incorrectly I need someone to make sure it is not my code.
This code with Png works fine: <?php header("Content-type: image/png"); if (($im = ImageCreateFromPng("test.png")) == "") { echo "error opening file"; exit; } $red = ImageColorAllocate($im, 255, 0, 0); ImageString($im, 3, 20, 10, "Hi", $red); ImagePng($im); ?>
However, if I change it to Jpeg it gives me a broken image icon. I get no other errors. <?php header("Content-type: image/jpeg"); if (($im = ImageCreateFromJpeg("test.jpeg")) == "") { echo "error opening file"; exit; } $red = ImageColorAllocate($im, 255, 0, 0); ImageString($im, 3, 20, 10, "Hi", $red); ImageJpeg($im); ?>
phpinfo() tell me this: './configure' '--with-gd=/opt/local/src/gd-1.8.4' '--with-config-file-path=/usr/local/lib' '--with-ttf=/opt/local/src/freetype-1.3.1' '--with-jpeg-dir=/opt/local/src/jpeg-6b' '--libdir=/usr/local/lib/'
Is it me or the server? And what do I tell them to do to fix it?
Thanks!
-- Cherie Benoit
attached mail follows:
Hi again, Has anyone here come accross a Rich Text Format to HTML converted based on PHP?
Thanks, Chris
attached mail follows:
If one of the script ( abc.php ) will generate a pop up (browser) windows, asking for user confirmation, then, if the user click on the form button inside that pop up windows, the form data will submit to also ( abc.php ), then, does the session data share among this two windows?
Zenith
attached mail follows:
I've tried and tried to no avail, can someone assist I need to select the first space in a line like the following Nelson Bob and Mary, 123 Street st., Ashton, 555-1212
I need to replace the space between Nelson and Bob with a comma so I can separate the first and last names in my DB ^\D*\s will select the first name and the space, but I just need the space. any ideas?
Jerry Lake - jerryl
europa.com
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
attached mail follows:
From: "Jerry Lake" <jerryl
europa.com>
> I've tried and tried to no avail, can someone assist > I need to select the first space in a line like the following > Nelson Bob and Mary, 123 Street st., Ashton, 555-1212 > > I need to replace the space between Nelson and Bob with > a comma so I can separate the first and last names in my DB > ^\D*\s will select the first name and the space, but I just > need the space. any ideas? >
<?php $str = "Nelson Bob and Mary, 123 Street st., Ashton, 555-1212"; $str = ereg_replace("^([^ ]+) (.+)", "\\1, \\2", $str); ?>
Or alternatively:
<?php $str = "Nelson Bob and Mary, 123 Street st., Ashton, 555-1212"; $str_bits = explode(" ", $str); $str_bits[0] .= ","; $str = implode(" ", $str_bits); ?>
Cheers
Simon Garner
attached mail follows:
Try the perl compatible one, you can set a limit of how many times to replace:
http://www.php.net/manual/en/function.preg-replace.php
> I've tried and tried to no avail, can someone assist
> I need to select the first space in a line like the following
> Nelson Bob and Mary, 123 Street st., Ashton, 555-1212
>
> I need to replace the space between Nelson and Bob with
> a comma so I can separate the first and last names in my DB
> ^\D*\s will select the first name and the space, but I just
> need the space. any ideas?
>
> Jerry Lake - jerryl
europa.com
> Web Designer
> Europa Communications - http://www.europa.com
> Pacifier Online - http://www.pacifier.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi all,
I am trying to get the expected behavior of: require("filename.gz"); or require("filename.bz2"); to work properly.
Beyond using gzopen, gzread, and gzwrite to do it using a temp file, is there any other way to include a compressed file with PHP code? I thought of using gzread and passing that to eval but it isn't pure PHP and uses <? and ?> respectively.
Thanks in advance, Shane
-- Shane Wegner: shanecm.nu http://www.cm.nu/~shane/ PGP: 1024D/FFE3035D A0ED DAC4 77EC D674 5487 5B5C 4F89 9A4E FFE3 035D
attached mail follows:
Hey all,
I am developming a site using FastTemplates, but I have run into a problem which it looks like I will not be able to resolve, I have posted to this list and the makers of FastTemplate but have recieved no clues on what is going on.
I have decided to try and find another template system and rewrite the entire site. Can people who use such systems let me know thier findings, the template system must:
Be a php class Totally separate html from php code Be able to handle *dynamic* blocks of code (ala FastTemplate) Not be phplib (sorry I have tried and dont like the autoprepend) Be easy to use Be Fast
Any comments will be appreciated,
Regards,
Joseph
attached mail follows:
I found this script on the internet...It's a script of a message
board...My problem is that I just want to display the 30 newer messages
stead of all messages...What do I have to change???
...............................................................
script:
<?
if ($message)
{
$message = strip_tags($message);
$message = ereg_replace("\r\n\r\n", "\n<P>", $message);
if (get_magic_quotes_gpc())
{
$message = stripslashes($message);
}
$date = date("d/m/Y - h:i a");
$message = "<B>$user </B> -- $date<P> $message <BR><HR>\r\n";
// first read the file into a buffer, if it exists
$textfile = basename($PHP_SELF) . ".comment";
if ($fp =
fopen ($textfile, "r")) // open without complaining
{
$oldmessages =
fread($fp,filesize($textfile));
fclose(fp);
}
// now reopen the file in write mode, with the
// pointer at the head of the file
$fp = fopen ($textfile, "w");
fwrite ($fp, $message);
fwrite ($fp, $oldmessages); // adding back the old messages
fclose ($fp);
}
readfile(basename(($PHP_SELF . ".comment")));
?>
...................................................................
Thank you
Felipe Lopes
MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!
attached mail follows:
Does anybody know of, or have the ability to convert the PHP html manual into an EBook for the likes of a palm pilot or Franklin reader?
This could really help for around the office and meetings.
-- Regards,YoBro ------------------------------------------------------------- DO NOT REPLY TO THIS VIA EMAIL PLEASE USE THE NEWSGROUP All emails sent to this address are automatically deleted. This is to avoid SPAM! -------------------------------------------------------------
attached mail follows:
On Thu, Mar 01, 2001 at 12:50:49PM +1300, YoBro wrote:
> Does anybody know of, or have the ability to convert the PHP html manual > into an EBook for the likes of a palm pilot or Franklin reader?
Try http://php.net/docs.php and look under Other Versions.
-Egon
-- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ http://www.php-buch.de/
attached mail follows:
Thanks for that, and sorry.
I had looked everywhere else except there. That should have been my first option to check out.
YoBro
<eschmid+sic
s.netic.de> wrote in message
news:20010301005947.54624
s.netic.de...
: On Thu, Mar 01, 2001 at 12:50:49PM +1300, YoBro wrote:
:
: > Does anybody know of, or have the ability to convert the PHP html manual
: > into an EBook for the likes of a palm pilot or Franklin reader?
:
: Try http://php.net/docs.php and look under Other Versions.
:
: -Egon
:
: --
: http://www.linuxtag.de/
: http://php.net/books.php
: http://www.concert-band.de/
: http://www.php-buch.de/
:
: --
: PHP General Mailing List (http://www.php.net/)
: To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
: For additional commands, e-mail: php-general-help
lists.php.net
: To contact the list administrators, e-mail: php-list-admin
lists.php.net
:
attached mail follows:
Hello,
i'm Anthony from France :-)
well i have a problem, i try make an authentication per range IP Address like : from 194.195.196.0 to 194.195.196.255 but it doesn't work, except if i make an authentication for only one IP Address. I tried to make with "LOOP" and "WHILE" tag, but i got the problem everytime !
This is the last example script i made with two domains which accept only the range IP Address for each :
<?php
$host = getenv("REMOTE_ADDR"); $ip = range(0,255); if ($host != "194.195.196.($ip)) if ($host != "195.196.197.($ip)) { header("Location: htt://www.internet.com/"); } ?>
Have u got a solution please !
Thanks ! Have a nice day !
Anthony.
attached mail follows:
At 00:58 01.03.2001, Nazoréen said: --------------------[snip]-------------------- >well i have a problem, i try make an authentication per range IP Address >like : >from 194.195.196.0 to 194.195.196.255 but it doesn't work, except if i make >an authentication for only one IP Address. I tried to make with "LOOP" and >"WHILE" tag, but i got the problem everytime ! > >This is the last example script i made with two domains which accept only >the range IP Address for each : > ><?php > >$host = getenv("REMOTE_ADDR"); >$ip = range(0,255); >if ($host != "194.195.196.($ip)) >if ($host != "195.196.197.($ip)) --------------------[snip]--------------------
Salut Anthony,
you may check if an address is within a certain network/subnet, you need to compare each octet.
For example: Address 192.168.11.212 Network 192.168.12.255 Mask 255.255.255.0 192 & 255 = 192 192 & 255 = 192 OK 168 & 255 = 168 168 & 255 = 168 OK 11 & 255 = 11 12 & 255 = 12 NOT WITHIN SUBNET
I've put this together in this littel test form:
--------------------[snip]-------------------- <?php
function contains_ip($network, $snmask, $address) { if (!is_array($network)) $network = explode(".", $network); if (!is_array($snmask)) $snmask = explode(".", $snmask); if (!is_array($address)) $address = explode(".", $address);
for ($i=0; $i<4; ++$i) { $a = $address[$i]*1; $m = $snmask[$i]*1; $n = $network[$i]*1; $m1 = $a & $m; $m2 = $n & $m; if (($a & $m) != ($n & $m)) return false; } return true; }
if ($network && $subnet && $address) $result = contains_ip($network, $subnet, $address);
?>
<html> <body> <?php if (isset($result)):?> <h4><?=$address?> is<?php if(!$result):?> <i>not</i><?php endif;?> contained in <?=$network?>, mask <?=$subnet?></h4> <?php endif;?> <form> Enter Address: <input type="text" name="address" value="<?=$address?>"><br> Enter Network: <input type="text" name="network" value="<?=$network?>"><br> Enter Subnetmask: <input type="text" name="subnet" value="<?=$subnet?>"><br> <input type="submit"> </form> </body> </html> --------------------[snip]--------------------
...ebird
>O Ernest E. Vogelsinger (\) http://www.1-at-web.at/ ^ ICQ# 13394035
attached mail follows:
how can I do something like
if(!defined(cybercash_encr())) dl("cybercash.so");
anyone know of a good way to see if a function/module has been included in php?
I need a run time solution for a script to be encoder()ed and distributed,
Thanks
Eric
-- Support your government, give Echelon / Carnivore something to parse -- classfield top-secret government restricted data information project CIA KGB GRU DISA DoD defense systems military systems spy steal terrorist Allah Natasha Gregori destroy destruct attack democracy will send Russia bank system compromise international own rule the world ATSC RTEM warmod ATMD force power enforce sensitive directorate TSP NSTD ORD DD2-N AMTAS STRAP warrior-T presidental elections policital foreign embassy takeover --------------------------------------------------------------------------
attached mail follows:
In article
<Pine.A41.4.33.0102281628360.79894-100000
dante07.u.washington.edu>,
egpeters
u.washington.edu (Eric Peters) wrote:
> how can I do something like > > if(!defined(cybercash_encr())) dl("cybercash.so"); > > anyone know of a good way to see if a function/module has been included in > php?
function_exists()
-- CC
attached mail follows:
Hi, Mod_auth_mysql uses a persistant connection to mysql. Will php use the same connection for any given apache child or does that then mean to mysqlds for each child, one used with mod_auth_mysql and one when php does requests ? Hope I'm making myself clear.
attached mail follows:
Hi
Setup is RH7 on intel running php4.01pl1 as a cgi binary.
virtual server apache conf file includes
Action php-script /cgi-bin/php AddHandler php-script .php
when php script is called, the following error occurs:
Parse error: parse error in /www/hosted/(Server name)/cgi-bin/php on line 598
However, on another virtual host on the same physical server, with an identical .conf file (except for file paths of course), php works fine.
There is a copy of the php binary in each cgi-bin.
I know that this has been reported before in the list, but a search did not bring up an answer. Can anyone help?
James Hamilton
jhamilton
alpha.net.au
attached mail follows:
does anybody know which versions of PHP are installed on a CobaltRAQ3 or CobaltRAQ4 when you buy a new one?
-- Ihr WEBberater Stuttgarter Str.3, D-73033 Göppingen Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598 http://www.wa-p.de ** mailto:jkwa-p.de
attached mail follows:
PHP 4.0 comes on the RAQ4i
chuck
----- Original Message -----
From: "Jochen Kaechelin" <jk
wa-p.de>
To: "Php-General
Lists. Php. Net" <php-general
lists.php.net>
Sent: Wednesday, February 28, 2001 6:57 PM
Subject: [PHP] PHP on Cobalt
> does anybody know which versions
> of PHP are installed on a CobaltRAQ3 or CobaltRAQ4
> when you buy a new one?
>
> --
> Ihr WEBberater
> Stuttgarter Str.3, D-73033 Göppingen
> Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598
> http://www.wa-p.de ** mailto:jk
wa-p.de
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
I have set up a template for a page that displays the featured product of the day. All data is stored in a mySQL db. So every day I want to feature a different product. Each product contains an entry in the db for picture, description, and hotlink.
What would be the best way to go about this? Does anybody have any sample code on performing this specific task once a day?
Your help is appreciated.
attached mail follows:
If on unix "man cron". Write a script to change a pointer and use cron to run the script.
On Wed, 28 Feb 2001 RalphGzman
aol.com wrote:
> Date: Wed, 28 Feb 2001 20:30:47 EST
> From: RalphGzman
aol.com
> To: php-general
lists.php.net
> Subject: [PHP] Daily Rotating Page
>
> I have set up a template for a page that displays the featured product of the day. All data is stored in a mySQL db. So every day I want to feature a
> different product. Each product contains an entry in the db for picture, description, and hotlink.
>
> What would be the best way to go about this? Does anybody have any sample code on performing this specific task once a day?
>
> Your help is appreciated.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
Kelly
303-444-1671 Boulder, Colorado
attached mail follows:
We use something like this to changing some sections of the web page based on the day of the year
#day number of the year, ex day 181, 183, 183
$subPartQuery=date("z")";
or
# day of the week 0=sunday mon=1, tue=3 $subPartQuery=date("w")";
select from database where day_col = $subPartQuery
etc. etc.
you have to double check the mysql syntax
rm
> On Wed, 28 Feb 2001 RalphGzman
aol.com wrote:
>
> > Date: Wed, 28 Feb 2001 20:30:47 EST
> > From: RalphGzman
aol.com
> > To: php-general
lists.php.net
> > Subject: [PHP] Daily Rotating Page
> >
> > I have set up a template for a page that displays
> the featured product of the day. All data is stored
> in a mySQL db. So every day I want to feature a
> > different product. Each product contains an entry
> in the db for picture, description, and hotlink.
> >
> > What would be the best way to go about this? Does
> anybody have any sample code on performing this
> specific task once a day?
> >
> > Your help is appreciated.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail:
> php-general-help
lists.php.net
> > To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
> >
>
> Kelly
>
> 303-444-1671
> Boulder, Colorado
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe
lists.php.net
> For additional commands, e-mail:
> php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
__________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
attached mail follows:
Hi,
Does any one know where can I get free webhosting, like Geocities.com, but that suports PHP.
thanks
Rene
attached mail follows:
Greetings Rene,
Check out :
http://www.faqts.com/knowledge-base/view.phtml/aid/4058/fid/27
Regards,
Philip Olson http://www.cornado.com/
On Wed, 28 Feb 2001, Rene Maldonado wrote:
> Hi,
>
> Does any one know where can I get free webhosting, like Geocities.com,
> but that suports PHP.
>
> thanks
>
> Rene
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
thanks for the info... well..... what i did was to fread the files and store them using sessions variables..... at the end of the process. .. i do a walk thur the array and insert them into the DB...
john
John LYC wrote:
> hi..
> i have a form that allow users to upload several image files.
> every time they submit, i do fread them and assign them to an array...
> this array will be passed on until user confirmation.. then i insert
> into database as blob type....
>
> //freed image file and assign to array.
> $diagram[$ind] =
> addslashes(fread(fopen($HTTP_POST_FILES["QuestDia"]["tmp_name"][$ind],"r"),
>
> //to facilitate posting of any existing array of the above to the next
> form...
> for($ind=0;$ind < count($diagram);$ind++)
> print "<input type=\"hidden\" name=\"diagram[$ind]\"
> value=\"".$diagram[$ind]."\">";
>
> the script will bring user back to the form and allow them to upload
> more...
>
> the 2nd time round, i have got error..
> i see parts of $diagram being displayed out... meaning funny characters
> are displayed..
> once $diagram is insert into database,,, the pic is corrupted..
> it works fine if the form does not repeat.. meaning user post images and
> database is updated straight away.
> can someone tell me wat's wrong?
>
> john
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I would like to know how to add form array values to a mail message.
I have my form defined as follows:
select form name set as:
<select name="Destination[]" size="3" multiple> <option value="Not sure">Not sure</option> <option value="Acapulco">Acapulco</option> <option value="Alabama">Alabama</option> <option value="Arizona">Arizona</option> <option value="Bahamas">Bahamas</option> <option value="Baja">Baja</option> </select>
I am not sure how to pull the values from the Destination array
Here is some code that does not work: (this script is adding the form info to a mail message)
$msg .= "Destination:\n"; $i = 0;
if ($Destination[$i] !="") {
do { $msg .= "\t$Destination[$i]\n";
$i == $i + 1; }
while ($Destination[$i] !="");
}
I receive an out of memory message -- must be adding the same value over and over...or something
attached mail follows:
Hi Claudia,
Something like :
$msg = 'Destination :'; foreach ($Destination as $place) {
$msg .= "\n\t $place"; }
Regards,
Philip Olson http://www.cornado.com/
On Wed, 28 Feb 2001, Claudia wrote:
> I would like to know how to add form array values to a mail message.
>
> I have my form defined as follows:
>
> select form name set as:
>
> <select name="Destination[]" size="3" multiple>
> <option value="Not sure">Not sure</option>
> <option value="Acapulco">Acapulco</option>
> <option value="Alabama">Alabama</option>
> <option value="Arizona">Arizona</option>
> <option value="Bahamas">Bahamas</option>
> <option value="Baja">Baja</option>
> </select>
>
> I am not sure how to pull the values from the Destination array
>
> Here is some code that does not work: (this script is adding the form info
> to a mail message)
>
> $msg .= "Destination:\n";
> $i = 0;
>
> if ($Destination[$i] !="")
> {
>
> do
> {
> $msg .= "\t$Destination[$i]\n";
>
> $i == $i + 1;
> }
>
> while ($Destination[$i] !="");
>
> }
>
> I receive an out of memory message -- must be adding the same value over and
> over...or something
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
PHPSlash is really goodd, although user management won't be out until .7 and .6 was just released. PHPNuke has usermanagement, but from what I hear its not all that customizable.. Check out phpslash at www.phpslash.org.. they aren't running phpslash on that site currently due to DB difficulties with the host (i.e., requested the DB and am still waiting..)
Matt "Trollboy" Wiseman
www.shoggoth.net/trollboy/trollboy.jpg
Trollboy
shoggoth.net
"I wish the world had one throat!!"
-Al Bundy
----- Original Message -----
From: "Jaxon" <jaxon
salamander.net>
To: <php-general
lists.php.net>
Sent: Thursday, February 22, 2001 4:57 PM
Subject: [PHP] best slashdot?
> I hate to post flamebait, but I genuinely want to know -
> what have people liked as far as a slasdot style PHP apps?
>
> I would love one that has integrated user management and mailing lists :)
>
> TIA, and sorry for the YAWIB (yet another which-is-best) post.
>
> regards,
> jaxon
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
> PHPSlash is really goodd, although user management won't be > out until .7 and .6 was just released. PHPNuke has usermanagement, > but from what I hear its not all that customizable.. Check out phpslash > at www.phpslash.org.. they aren't running phpslash on that site currently > due to DB difficulties with the host (i.e., requested the DB and am still > waiting..)
I'm evaluating PHPNuke at the moment. It certainly seems to have the goods on customisation.
Besides which, you can always edit and fiddle :)
Jason
-- Jason Murray jasonmmelbourneit.com.au Web Design Team, Melbourne IT Fetch the comfy chair!
attached mail follows:
I have created a program using PHP3 and MYSQL. I want to use cron job to automatic update the document become active after all the related document become active.
Can you please give me some idea how to start? I really don't have any idea. Please teach me.
Thanks Wendy
attached mail follows:
Wen, I'm not clear on what you're looking for. You want to schedule something in cron to run a script that does what? Cron is a unix scheduling tool, via which you can trigger shell scripts to occur at specific intervals/points in time.
Sounds like what you may want is a script that acts only after some other actions are complete. You could do that by building a script that checks periodically (presuming there is some trigger to check for) and effects only when found.
For instance, you can build a unix shell script like this:
#! /bin/tcsh /usr/local/bin/mysql -t -uUSERNAME -pPASSWORD DATABASE <<QUERY_INPUT select CRITERIA from TABLE; QUERY_INPUT
then execute it via cron, piping the output to a file. Making it do what you want depends on what you want to do, and may require appropriate knowledge of cron, mysql and php. Start with "man cron", www.php.net and www.mysql.com.
On Thu, 1 Mar 2001, Wen Ni Leong wrote:
> Date: Thu, 01 Mar 2001 11:07:30 +0800
> From: Wen Ni Leong <wnleong
mail.tke.po.my>
> To: "php-general
lists.php.net" <php-general
lists.php.net>
> Subject: [PHP] newbie:cron job
>
> I have created a program using PHP3 and MYSQL. I want to use cron job
> to automatic update the document become active after all the related
> document become active.
>
> Can you please give me some idea how to start? I really don't have any
> idea. Please teach me.
>
> Thanks
> Wendy
>
Kelly
303-444-1671 Boulder, Colorado
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I have created a program using PHP3 and MYSQL. I want to use cron job to automatic update the document become active after all the related document become active.
Can you please give me some idea how to start? I really don't have any idea. Please teach me.
Thanks Wendy
attached mail follows:
"automatic update the document become active after all the related document become active."
unsure what your meaning here. cron is used to run a script once and hour/day/week/month etc, you can spec it differnet, but this is a standard system. on my redhat system
/etc/cron.daily/
just place a file in there
/etc/cron.daily/backup
set the execuatable bit
chmod +x /etc/cron.dail/backup
edit the file
nano /etc/cron.daily/backup
put some stuff in there.
/usr/local/bin/php -q /home/httpd/vhosts/somesite/somefile.php
put some stuff in /home/httpd/vhosts/somesite/somefile.php
<?php
phpinfo();
?>
have fun.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
lee
mediawaveonline.com
"Wen Ni Leong" <wnleong
mail.tke.po.my> wrote in message news:3A9DCCBB.FE1E1A7D
mail.tke.po.my...
I have created a program using PHP3 and MYSQL. I want to use cron job
to automatic update the document become active after all the related
document become active.
Can you please give me some idea how to start? I really don't have any
idea. Please teach me.
Thanks
Wendy
--------------------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
For additional commands, e-mail: php-general-help
lists.php.net
To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Okay - Im writing an object to wrap a database. The key problem is this: - it declares a connection var as an object property - the open() function opens the connection to the database and stores the handle in $this->connection - the executeQuery() method complains about not having a valid handle, because by then, somehow, $this->connection==null!!!
Any ideas?-i swear its just something stupid ive missed ...
HELP!
Thanx in advance, AndrewH
------------------------------------------------------------- The code following this returns the following to the browser: ------------------------------------------------------------- The connection in open() is :Resource id #1 The connection in executeQuery() is :''
Warning: Supplied argument is not a valid PostgreSQL link resource in /var/wwwroot/php/PostgreSQLDataSource.php on line 67
-------------------------------------------------------------
class PostgreSQLDataSource { var $connection; var $lastResultSet; var $error_handler;
var $host, $port, $username, $password, $database;
function PostgreSQLDataSource($host, $port, $username, $password, $database) { global $error_handler; $this->error_handler = $error_handler;
$this->host = $host; $this->port = $port; $this->username = $username; $this->password = $password; $this->database = $database;
//Legacy behaviour: $this->open($host, $port, $username, $password, $database); }
function open(/*variable arg list*/) { $connectionString = "";
if (func_num_args() == 5) { $this->host = func_get_arg(0); $this->port = func_get_arg(1); $this->username = func_get_arg(2); $this->password = func_get_arg(3); $this->database = func_get_arg(4); }
if ($this->host) $connectionString .= " host=".$this->host; if ($this->port) $connectionString .= " port=".$this->port; if ($this->username) $connectionString .= " user=".$this->username; if ($this->password) $connectionString .= " password=".$this->password; if ($this->database) $connectionString .= " dbname=".$this->database;
$this->connection = pg_Connect($connectionString); echo "The connection in open() is :".$this->connection."<BR>"; if ($this->connection == false) return false; else return true; }
function close() { return pg_Close($this->connection); }
function executeQuery($queryString) { echo "The connection in executeQuery() is :'".$this->connection."'<BR>"; $this->lastResultSet = pg_exec($this->connection,$queryString); return new Iterator($this); }
/*PRIVATE FUNCTIONS:*/ function getRow($row) { return pg_fetch_array($this->lastResultSet,$row); }
function getResultLength() { return count($this->lastResultSet); } }
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]