Re: [PHP] ereg is failing on this simple test

2003-12-13 Thread Eugene Lee
On Fri, Dec 12, 2003 at 07:54:16PM -0800, Manuel Ochoa wrote: : : Why is this test failing? : : $data = "A Simple test."; : If (ereg("^[a-zA-Z0-9\s.\-_']+$", $data)) { : echo "Valid text"; : } : else { : echo "Not valid text"; : } You can't use the character class "\s" within a range. And

Re: [PHP] Email problem

2003-12-15 Thread Eugene Lee
On Mon, Dec 15, 2003 at 12:05:54PM -0800, Naveen Glore wrote: : : I have freebsd server with apache, PHP and mysql. i wrote a simple PHP : program using mail(). The mail() function returns true without any : error. but the problem is the email is never delivered. I viewed the : log file for mail(/

Re: [PHP] Email problem

2003-12-15 Thread Eugene Lee
On Mon, Dec 15, 2003 at 12:58:17PM -0800, Naveen Glore wrote: : : thanks for the quick response. I have the same permissions as yours. : My email server is working fine, i use sendmail MTA and outlook MUA. I : am able to send emails and view my received emails in outlook through : my server. But I

Re: [PHP] Round() behaviour issue

2003-12-16 Thread Eugene Lee
On Tue, Dec 16, 2003 at 11:13:25AM +, Scott McDaid wrote: : : Hi there. I've been looking at the behaviour of the round functionality in : PHP. We're currently still using v4.2.3, (but the documentation seems to : suggest it's the same for versions after this). : : Doing the following round

Re: [PHP] Re: Opening large file problem - fopen

2003-12-16 Thread Eugene Lee
On Tue, Dec 16, 2003 at 01:30:14PM +0100, Kim Steinhaug wrote: : : I found out that what the script accually does is choke on "\n\n", : empty lines. I havnt found a way to solve this with the script, : : What I do now is use TextPad and just replace all occurencies : of "\n\n" with "\n-\n" or som

Re: [PHP] Update issue - more then likely simple problem

2003-12-18 Thread Eugene Lee
On Thu, Dec 18, 2003 at 01:39:57PM +1100, Eric Holmstrom wrote: > > What im trying to do is read the information from a field in a table called > PARTNO. Then add RU to the front of whatever is in the PARTNO field. > > So far i have this. > > //connect details rarara > //query > $query= "SELECT

Re: [PHP] php special permissions

2003-12-18 Thread Eugene Lee
On Thu, Dec 18, 2003 at 12:24:21PM +, Mat Harris wrote: : : I am building a web interface to the vacation autoresponder program : on linux. : : I let users login, edit their message and enable the autoresponder. : : The last step (enabling) is where the fun begins because php is run : a

Re: [PHP] php special permissions

2003-12-18 Thread Eugene Lee
On Thu, Dec 18, 2003 at 12:52:14PM +, Mat Harris wrote: : On Thu, Dec 18, 2003 at 06:42:37 -0600, Eugene Lee wrote: : > On Thu, Dec 18, 2003 at 12:24:21PM +, Mat Harris wrote: : > : : > : I am building a web interface to the vacation autoresponder program : > : on linux. : &

[PHP] sessions simply don't work

2003-12-19 Thread ken lee
on Apache on my intranet and IIS after being uploaded to a web server. The browser is set to recieve cookies. All the books say it should work. Has anybody any ideas? I've wasted a whole day on this joker! Ken Lee. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote: : : Well, i'm trying to avoid access to the site for the middle. Say there : is a initial page with a form and other pages that depends on this. Is : there a way to force users access the site thru the initial form page, : regard

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Sun, Dec 21, 2003 at 04:11:36PM -0300, Fernando M. Maresca wrote: : On Sun, Dec 21, 2003 at 01:03:43PM -0600, Eugene Lee wrote: : > On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote: : > : : > : Well, i'm trying to avoid access to the site for the middle. Say :

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Mon, Dec 22, 2003 at 01:09:37AM +0100, Andreas Magnusson wrote: : : You can use the Referer header found in $_SERVER['HTTP_REFERER'] to check : from which page the user comes from. Unfortunately, HTTP_REFERER is not guaranteed to exist. In fact, several Windoze firewall software actively bloc

Re: [PHP] Optional Vars in Functions

2004-01-02 Thread Eugene Lee
On Fri, Jan 02, 2004 at 01:20:50PM -0800, Chris wrote: : Jason Williard asked: : > : > Is there a way to make a variable of a function optional? : : http://www.php.net/functions More specifically: http://www.php.net/manual/en/functions.arguments.php e.g. function puke ($stuff

[PHP] Apache per directory setting

2004-01-06 Thread Chris Lee
Hi, Is it possible to set PHP flag at Apache ver 1.3.x per directory? e.g. DocumentRoot /home/www/apps/htdocs ServerName localhost php_flag register_globals on I tried but fail to turn on Register Globals settings (Default is off). Any Hints? Regards, Chris Lee -- PHP General Mailing

Re: [PHP] Apache per directory setting

2004-01-06 Thread Chris Lee
>You need to use: > > php_value register_globals 1 I tried, but still fail, phpinfo still show register_globals OffOff Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache per directory setting

2004-01-07 Thread Chris Lee
Dear Umesh, I already restart Apache, but it didn't work. OT question: Do Apache's Directory Directive, use relative path or absolute path for matching? Beside, I am using PHP Version 4.2.3 Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Functions

2001-01-10 Thread Chris Lee
\n"; } function returnfunction() { return "showfunction\n"; } showfunction(); echo returnfunction(); ?> Chris Lee Mediawaveonline.com "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote in message Pine.GSO.4.10.10101101404540.1072-10@juno"

Re: [PHP] Shorter way for "each"

2001-01-10 Thread Chris Lee
everyone allready posted about foreach(), but they didnt post the alternative syntax foreach ($array as $position => $value) { echo $postition : $value\n"; } http://www.php.net/manual/control-structures.foreach.php Chris Lee Mediawaveonline.com ""Moritz Petersen&q

Re: [PHP] Fields to large for php3

2001-01-10 Thread Chris Lee
reave X number of fields and peice the data together again... Chris Lee Mediawaveonline.com ""Paul Lewis"" <[EMAIL PROTECTED]> wrote in message 007d01c07b0a$abfda4b0$[EMAIL PROTECTED]">news:007d01c07b0a$abfda4b0$[EMAIL PROTECTED]... > I have an application t

Re: [PHP] Changing passwords

2001-01-10 Thread Chris Lee
. also with multiple users single passwd systems, who decided to change the passwd? your opening up the door to piss people off, some jerk decideds hes going to change the passwd and not tell anyone. real nice. haha Chris Lee Mediawaveonline.com ""A.D. Vijverberg"" <[EMA

Re: [PHP] Shopping Carts

2001-01-10 Thread Chris Lee
ont know if you need to use an IP at all, if this is just for a cart... then big deal, some script kiddy could try 36^32 possible combinations of a PHPSESSID to try and hijack their cart ! haha. maybe for a something a little more secure. Chris Lee Mediawaveonline.com "Brandon Orther&qu

Re: [PHP] knowing file's mime-type

2001-01-10 Thread Chris Lee
use exec() and unix's command 'file' exec("file $filename"); and admire the output :) http://www.php.net/manual/function.exec.php Chris Lee Mediawaveonline.com "Nikolai Vladychevski" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">n

Re: [PHP] Sessions, no cookies and enable-trans-sid, oh my

2001-01-11 Thread Chris Lee
make sure of course too that session_start() is called from in your code too. else your not using sessions :) Chris Lee Mediawaveonline.com ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I know that

Re: [PHP] Performance question

2001-01-11 Thread Chris Lee
, use whats easier to read. IMHO the last example is the hardest to read. please please everyone post your own results wether you wan tto back me or slash me. [lee@server lee]$ time php -q test_1.php > /dev/null 23.82user 0.07system 0:25.76elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k 0inp

[PHP] Extending PHP

2001-01-11 Thread Jason Lee
to C linker issues (extern "C" { ), will the STL cause memory problems? Is this the right forum for this kind of question? Thanks! -- Jason Lee| Get her boy and let yourself surrender. Run alone with Programmer/Analyst | her and never fall. She is wisdom and the most www.

Re: [PHP] globals broke

2001-01-11 Thread Chris Lee
x27;]; I dont quite know what to say more, thats a strange one you got there :) Chris Lee Mediawaveonline.com ""Jon Rosenberg"" <[EMAIL PROTECTED]> wrote in message 001301c07c26$5609d3e0$75e2d2cc@slinkyboi5">news:001301c07c26$5609d3e0$75e2d2cc@slinkyboi5...

Re: [PHP] mixing HTML and PHP code

2001-01-11 Thread Chris Lee
rom phorum : () : // \n"; echo "$lDate: $datestamp\n"; ?> I find the later easier to read, and modify, IMHO I cant see why it would be easier. Maybe just programming style, everyone to they're own. Chris Lee Mediawaveonline.com "Jason Murray

Re: [PHP] Replace a space with _

2001-01-11 Thread Chris Lee
just add this somewhere near the top. $filezip_name = ereg_replace(' ', '_', $filezip_name); Chris Lee Mediawaveonline.com ""David Smith"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > With

Re: [PHP] mixing HTML and PHP code

2001-01-11 Thread Chris Lee
It works, it works in lynx, netscape 4.76 netscape 6 mozilla 0.7 IE 5.5 opera 5.01 amaya 4.2.1 now I havent used any mac browsers but if it works for all those I assume it will for Mac browsers eh. Chris Lee Mediawaveonline.com "Alex Black" <[EMAIL PROTECTED]> wrote i

Re: [PHP] PDF error with pdf_open_png

2001-01-11 Thread Chris Lee
Its also very handy when you get an error like that to check you log files, usually when you get no error and no page like that, php has segfaulted apache, might want to check :) there might be other errors in the log files to help you too. Chris Lee Mediawaveonline.com "Jared H

Re: [PHP] Format a number for Money

2001-01-15 Thread Chris Lee
Chris Lee Mediawaveonline.com "Brandon Orther" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello Everybody, > > I want to take a number and echo it with only 2 numbers after the decimal > point. I can't remembe

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Chris Lee
better suited. Chris Lee Mediawaveonline.com "Mike Yuen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to allow various users to upload their own picture. What I > would like to happen is to have the copy statement

Re: [PHP] password()

2001-01-15 Thread Chris Lee
other php developers store their passwd's -plain text in db -use of unix password() -use of db password() -other ? Chris Lee Mediawaveonline.com ""Jason Jacobs"" <[EMAIL PROTECTED]> wrote in message 011501c07f3f$c415bcc0$5800a8c0@doc">news:011501c07f3f$c415bcc

Re: [PHP] password() ::: and it's return...

2001-01-15 Thread Chris Lee
sites do though. many sites allow me to click some link and they email me my passwd in case Ive forgoten it. ICQ.com even does this. Chris Lee Mediawaveonline.com ""Josh G"" <[EMAIL PROTECTED]> wrote in message 00e401c07f60$f325c2a0$0e01a8c0@swinger">news:00e4

Re: [PHP] RedHat+Apache+php+MSSQL

2001-01-16 Thread Chris Lee
why go for anything but the newest ? is this production ? if so stick to non-beta probably. Chris Lee Mediawaveonline.com "Francesc Lladó" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have to install in a computer with RedHa

Re: [PHP] Who to make an additon of fetched rows

2001-01-16 Thread Chris Lee
well your code snipit allready shows your answer. $result = mysql_db_query($DBName, "SELECT * FROM basket WHERE UserID='$UID'"); while ($row = mysql_fetch_array($result)) { $CID = $row[0]; $DMN = $row[1]; $DMB = $row[2]; $BID = $row[4]; echo "Pri

Re: [PHP] Anyone knows?

2001-01-16 Thread Chris Lee
paper and you will begin to see it all clearer then outlook express allows me to :) Ive seen tutorials around, ie phpbuilder.com, I found them confusing, hehe, good luck ! Chris Lee Mediawaveonline.com "Wee Chua" <[EMAIL PROTECTED]> wrote in message 0F9D3D919AADD211BE7E00A0C

Re: [PHP] XML, what is that supposed to do?

2001-01-17 Thread Chris Lee
- php ? Chris Lee Mediawaveonline.com "Brandon Orther" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello Everybody, > > I have seen a lot of people ask for XML support for PHP. I was wondering > what it does

Re: [PHP] Re: How can I get a random number

2001-01-17 Thread Chris Lee
explode(' ', $mtime); $mtime = $mtime[1] . $mtime[0]; return($mtime); } Chris Lee Mediawaveonline.com "Angela" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I see that you got a lot of responses, but I didn't see anyo

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Chris Lee
I use ultraedit 8.0 this editor rocks :) on a side note as someone else posted, 'everyone to their own' it dont matter what editor you love as long as the work gets done. Chris Lee Mediawaveonline.com ""Murph"" <[EMAIL PROTECTED]> wrote in message 003201c08

Re: [PHP] Can I fork a PHP thread?

2001-01-17 Thread Chris Lee
Im nearly posative this isnt what your looking for, but I thought I would see if maybe it was :) compile php as a cgi so you can run it from the command prompt. then just run the php file from the command prompt through exec () untested of course. Chris Lee Mediawaveonline.com "

Re: [PHP] PHP Editor

2001-01-18 Thread Chris Lee
p headers" can you compile/download php for windows as a cgi ? that would solve your problem eh. Chris Lee Mediawaveonline.com "Alaiddin Tayeh" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am using write.exe in the wind

Re: [PHP] HTTP_POST??

2001-01-18 Thread Chris Lee
Try this, I know Ive botched your origonal code... somepage.php \n"; } ?> someotherpage.php $val) { echo "\n"; } while(...) { ... echo "\n"; } ?> email me if you have more questions. Chris Lee Mediawaveonline.com ""Wade Hals

Re: [PHP] Internals of Session files

2001-01-18 Thread Chris Lee
No if memory serves me correctly php by default saves the session files in its own format, but you can tell php to save sessions in XML (wddx? am I way off) Ive never used XML, WDDX, or tried doing anything directly with the sessions files Chris Lee "Eivind Trondsen" <[EM

Re: [PHP] XML Parser is a bit strict

2001-01-18 Thread Chris Lee
like this, I think XML is more strict. Chris Lee Mediawaveonline.com ""Butler, Shaun"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I am using php 4.02 and Apache 1.3.12 and am trying to do some XML parsing. > H

Re: [PHP] How to participate from the digest?

2001-01-18 Thread Chris Lee
There is nothing easier then by going to news://news.php.net I never until php had any use for news groups, they were for perverts with to much bandwidth, haha. now I use my news reader all the time :) Chris Lee Mediawaveonline.com <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]

Re: [PHP] Quotes and Values

2001-01-18 Thread Chris Lee
alot of people inside on escaping your double quotes, I dont, I use single quotes, its nicer to read. echo "\n"; echo "\n"; I find the prior easier to read. they both work 100% no quibles. Chris Lee Mediawaveonline.com ""Karl J. Stubsjoen"" <[EMAI

[PHP] array_intersect()

2001-01-19 Thread Chris Lee
Array ( [0] => 501 ) array_insersect() only seems to work with small numbers... or small text. Chris Lee Mediawaveonline.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] array_intersect()

2001-01-19 Thread Chris Lee
ok, Ive got my code to work, but its a big jerry-rig haha. because I am using mtime() (the last two chars are allways 00) I substr the last two chars off, array_insersect() them, then add 00 the the end of all the values in the result array. dumb eh. Chris Lee Mediawaveonline.com "Chri

Re: [PHP] variable question

2001-01-19 Thread Chris Lee
t; $val) echo $val; with the second example you can add another element to $test->s and the loop will auto adjust for this. but both methods work. Chris Lee Mediawaveonline.com Joe Stump <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

Re: [PHP] BIG PROBLEM WITH SEARCH!!!!!!

2001-01-19 Thread Chris Lee
quot;; but this works too... $query = "SELECT * FROM clients WHERE CID = '$CID' AND CUserName = '$CUserName' "; if ($CAge) $query .= " AND CAge = '$CAge'"; if ($CEducation) $query .= " AND CEducation = '$CEducation'"; t

Re: [PHP] getting from PHP the vars that are in the memory during the execution of the script...

2001-01-21 Thread Chris Lee
$GLOBALS[] should have all varibales right ? maybe someone could correct me. $val) { echo "$pos : $val\n"; } ?> Chris Lee Mediawaveonline.com "Romulo Roberto Pereira" <[EMAIL PROTECTED]> wrote in message 001101c082eb$6536f5c0$[EMAIL PROTECTED

Re: [PHP] solutions to disadvantages when register_globals is off

2001-01-21 Thread Chris Lee
okie var that a user cant whip up a simple html POST page in about 10sec. Chris Lee Mediawaveonline.com "Dale Robinson" <[EMAIL PROTECTED]> wrote in message 000d01c083e1$54610aa0$0201a8c0@celery">news:000d01c083e1$54610aa0$0201a8c0@celery... > Everyone seems to recommen

Re: [PHP] To much PHP (Newbie)

2001-01-23 Thread Chris Lee
If your refering to old Pascal pre-3.0 in how you could only have X number of bytes in a file (32k I think) then pascal would not parse the rest, then no php isnt limited to this, your pages will just get slower and slower because of more hits. Chris Lee Mediawaveonline.com "Mike

Re: [PHP] Integration of PHP with MS Outlook?

2001-01-24 Thread Chris Lee
that. PHP on a windows box can use windows DOM, if outlook express was on the server then you might be able to use this too, I cant say for sure. All I can say for sure is that php is serverside, so if ou want php todo anything but serverside your looking in the wrong spot. Chris Lee Mediawaveonlin

Re: [PHP] ->

2001-01-24 Thread Chris Lee
is access that data/function. Im not quite sure what you mean when you say "generic-> becomes something twice" as far as I can see, nothing is becoming nothing. Chris Lee Mediawaveonline.com ""Karl J. Stubsjoen"" <[EMAIL PROTECTED]> wrote in message 0

Re: [PHP] session without cookies

2001-01-26 Thread Chris Lee
compile with --enable-trans-sid works great for me :) Chris Lee Mediawaveonline.com <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi.. > > i use the session-functions with php4 and everything works fine. > but if a visitor

Re: [PHP] Detect directory

2001-01-26 Thread Chris Lee
\n"; echo "$PHP_SELF \n"; ?> Try that. or am missunerstanding the question? Chris Lee Mediawaveonline.com ""Marx Gomes"" <[EMAIL PROTECTED]> wrote in message 012601c087d8$2ef57da0$[EMAIL PROTECTED]">news:012601c087d8$2ef57da0$[E

Re: [PHP] Display progress in browser using flush(); IE versus NS

2001-01-26 Thread Chris Lee
havent tested this but im almost sure that netscape waits until the entire page is downloaded until being displayed IF there are tables on the page. write a small test script to see if Im right. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Spallek, Heiko"&quo

Re: [PHP] Modulus

2001-01-26 Thread Chris Lee
4%2 = 0 4 div 2 equals remainder 0 2 div 4 doesnt divide so your left with the remainder equal to what you started with, 2 -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Mike P"" <[EMAIL PROTECTED]> wrote in message 94qjq0$rde$[EMAIL PROTECTED]"&g

Re: [PHP] sessions without cookies?

2001-01-26 Thread Chris Lee
less overhead then mysql_db overhead. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Noel Akins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Would there be any point in using php sessions if you aren't using co

Re: [PHP] .ins file

2001-02-21 Thread Chris Lee
"when you first run it wants to save the file as makeins.phtml " what wants to save the file? IE ? your editor ? sounds like a browser issue, the browser has assoiated .ins as something else in the mime-types. Msg back so I could possibly help more. -- Chris Lee Mediawaveonli

Re: Re[2]: [PHP] MIME type detection on file

2001-02-21 Thread Chris Lee
I use this to allow a user to download a pdf, most browser want to view it in the browser, I wanted them to be able to save the file, not view / run it. Is this what your looking for ? -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120

Re: [PHP] POST against GET

2001-02-21 Thread Chris Lee
can you post a small code snippit ? -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Denis L. Menezes"" <[EMAIL PROTECTED]> wrote in message 970kab$e9j$[EMAIL PROTECTED]">news:970kab$e9j$[EMAIL PR

Re: [PHP] Editing a files hex?

2001-02-21 Thread Chris Lee
edit the file with php or an editor like ultraedit? in ultraedit hit Ctrl-H in php its no different then it would be opening an ascii file. no different, just make sure to use fwrite() http://www.php.net/manual/en/function.fwrite.php -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED

Re: [PHP] Handling File Uploads : ASCII/Binary transfers

2001-02-21 Thread Chris Lee
your using an html for to upload the files ? this is strange, I use an html form to upload binary images, all is well so its strange its mangeling your ascii db file. how does the file look when it gets to the server? try saving it somewhere, compare it to the origonal. -- Chris Lee

Re: [PHP] Variable Strangeness

2001-02-21 Thread Chris Lee
or... that forces the comparison to be compared as a string. this only has to be done sometimes, usually php is quite good at determining what you want. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Jason Murray&quo

Re: [PHP] How can I log message, by syslogd?

2001-02-21 Thread Chris Lee
look at http://www.php.net/manual/en/function.error-log.php you can tell php to send an error msg to the systems default logger (ie. syslog) -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Zenith"" <[EMA

Re: [PHP] Getting the file a PHP script is called from

2001-02-21 Thread Chris Lee
$PHP_SELF echo $PHP_SELF; -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Dan Watt"" <[EMAIL PROTECTED]> wrote in message 970j62$6j0$[EMAIL PROTECTED]">news:970j62$6j0$[EMAIL PROTECTED]...

Re: [PHP] Accessing variables from a form

2001-02-21 Thread Chris Lee
echo $val; } ... ?> arrays are great things, use them lost :) haha -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Don" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

Re: [PHP] MIME type detection on file

2001-02-22 Thread Chris Lee
when your uploading a file php will create three variables, $db_file $db_file_name $db_file_type $db_file_type should have the mime/type. now should does NOT mean will. some browsers (I dont have a list) will not send the correct type at all. you can use linux's file command [lee@s

Re: [PHP] Displaying an image, that is pulled from a DB, inline

2001-02-22 Thread Chris Lee
dspimage.inc index.php "; ?> -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &g

Re: [PHP] Uploading/Timing scripts

2001-02-22 Thread Chris Lee
start) / 10; echo number_format($time, 4) .' '. $text ."\n"; $this->start = $this->break; } } $debug = new debug; ?> -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Matt"" &

Re: [PHP] filenames on file download

2001-02-22 Thread Chris Lee
no problem :) Header("Content-Type: {$prod_r["file_type"]} "); Header("Content-Disposition: filename='{$prod_r["file_name"]}' "); echo $prod_r["file"]; this code works perfect for me, just modify the variables to meet

Re: [PHP] Problem using META tag refresh for page re-directs

2001-02-22 Thread Chris Lee
eta tags. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Johnson, Kirk"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have been using the code below to

Re: [PHP] Ok, this might make more sense

2001-02-22 Thread Chris Lee
er all the data. you could use sessions, but this is not what your looking for. sessions are for remebering *one* persons info, not many people's, and not for long term, short term. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] &q

Re: [PHP] Problem using META tag refresh for page re-directs

2001-02-22 Thread Chris Lee
.net's sujestion os using SID ie. echo "index"; SID is only set if the a cookie is NOT set. oi. thank god $PHPSESSID is allways set :) another note too though is try and limit the amount of header re-redirects you use, search engines will not index pages that follow header redirects.

Re: [PHP] Counter Help

2001-02-22 Thread Chris Lee
change $row[count] to $row['count'] it thinks the work [count] is some kind of conastant, it doesnt know you mean (string) 'count' -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Navid Yar&

[PHP] chunk_split() doesnt seem to be working

2001-02-23 Thread Chris Lee
Im running php 4.0.4pl1 Fatal error: Call to undefined function: chunk_split() in /home/httpd/vhosts/myhearingstore/mail.egn on line 33 is there a configure option im supposed to compile in ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120

Re: [PHP] How to check if a current session is going?

2001-02-23 Thread Chris Lee
check if your session variable is set. ie, lets say your session variable is called SessionID \n"; } ?> -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Michael Zornek" <[EMAIL PROTECT

Re: [PHP] session question

2001-02-23 Thread Chris Lee
_NAME/index.php?$SID"); -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Jon Rosenberg"" <[EMAIL PROTECTED]> wrote in message 001301c09dc9$fc471c80$[EMAIL PROTECTED]">news:001301c09dc9$fc471c

Re: [PHP] chunk_split() doesnt seem to be working

2001-02-23 Thread Chris Lee
ok, works now, strange stuff, cut and paste from opera and you'll get problems like this, strange strange -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Chris Lee"" <[EMAIL PROTECTED]> wro

[PHP] problems with mail()

2001-02-23 Thread Chris Lee
t-Type: multipart/alternative; boundary='HTML3a96f889828b4' This is a multi-part message in MIME format. Status: --HTML3a96f889828b4 Content-Type: text/plain; charset='ISO-8859-1' Content-Transfer-Encoding: ISO-8859-1 Hello test how are you today?--HTML3a96f889828b4 Content

Re: [PHP] setcookie don't work well...

2001-02-26 Thread Chris Lee
you have to set to path and the domain name too... setcookie('vote', '1', $time, '/', '.someite.com'); -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Nuno Costa""

Re: [PHP] how do i check if a server is online ?

2001-02-27 Thread Chris Lee
s this server prone to alot of ups and downs ? might want to stay away from mysql_pconnect(). -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Markus H. Maussner"" <[EMAIL PROTECTED]> wrote in message [E

Re: [PHP] simple session question

2001-02-27 Thread Chris Lee
looks like it might. I do a simple isset() to see if it is set. works for me. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "John LYC" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

Re: [PHP] hrm...only hit submit once

2001-02-27 Thread Chris Lee
\n"; echo "You can only press submit once \n"; exit(); } else { echo "b \n"; $done = $PHP_SELF; session_register('done'); } // do some code echo " "; ?> try this, this allows you to load the page, p

Re: [PHP] NN Problem

2001-02-27 Thread Chris Lee
you have a url or code sample to look at ? have you run it through html tidy ? http://www.w3.org/People/Raggett/tidy/ also included in ultraedit 8.0a http://www.ultraedit.com/ -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED

Re: [PHP] Help with a very small array problem

2001-02-27 Thread Chris Lee
$val) echo "{$but[$pos]} "; ?> or better. http://slashdot.org'; $link['adcritic'] = 'http://www.adcritic.com'; $link['php.net'] = 'http://www.php.net'; foreach($link as $pos => $val) echo "$pos "; ?> --

Re: [PHP] session problem

2001-02-27 Thread Chris Lee
isplay 1 untill you start clicking on the link. this is because PHPSESSID is now set. in a long way Im trying to say that what your experisnceing is normal -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""kaab kaoutar"&quo

Re: [PHP] File Upload Strangeness

2001-02-27 Thread Chris Lee
you will find some browsers dont work like they should, opera doesnt seem to like my uploads. "; ?> works or me, email me your comments if this is or isnt working for you -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120

Re: [PHP] ftp connection

2001-02-27 Thread Chris Lee
0x0A. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Jon A" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I need some help... > > I try to do a ftp connection with ph

Re: [PHP] File downloading?

2001-02-27 Thread Chris Lee
try this, works for me. everywhere I read they say Im supposed to use application/octlet-stream but it doesnt allways seem to work in some browsers. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Chris"&quo

Re: [PHP] redefine constants

2001-02-28 Thread Chris Lee
consants must be scalar, they can not be references. http://php.net/manual/en/function.define.php what your looking for is this. this is invalid syntax though, I dont know how to answer your question though, sorry :( -- Chris Lee Mediawaveonline.com ph. 250.377.1095

Re: [PHP] formating output

2001-02-28 Thread Chris Lee
}Latest news blah blah \n"; you can also accompish this nicer with a foreach loop foreach($headline as $pos => $val) echo "{$headline[$pos]}Latest news blah blah \n"; more info at http://php.net/manual/en/control-structures.foreach.php email me with more questions

Re: [PHP] illegal string index

2001-02-28 Thread Chris Lee
not create that index. and you will get an undefined index error. mysql> alter table TABLE_NAME change VAR_NAME VAR_NAME varchar(255) NOT NULL ; please email me if you have more questions or comments, I am interested in knowing how this works for you -- Chris Lee Mediawaveonl

Re: [PHP] found a bug with File Uploads..

2001-02-28 Thread Chris Lee
not be server side, vs client side? as you mentioned, modify php.ini to change your limit. does anyone know another use for this ? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Dhaval Desai" <[EM

Re: [PHP] function not working?

2001-02-28 Thread Chris Lee
sume its rudamentry. the code you are missing is how your accually calling your function View Contents Of Cart is a url, you forgot to include the src of cart.php to see where you are accually calling the function. cart.php please email me if you have more questions or comments.

Re: [PHP] PHP single user??

2001-02-28 Thread Chris Lee
sounds like a db prodblem, vs php. could be wrong. check your config file. for the max users. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Todd Cary" <[EMAIL PROTECTED]> wrote in message [EMAIL

Re: [PHP] newbie:cronjob

2001-02-28 Thread Chris Lee
f in /home/httpd/vhosts/somesite/somefile.php have fun. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Wen Ni Leong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">

<    1   2   3   4   5   6   7   8   9   >