Re: [PHP] First PHP

2002-11-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Khalid El-Kary) wrote: > http://www.php.net/manual/en/history.php#history.php First public announcement of PHP by Rasmus: -- CC -- PHP General Mailing List (http://www.php.n

Re: [PHP] fullname

2002-07-30 Thread CC Zona
In article <001301c23799$2deb3b30$100a0a0a@skink>, [EMAIL PROTECTED] (David Freeman) wrote: > > is there some other easyer way to do in one line than this?: > > > > $fullname = $session["f_name"]; > > $fullname .= " "; > > $fullname .= $session["l_name"]; > > $fullname = $session["f_n

Re: [PHP] extending class then calling its original function

2002-08-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Wong) wrote: > On Wednesday 31 July 2002 18:36, lallous wrote: > > Hello when I extended a class and overwrite a function, can i after > > overwriting that function call it so it does what it used to do? > > > > for example in Delphi I say

Re: [PHP] include hassle

2002-08-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Lallous) wrote: > how can i programmatically set the include path? http://php.net/ini-set -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Include php code as variable

2002-08-03 Thread CC Zona
In article <00d501c23ada$87050590$3404a8c0@alawi>, [EMAIL PROTECTED] (Alawi) wrote: > How can I Include my php code code as variable and excute it ? include() can return a value, assignable to a variable. Some other ways to get the content of a file (I assume that's why you're saying "includ

[PHP] Re: flaking out on foreach

2002-08-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Robert McPeak) wrote: > Why is this code: > > > $bob=array(1,2,3,5,6); > > foreach($bob as $foo); > { > echo "$foo";

Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jule Slootbeek) wrote: > Yeah that's the path to where php.ini should be (/usr/local/lib, in my > case, but the Jaguar version of PHP doesn't use a php.ini file, so > there's nothing there. Jaguar uses php.ini if it's in the expected location

[PHP] Re: Regular Expressions Help

2002-06-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (J. Younker) wrote: > Hi, > I'm trying to use eregi_replace to check a user-submitted URL, but I > keep getting the following error message: > Warning: Invalid range end in /var/www/html/_db_db/db_input.php > This what I'm using: > $pattern = "(h

[PHP] Re: preg_replace

2002-06-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Gerard Samuel) wrote: > When you think you got it, you don't get it.. > Im trying to scan the link for =A-Z0-9_=, dump the '=' and evaluate the > remainder as a defined constant. > Yes its funny looking, but if I could get this going Im golden.

[PHP] Re: translate perl unpack to php equivalent

2002-06-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Danny Kruitbosch) wrote: > How would I translate this perl unpack statement to the php equiv. > > my ($salt, $xor) = unpack('a2 a*', $something) http://php.net/unpack -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Is this a BUG?

2002-06-23 Thread CC Zona
In article <000c01c21b02$4b69e1b0$1aed0dd1@gateway>, [EMAIL PROTECTED] (César aracena) wrote: > I have a mainusers.php page, which only calls for functions > instead of writing them all together inside that page. At one step, it > calls for an “adduser” function which brings a table that let th

[PHP] Re: How to put these 2 IF statements into 1, with regex?

2002-06-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I was wondering if there is anyway to combine these two IF statements > into one: > > if (preg_match("@siteUserList.cgi?group=site177@", $QUERY_STRING)) > > and: > > if (preg_match("@siteUserList.cgi?group=site177&@", $QUERY_STRING

[PHP] Re: PHP with CSS

2002-06-30 Thread CC Zona
In article <001101c220b8$5338fc30$768c3841@c3>, [EMAIL PROTECTED] (Bruce Karstedt) wrote: > Quick question? > > Is their anything in Apache or PHP that would keep styles from working. Both > external (CSS) and inline styles are ignored. If it was the only the external stylesheet that wasn't wo

[PHP] Re: preg_match or not?

2002-07-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Steve Fitzgerald) wrote: > I have been struggling for a couple of hours now trying to write a > preg_match expression to validate a dollar amount - the user may or may > not put in the decimals so I want to allow only digits plus a possible > pe

[PHP] Re: Does not work

2002-07-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Saci) wrote: > I tried this simple code > > > > Page refered by > echo $HTTP_REFERER.''; > echo $_SERVER['HTTP_REFERER'].''; > ?> > > > > and I receive blank reply even if referenced from a link from other site. > > What am i doing wrong

[PHP] Re: Regular expression for correcting proper nouns

2002-07-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Henry) wrote: > I'm looking for a simple was to correct a list of proper nouns given all in > lower case! > > For example > > given $string="london paris rome"; > > I would like "London Paris Rome". > > However there is one cavet; if the wor

[PHP] Re: preg_replace_callback

2002-07-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Rafael Fernandes) wrote: > First, sorry for my elementary english... > I need a function made for PHP3 that works like preg_replace_callback... Before preg_replace_callback() was introduced, preg_replace() used to have another an "f" modifier

[PHP] Re: mod_rewrite problem

2002-07-18 Thread CC Zona
In article <003d01c22e58$dcb45240$6601a8c0@yourwrjlo8t8dt>, [EMAIL PROTECTED] (Adrian Murphy) wrote: > the following code redirects www.usersite.mysite.biz to > www.mysite.biz/users/sites/usersite > > the problem is when the 'www' is left out it doesn't work. > RewriteEngine on > RewriteCond

[PHP] Session cookies appearing where there is no session

2001-01-15 Thread CC Zona
This must sound pretty far-fetched, but as far as I can tell, my site is attempting to set a session cookie from any and all PHP pages, even when the page has no calls to session_* functions and where there were also no previous visits to pages with such calls. Where is the setting that is in

Re: [PHP] Session cookies appearing where there is no session

2001-01-15 Thread CC Zona
(responding to myself) In article <93uoh9$613$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (CC Zona) wrote: > This must sound pretty far-fetched, but as far as I can tell, my site is > attempting to set a session cookie from any and all PHP pages, even when > the page has no ca

Re: [PHP] FW: Cookies, Dammit!

2001-01-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Richard S. Crawford") wrote: > The problem is that the main page doesn't use an include file of any sort; > it's straight HTML which is frequently updated by hand. I agree that it > would be nice if /index.htm had an include file that containe

Re: [PHP] db backup script needed

2001-01-18 Thread CC Zona
In article , [EMAIL PROTECTED] (Maxim Maletsky) wrote: > anyway, is there any script like that (fast and dirty is ok) to run on > MySQL, PHP4.0.2 ? What about putting a mysqldump call into a crontab? -- CC -- PHP General Mailing List (http:

Re: [PHP] Ethics question...

2001-01-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Frank Joerdens) wrote: > > > But why would Microsoft be using PHP? =D > > > > Why would Microsoft be using Solaris, or Linux even? (hint, the same > > reason -- their stuff works less good). > > Do you know for a fact that they do? If so, how

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Team JUMP) wrote: >$num=count($bannedwords); > for($i=0;$i<$num-1;$i++) > { > $string = > eregi_replace("\b$bannedwords[$i]\b","[censored]",$string); > } > > > For whatever reason, no wor

Re: [PHP] " " charactor problem

2001-01-21 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Rick Ridgeway) wrote: > > > I grab this line and try to make it an array like this: > > print "line: $thelinefromfile\n"; //Check the line > > > $var1 = trim($thelinefromfile); > > > $var2 = split(" ", $thelinefromfile); > > > $count = cou

[PHP] Need key() equivalent for string variable

2001-01-22 Thread CC Zona
I'm trying to pass a string variable to a custom function, echoing its *value on one line, and its *name (that is, its key if this were an array instead of a string) on another line. I searched the manual's sections on variable functions and string functions, to no avail. I tried key(), but i

Re: [PHP] Need key() equivalent for string variable

2001-01-22 Thread CC Zona
In article <069f01c084ca$1642a320$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Richard Lynch") wrote: > > I'm trying to pass a string variable to a custom function, echoing its > > *value on one line, and its *name (that is, its key if this were an array > > I think you are looking for "variable var

Re: [PHP] check null value

2001-01-23 Thread CC Zona
In article <019301c08581$e9504080$6400a8c0@alsmpdc>, [EMAIL PROTECTED] ("Jacky@lilst") wrote: > If I have one input text box that when it is submitted to next page, I want > to check first if it is nothing, then write "na" on next page, else just > echo whatever it is, is it correct to do this

Re: [PHP] error with REPLACE or UPDATE

2001-01-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > $connect = mysql_connect(xx); or die ("dBase not connect.") > $sql = "REPLACE CLIENT SET ID = \"$id\", ITEM = \"$item\", TITLE > =\"$title\", AUTHOR = \"$author\", PUBLISHER = \"$publisher\", DELIVERY > = \"$deli

[PHP] --with-mysql, yet mysql_errno() is "undefined"?

2001-01-24 Thread CC Zona
I use mysql_* functions all the time, PHP was definitely compiled --with-mysql, yet for some reason I'm getting "Fatal error: Call to undefined function: mysql_errorno()" for this one mysql function. Ex.: mysql_query($query,$connect); //echo of $query is successful at commandline, and $con

Re: [PHP] Genuine Opportunity

2001-01-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ernest E Vogelsinger) wrote: > Hi Postmaster, > > how about letting onl people post to the list who are subscribed to? For some of us (who don't abuse the list by posting spam), the news interface to such a busy list is a godsend. Forcing ev

Re: [PHP] file handle error? or something else?

2001-02-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("rick - SomersNet, Inc.") wrote: > $sp=fsockopen($host,80) or brake; > socket_set_timeout($sp, 600) or brake; > fputs($sp,"GET $filename HTTP/1.1\n") or brake; Hmm. What's that 'or brake' stuff? 'brake' is used as a constant, b

Re: [PHP] extract() help

2001-02-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jaxon) wrote: > the following function is supposed to build an html table, creating a > content row for every row in a database table. It is creating a table with > the correct number of rows, but NO content is being echoed... > $sql="

Re: [PHP] Unwanted Characters

2001-02-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joe Stump) wrote: > Look at the chr() function - figure out what the character is (number wise) > and > then do an ereg_replace(chr(),'',$string) (from the hip - you can do a > replace > with chr() on one of the replaces, I've done it before)

Re: [PHP] Join causing Error?

2001-02-25 Thread CC Zona
In article <030601c09f05$2b9e6e70$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Keith Spiller") wrote: > Can anyone tell me why this: > Line 282mysql select db("centraldb",$db); > Line 283$qorder++; > Line 284$result = mysql query("SELECT q.questid, q.question, q.answer, > q.qord

Re: [PHP] so what program?

2001-02-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Knasen) wrote: > What I found out in my first mail to the list was..quit working with > filmaker =). Sure, I can do that. But the question remains..what program > WILL a macuser use to forfill the needs in MySQL/PHP? Don't quit working with file

Re: [PHP] How to wrap output of formatted text

2001-02-27 Thread CC Zona
In article <05d201c0a069$4877e0c0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Clayton Dukes") wrote: > $row = mysql fetch array($sth); > > if ($row[0] != "") { > echo $row[0]; > > prints the data, but some of the results are long strings of text that don't > wrap in the browser, how can I

Re: [PHP] Caller's __LINE__

2001-02-28 Thread CC Zona
In article <97ifmk$p85$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("elias") wrote: > function debuginfo($msg) > { > echo"the message is $msg, at line" . __LINE__ . " "; > } > > in my code: > line 1 > line 2 > line x: debuginfo("hello!!!"); > > is there is anyway to show the caller's line n

Re: [PHP] checking for a defined function

2001-02-28 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (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 -- PHP General Mailing

Re: [PHP] Pluralize a word for searching a database

2001-02-28 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (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" <[EMAIL P

Re: [PHP] multiple query in 1 select ?

2001-02-28 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jack Sasportas) wrote: > lets say we have a database with the State Names and cities, and I > wanted to select all the cities in FL I would execute something like > this > mysql_query("SELECT * FROM cities WHERE state='FL'"); > and lets say ther

Re: [PHP] Need Function generating integers

2001-03-01 Thread CC Zona
In article , [EMAIL PROTECTED] ("M. A. Ould-Beddi") wrote: > I need a sequence of small integers for primary > keys in mysql tables; I want php to generate them. > How can I do that? A sequence of integers for the primary of a table in a mysql

Re: [PHP] The neverending Session

2001-03-01 Thread CC Zona
In article <01030114311802.11459@kilbourne>, [EMAIL PROTECTED] ("Sean B.") wrote: > I'm working on a chat of sorts, and in the main frame that shows the actual > messages, there is an infinite loop (while(1)) ... now, for whatever reason, > when the browser is closed, the loop/thread/whatever

Re: [PHP] HREFs that can't be

2001-03-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Boget, Chris") wrote: > Here > There > This Place > That Place > > --- > > As you know, those variables are being passed to the > linked page via GET variables. Now, here comes the > oddball question: > > How can I (is it even possi

Re: [PHP] HREFs that can't be

2001-03-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Boget, Chris") wrote: > Also, how would I set the (previously GET) vars up as session > variables? I'd have to post to yet another script which > would set the session variables and in turn SUBMIT (with just > the SESSID this time) to the actu

Re: [PHP] HREFs that can't be

2001-03-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > > > Also, how would I set the (previously GET) vars up as session > > > variables? I'd have to post to yet another script which > > > would set the session variables and in turn SUBMIT (with just > > > the SESSID this time) to the actua

Re: [PHP] Simple question!!!

2001-03-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ricardo D'Aguiar) wrote: > Imagine the following script: > > > Some Title > > $var = 1; > if ($var == 1) { > die ("I'm dead"); > } > echo "I'm alive"; > ?> > > > > If I try to execute via Internet Explorer ("5.x")

[PHP] Extract() with 2D array

2001-03-03 Thread CC Zona
Does extract() work on multidimensional arrays? IOW, I have an array like... array($elem1=>array($val1,$val2),$elem2=>$val3) ...from which I'd like to extract $elem1 and $elem2. Should this be possible with extract()? The docs just say the function takes an array as a parameter, but don't

Re: [PHP] Inserting DATE in mySQL!!

2001-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Thomas Edison Jr.") wrote: > I'm using the following code to insert date into my > mySQL table named "Booking". I've created variables > that store the date with dashes "-" seperating them. > But it's not working. It's giving me an error on th

Re: [PHP] help functions

2001-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Montgomery-Recht, Evan") wrote: > Has anyone spent any time and thought into including help within the > library, ie. so you could do a. > > mysql.connect().help() or something like that so as a developer addeds a new > function we as end use

Re: [PHP] Inserting DATE in mySQL!!

2001-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Hardy Merrill) wrote: > > or die ("MySQL says: " . mysql_errorno() . " " . mysql_error() . "\nPHP > ^ > > Just a technicality, but I think I remember this to be > mysql_errno(). But CC is right - in yo

Re: [PHP] Quick Regex Question

2001-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Jeff Oien") wrote: > if (preg_match("/[a-Z],[a-Z]/",$text)) { > > Can you tell me where I'm failing here. I want to do something > if the string has commas in between words with no spaces. > Like: > > blah,blah,blah "Does it have *any insta

Re: [PHP] Still an Almost working Regex

2001-03-06 Thread CC Zona
In article <002d01c0a69a$ea2c9aa0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Murray Shields") wrote: > $Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, > $List)); > > It is definitely working as expected. > > I need to add the square brackets [ ] to the above list of all

Re: [PHP] removing and item out of a string

2001-03-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Brian C. Doyle") wrote: > I need to remove a comma from inside of 2 quotes ie "1,234.56" I need to > change that to "1234.56" > Unfortunatly I can not do reg_replace(",","","1,234.56"); Possibly because the function is called ereg_replace()

Re: [PHP] HELP with Multi Dimensional Array Problem

2001-03-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Yev) wrote: > So, it sees $name="field[text][email]", and attempts to retrieve the > value, so in essense $HTTP_GET_VARS[$name] should return > "[EMAIL PROTECTED]", but it doesn't work.. > However, if i try to access $HTTP_GET_VARS[field][text

Re: [PHP] Error codes from 'mysql_error()'

2001-03-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dennis Gearon) wrote: > I do an insert using phpadmin, and i get back the error message (or > maybe it's a warning?) The insert is of a duplicate on a unique field. I > expected an error, but when I do mysql_error() or mysql_errno(), nothing > c

Re: [PHP] Multiple Inserts

2001-03-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > $SQLStatement = "INSERT INTO Members (Email) VALUES ('".$GetEmails[$a] ."')" > or die ("Problem"); > $db = mysql_select_db($dbase, $connection); > $SQLResult = mysql_query($SQLStatement); Whoa, you're mixing apples with oranges. Try:

Re: [PHP] search a text file

2001-03-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > I've got a bit of a task where I need to poll a text file for several lines > of text which is buried deep within the file. These lines change each day, > but the text surrounding them do not. > > Is it possible to extr

Re: [PHP] search a text file

2001-03-12 Thread CC Zona
[quotes returned to bottom-posting, for clarity] In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > In article > <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Peter Benoit) wrote: > > > I've got a bit of a task where I need to poll a text file for several > lines > > of t

Re: [PHP] In my attempt to read from a text file...

2001-03-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > I'd like to search inside the text file for my name, then pull all the info > from that point till the next name which is Fred. > > The text file would be called names.txt > > > So I'm trying to > > preg_match("Peter

Re: [PHP] search a text file

2001-03-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > Very good info, but this text is located in a text file. How can I > reference it this way? Get the contents of the text file--for example, using fopen() with fread()--into a variable. Then use that variable as the se

Re: [PHP] Getting location bar and stripping file-ending of a string..

2001-03-13 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aviv Revach) wrote: > 2. Let's say I have a string such as: > "http://www.blabla.com/dir1/dir2/file.php3", > How can I can strip the file-ending(".php3") out the string? Option 1: parse_url() Option 2: strpos() & str_replace() Option 3: e

Re: [PHP] Finding existence of a value in a table

2001-03-13 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dennis Gearon) wrote: > I would like to return ONE ROW if possible from a query that would tell > me > whether a value exists in a table. If the query could result in more than one record, but you only want to see one, 'limit 1' is helpful.

Re: [PHP] that whole system() thing again

2001-03-15 Thread CC Zona
[quotes reordered and trimmed] In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Daniel Lynn) wrote: > > > apparently system() and exec() and all tha can't be called from php > > > if it is runnig as an apache mod.. > the person in charge of teh server came to this conclusion for us and >

Re: [PHP] Stripping Single Quotes

2001-03-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Elan) wrote: > I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I > strip the embedded single quotes) with a minimum of overhead? If there's no chance that the string could also contain legit single-quotes (such as as an apo

Re: [PHP] just wondering ....

2001-03-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Peter Houchin") wrote: > If I have a email script and use the mail() function ... am i able to do > this .. > > mail(values); > if ($mail=1){ > do this > } > else { > error > } Are you trying to test whether mail() returned true? if (mail(va

Re: [PHP] Couple Questions

2001-03-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (acleave) wrote: > 1) How do I return multiple data types at once from a function? For > instance > I might want to return 5, "apple", and true (an int, a string, and a boolean) > all at once from a function. return array(5, "apple", TRUE);

Re: [PHP] Couple Questions

2001-03-20 Thread CC Zona
In article <9984hb$c4e$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (CC Zona) wrote: > And while I haven't actually tried this, I assume that anyone could write > their own HTTP_REFERER simply by using fsockopen(). Thanks to PHP's ease > of use, using fsockopen does no

Re: [PHP] mail() question

2001-03-20 Thread CC Zona
In article <00be01c0b175$1cee4080$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Wade DeWerff") wrote: > is there a way to do this in a mail() ? I need to add the $Phone and $Email > variables too the $message, but I need to format it so that it is on a new > line in the emailI tried using and /

Re: [PHP] enum and set possible values

2001-03-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Michael George) wrote: > So if I have an enum with possible values "Yes" and "No" or a set with > possible values "Single", "Married", "Divorced", "Widowed", I seek a function > that will return an array of strings containing those possible valu

[PHP] Catch timeouts

2001-03-20 Thread CC Zona
I'm resetting set_time_limit() with each iteration of a rather long loop. Right now when the script reaches its time limit I sometimes end up getting just a blank page. Even though I call flush() within each iteration and do lots of error checking along the way, it seems to not be enough.

Re: [PHP] Catch timeouts

2001-03-20 Thread CC Zona
In article <998dqa$akd$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (CC Zona) wrote: > I could have sworn I once saw a function that would check whether the > script was being cancelled because a timeout had occured, thereby allowing > you to make a more graceful exit from the scr

Re: [PHP] PCRE vs. POSIX

2001-04-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (bill) wrote: > i have been using perl for quite some time, but after getting used to > php4, i think it rocks. > > i am wondering which is better, performance-wise, when trying to match the > same text: PCRE or POSIX extended in php4? PCRE. -

Re: [PHP] MySQL Query Question

2001-04-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Jeff Holzfaster") wrote: > I have a couple questions... first, is there a notable MySQL General List > like this one? Yes. The list on mysql.com is quite active and, like this one, it's common to get responses directly from one of the develo

[PHP] fwrite not writing

2001-04-15 Thread CC Zona
This function suddenly stopped working, and I just can't seem to figure out why. The only change made recently is that now the value of $force at calltime is sometimes true instead of being undefined or null. build_file("file_content","/path/to/file.inc","w",TRUE); function build_file($func

Re: [PHP] MySQL Query Question

2001-04-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Jeff Holzfaster") wrote: > This works: select date_format(date, "%W, %e %M %Y") as date from table > This doesn't: select concat(date_format(date, "%W, %e %M %Y")," ",time) as > time_of_day > > I'm wondering if it is possible to use concat i

Re: [PHP] fwrite not writing

2001-04-16 Thread CC Zona
> > This function suddenly stopped working, and I just can't seem to figure > out > > why. The only change made recently is that now the value of $force at > > calltime is sometimes true instead of being undefined or null. > > > > build_file("file_content","/path/to/file.inc","w",TRUE); > > > > f

Re: [PHP] dates

2001-04-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Alvin Tan") wrote: > a little stuck here. trying to pull a bunch of unix timestamps out and show > only those that show up today. problem is that when i hit the first match, > the rest of the dates don't show. code follows: > > ===

[PHP] What does "url_rewriter.tags" do?

2001-04-16 Thread CC Zona
>From v4.0.4 change log "Added url_rewriter.tags configuration directive (Sascha)" The option shows up in my phpinfo with default settings "a=href,area=href,frame=src,form=fakeentry", but I can't find any info on what this setting does. The change log entry seems to be the only reference to i

Re: [PHP] What does "url_rewriter.tags" do?

2001-04-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Emil Rasmussen) wrote: > > Subject: [PHP] What does "url_rewriter.tags" do? > > > What does it do? > > > url_rewriter.tags is a list of HTML elements that will get the PHPSESSID > added to them. Its all about sessions: > http://www.php.net/ma

Re: [PHP] fwrite not writing

2001-04-16 Thread CC Zona
s it does. Right now, unfortunately, the file remains empty. I'm trying to fill it with a large block of dynamically generated HTML which will then be used as a static include file for current and subsequent requests. > "CC Zona" <[EMAIL PROTECTED]> wrote in message >

[PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
Suggestions so far have focused on parts of the function other than fwrite, so I'm trying again with a stripped-down example. After spending many hours trying to make this very simple function work again, I'm beginning to think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it

Re: [PHP] include files with PHP 3.0.16

2001-04-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Tim Thorburn) wrote: > Is there an equivalent to in PHP? And > will it work in version 3.0.16. I've gone through the online manual but > found nothing that would help in this situation. http://php.net/manual/en/function.virtual.php -- CC

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
ty string on the next pass). No to those too. > - Original Message - > From: "CC Zona" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, April 16, 2001 5:34 PM > Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, > Apache/1.3.14

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
In article <006701c0c699$ad65cdc0$8b1412d1@null>, [EMAIL PROTECTED] ("Chris Anderson") wrote: > come to think of it, why are you passing 3 arguements to fwrite()? Whoops! That's a typo left over from the last round of tests, adding every optional argument just in case something wasn't really

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
In article <012101c0c69b$b01b8d00$8b1412d1@null>, [EMAIL PROTECTED] ("Chris Anderson") wrote: > I tried it, even with the byte length identifer it worked perfectly for me. > As a last ditch effort try changing the w to w+. If not then it sounds like > a configuration issue for the webserver or p

Re: [PHP] Is there such an array like $array[][]?

2001-04-17 Thread CC Zona
In article <9bhrri$sn9$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > Just another option, but feel free to use multi-dimensional arrays. Just be > aware that PHP supports only two dimensions (so $array[][][] will not work), > and if you try and get fancy with sort() and count() you

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread CC Zona
In article <9bho4e$r7p$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > Also be extremely careful about the use of and browser sniffing. > So many sites do something classically stupid so that when someone sees > their site in a search engine, the description is "Your browser does no

Re: [PHP] Last 10 rows

2001-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Randy Johnson") wrote: > How do I get the last 10 rows in a table? {select clause} order by {fieldname} desc limit 10 -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] Is it possible to parse a variable by character?

2001-04-17 Thread CC Zona
In article <9bjcj6$dg6$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Yasuo Ohgaki") wrote: > I'm not sure if accessing string as array is going to be depreciated or not. > (Or is it already depreciated???) I made a note of this a while ago when it came up on the list, because initially it sounded to

Re: [PHP] global sessions

2001-04-18 Thread CC Zona
In article <9bjvo1$irv$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Ben") wrote: > i'm trying to use sessions with my project, but it seems that registered > variables in a session aren't global by default. They should be. Can you show an example of the code that leads you to believe they're not?

Re: [PHP] search results return by relevancy

2001-04-19 Thread CC Zona
However, note that MySQL does not include stopwords in the FULLTEXT index --and it currently considers any word of three characters or less to be a "stopword". So if you really are searching for words as short as "cat", this isn't the solution (or else you're going to need to make some modifi

Re: [PHP] SQL Select Unique() ?

2001-04-19 Thread CC Zona
In article <9bng4u$ftc$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("James, Yz") wrote: > $sql = "SELECT * FROM table WHERE category LIKE 'Public House / Restaurant' > OR description LIKE 'Public House / Restaurant'"; > > Surely that would bring the same row back twice Surely not. Have you trie

Re: [PHP] Warnings w/ !$var!?

2001-04-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Nicholas Pappas) wrote: > When I check a variable (say, in a if() statement) via !$var, I get a > Warning message printed saying that it is not initialized (if that is > the case)... well, that's part of the reason why I bloody doing the

Re: [PHP] Re: Regular Expressions?

2001-04-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("yanto") wrote: > (eregi("([0-9][a-z][A-Z]\.[0-9][a-z][A-Z]", $myArray[x])) > > and don't use character '^' in front of the pattern. (Note that since the parentheses are unbalanced, the above will thorw a parse error.) Since it's eregi, you

Re: [PHP] I'm a moron. So?

2001-04-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Dddogbruce \(@home.com\)") wrote: > A friend told me something about > "seeding" for random() but I didn't find anything on that. Umm, where did you look? 'Cuz the manual page on rand()--the function which you are using to generate the rando

Re: [PHP] bug, querk, or mistake?

2001-04-21 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Adam Charnock") wrote: > The following if statement always claims to be false. > However, I print out the variables in the if (which are strings) and they > are identical. Here it is: > > if($reqcat["indexname"] == $row["maincat"]) It w

Re: [PHP] Buttons and such...

2001-04-21 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("PHPBeginner.com") wrote: > See, that's for the website. You often don't want to look same as others, do > you? Then you should be making the buttons yourself, perhaps on a sexy Mac > OS X with some PhotoShop or Fireworks. > > OK, nor even I ma

Re: [PHP] what's wrong with this?

2001-04-22 Thread CC Zona
In article <9btgks$fc6$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("McShen") wrote: > $start is passed by the url. like http://mydomain.com/links.ph?start=0; > $end =$start+15; > > $query = "SELECT * FROM refer ORDER BY hits desc LIMIT $start,$end"; > > it didn't work. Please help. Perhaps if you

Re: [PHP] is there something like get_time_limit() ?

2001-04-22 Thread CC Zona
In article <9bvs8e$g9p$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("almir") wrote: > is it possible to get time limit of script on server ? Since the "max_execution_time" can be set in php.ini, the current value should be displayable with a call to phpinfo(). I expect you can also check that valu

  1   2   3   4   5   >