[PHP] Steps to installin PHP on apache 2

2004-02-16 Thread Philip J. Newman
Can someone send me a link to where i can find easy to read docs on getting php set up on Apache ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session, loging users in.

2004-02-13 Thread Philip J. Newman
Whats the best information to add to a session to say a user is logged in? I currently have $siteUserLogIn="true"; anything else that I could add to beef up security? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] E-Commerce

2004-02-12 Thread Philip J. Newman
I just about wet my self laughing. Just look around the net, PHP is used in about 40% of the online shopping sites. - Original Message - From: "PHP Email List" <[EMAIL PROTECTED]> To: "Jimmy" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 6:48 PM Subject: RE

[PHP] $PHP_SELF AND INFORMATION.

2004-02-04 Thread Philip J. Newman
$_SERVER["PHP_SELF"]; returns /c/hosting/newman/hello.php is there an easy way to get get hello.php? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] read file only half the file loads ...

2004-02-02 Thread Philip J. Newman
loadimage.php has the following code in it. Only half the image is shown ... it stops loading the image or the image wont' load at all. Any Ideas what the problem could be? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Script Needed

2004-01-14 Thread Philip J. Newman
payme $80 a hour and i can write one ... (o; - Original Message - From: "Eric Belardo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 15, 2004 2:33 PM Subject: [PHP] Script Needed > Good evening all, > > I am designing a website were different users will be postin

[PHP] Hiding files away from /public_html/

2004-01-09 Thread Philip J. Newman
Hi, just wanted to pick someones brain. I want to store some images outside the /public_html/ how ever my isp has decided that i'm not aloud to write files in that area. Would the next best solution that wold be as secure to maybe put them in a folder with a .htaccess file in it? --- Phi

[PHP] counting charactors

2004-01-06 Thread Philip J. Newman
can someone point me to the right place for a thing that would count charactors in a string? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A simple instruction

2004-01-01 Thread Philip J. Newman
echo"$PHP_SELF"; maybe? - Original Message - From: "Dino Costantini" <> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 02, 2004 11:30 AM Subject: [PHP] A simple instruction i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name

Re: [PHP] PHP New Year

2003-12-31 Thread Philip J. Newman
yes HNY to you too - Original Message - From: "Larry Brown" <> To: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, January 01, 2004 1:37 PM Subject: [PHP] PHP New Year > Happy New year all! > > Looking forward to bigger better things this year. > > Larry > > -- > PHP General Mailing

[PHP] Best place to search archives

2003-12-20 Thread Philip J. Newman
Hay guys, Where is the best place to search the general-php archives (o; --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] Ph: +64 9 576 9491 Fx: +64 9 576 2532 Mob: +64 21 0483 999 - "

[PHP] $_POST[]

2003-12-18 Thread Philip J. Newman
Should $_POST[formReviewBy] have quotes or dose it not matter? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best way to store data.

2003-12-18 Thread Philip J. Newman
Hi, is the best way to store data in a mysql database in the text it was submitted, or in HTML format ... changing all the \r's and things to --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Line breaks in PHP.

2003-12-16 Thread Philip J. Newman
HP. > On Wednesday, December 17, 2003, at 03:10 PM, Philip J. Newman wrote: > > > Question: > > > > When you hit enter in a text box is that classified as a \n? > > > > generally, yes. > > depending on the client platform, it might be an \r\n or

[PHP] Line breaks in PHP.

2003-12-16 Thread Philip J. Newman
Question: When you hit enter in a text box is that classified as a \n? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What would the best way to veladate a URL string?

2003-12-13 Thread Philip J. Newman
Hay that works better thanks - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 14, 2003 2:17 PM Subject: [PHP] Re: What would the best way to veladate a URL string? > On Sun, Dec 14, 2003 at 11:23:25A

[PHP] Trying to check for a valid URL String.

2003-12-13 Thread Philip J. Newman
so far i got ... and i can't get it to work --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Whats wrong with this statement.

2003-12-13 Thread Philip J. Newman
Query"); $exists_hUrl = "0"; $exists_hContactEmail = "0"; while ($row = mysql_fetch_array($sql_result)) { if ($websiteUrl==$row["hUrl"]) { $exists_hUrl = "1"; break; } if ($websiteEmail==$row["hContactEmail"]) { $exists_hContactEmail = "1&q

[PHP] What would the best way to veladate a URL string?

2003-12-13 Thread Philip J. Newman
What would the best way to veladate a URL string? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] The best way ...

2003-12-12 Thread Philip J. Newman
what is the best way to remove extra \'s from strings ... would be ? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Checking a URL string.

2003-12-12 Thread Philip J. Newman
I would like to check if i have a correct url enterend --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Philip J. Newman
[PHP] Call to undefined function: imagecreatefromjpeg() > Philip J. Newman wrote: > > http://www.php.net/manual/en/function.imagecreatefromjpeg.php > > > > After using this code for some time it suddenly returns ... > > It's not suddenly, someone must have recompiled php

[PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Philip J. Newman
http://www.php.net/manual/en/function.imagecreatefromjpeg.php After using this code for some time it suddenly returns ... Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/crushme/public_html/includes/inc_members.php on line 564 Is this the server or code that needs to

[PHP] Changing Bytes to KB, to megs, to gigs.

2003-07-26 Thread Philip J. Newman
My goal is to input the amount of Bytes used by a user as $inputbox and calculate how many kbs,megs,gigs along with $cost for the price per meg. $inputbox bytes = $kbs kb.$megs meg @ $0.05c per Meg = \$$cost$gigs gig."; ?> This is what I get outputted. 414478244 bytes = 404763.910156 kb. 395.27

Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25

2003-07-19 Thread Philip J. Newman
thanks - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 06, 2003 7:06 PM Subject: Re: [PHP] Re: Failed to Receive in E:\...\mailscript.php on line 25 > On Sunday 06 July 2003 14:59, HÃ¥kon Strandenes wrote: > > This is not my server, so

[PHP] Small problem with date and location information?

2003-06-21 Thread Philip J. Newman
I run a website from New Zealand. The problem is when it shows the time of the server, that just happens to be located in Dallas USA. Is there a way that I can change the time so it matchs New Zealand Time?

[PHP] Email Valadation

2003-06-17 Thread Philip J. Newman
How would i valadate an email string to see if it has invalid charactors? / Philip

Re: [PHP] / [Newman] When i send an email it ...

2003-06-15 Thread Philip J. Newman
: "Michael Geier" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 2:56 PM Subject: Re: [PHP] / [Newman] When i send an email it ... > The error is your answer. The server

Re: [PHP] / [Newman] When i send an email it ...

2003-06-15 Thread Philip J. Newman
My code is this ... \n"; $headers .= "From: \"Philip Newman\" <[EMAIL PROTECTED]>\n"; $headers .= "Reply-To: \"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>\n"; $msg = "Dear $mUserName,\n\n"; $msg .= "You have requested a user account on Untouched.

[PHP] Loading an image file as a PHP file.

2003-06-10 Thread Philip J. Newman
To Do: I would like to call image /user/mysite/image_01.jpg using something like /user/mysite/public_html/loadimage.php?image=1 is this a simple procedure or hard ... any suggestions or someone want to point me in the right direcion/ Phil

[PHP] Documents on Images.

2003-06-10 Thread Philip J. Newman
Can someone point me to some documents about pulling images from out side the doc root? thanks / Phil

Re: [PHP] Checking for Valid Charactors.

2003-06-08 Thread Philip J. Newman
thanks - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 8:57 PM Subject: Re: [PHP] Checking for Valid Charactors. > On Sunday 08 June 2003 16:22, Philip J. Newman wrote: > > I would liek to che

[PHP] Checking for Valid Charactors.

2003-06-08 Thread Philip J. Newman
I would liek to check for 0-9 and . charactors i'm using ... $email = "60.00"; if eregi("^[0-9.])?$",$email) { echo"valid"; } else { echo"not valid"; } Its not working well. umm ... help ...

[PHP] Newman Asks, Changeing to CAPS?

2003-06-08 Thread Philip J. Newman
Is there a way of changing only the 1st letter of a string to caps and the rest to lower? eg: foo bar to Foo Bar ?? / Phil PhilipNZ.com [EMAIL PROTECTED]

[PHP] [Newman] How to pass an image through PHP.

2003-06-07 Thread Philip J. Newman
I would like to know where i should be looking to pass an image through PHP Thanks / Phil

[PHP] Newman's Problem with Images.

2003-06-05 Thread Philip J. Newman
My problem is this: I have a site that has 3 levels of access. 1,2,3 when i upload files to say $unixtimestamp/image1.jpg anyone can list the images in this directory $unixtimestamp/. I would like to hide the images out side the doc root ... is this possable .. so i can load something l

[PHP] Checking a string for # of charactors.

2003-03-28 Thread Philip J. Newman
I would like to check that a string as more than 20 charactors in it. Can someone point me in the right direction. Thanks .. -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Time stamp and changing to a date.

2003-03-28 Thread Philip J. Newman
$mydate = "20030328231154"; $myPrintDate=date ("l dS of F Y h:i:s A",$mydate); echo "$myPrintDate"; Whats wrong -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Random Password Making.

2003-03-28 Thread Philip J. Newman
Whats the best way to make a random password with 4 letters and 2 numbers? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Philip J. Newman
Mummy and Daddy sto fighting. - Original Message - From: "Dan Rossi" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]>; "Leif K-Brooks" <[EMAIL PROTECTED]> Cc: "Peter Houchin" <[EMAIL PROTECTED]>; "Dan

Re: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Philip J. Newman
Again ... Now Now Kiddies your all way out of line. - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Dan Rossi" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 7:55 PM Subject: Re: [PHP] Re: Internet Explorer toolbar > Correct, but he asked for

Re: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread Philip J. Newman
Now Now children. - Original Message - From: "Dan Rossi" <[EMAIL PROTECTED]> To: "Leif K-Brooks" <[EMAIL PROTECTED]> Cc: "Peter Houchin" <[EMAIL PROTECTED]>; "Dan" <[EMAIL PROTECTED]>; "php-general" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 6:47 PM Subject: RE: [PHP] Re: Internet E

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Philip J. Newman
You could chnage the permissions when you want to write something then change it back when your done. Thats what i do. / Phil - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Dan Rossi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 6:17 AM Sub

Re: [PHP] logging ip address when submitting a form

2003-03-27 Thread Philip J. Newman
$HTTP_X_FORWARDED_FOR phpinfo(); Check that its in your PHP Info. $REMOTE_ADDR will return the Remote Address. I use This small loop. if (!$HTTP_X_FORWARDED_FOR) { $HTTP_X_FORWARDED_FOR=$REMOTE_ADDR; } / Phil - Original Message - From: "Joakim Larsson" <[EMAIL PROTECTED]> To: <[EMAIL

[PHP] How do i valadate an email address?

2003-03-26 Thread Philip J. Newman
How would i check that an e-mail has the right parts in it. for example. username @ domain . ext Thanks / Jim Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Formatting code.

2003-03-25 Thread Philip J. Newman
Is there any documents on how code should be layed out? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Send Mail Main headers.

2003-03-24 Thread Philip J. Newman
ot;>\r\n"; $headers .= "X-Priority: 3\r\n"; $headers .= "X-MSMail-Priority: Normal\r\n"; $headers .= "X-Mailer: iCEx Networks HTML-Mailer v1.0"; Is this about all i need to send a mail in PHP excluding the mail(); -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Wrapping text output

2003-03-21 Thread Philip J. Newman
$my_data = "This is a really long string that could go on for ever and ever and ever and ever and ever and ever and ever and ever and ever and ever and ever and ever and ever and don't wrap to my table it makes it bigger"; echo $my_data; How can I make this wrap to the table?

[PHP] $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made.

2003-03-20 Thread Philip J. Newman
uot;Directory for User, $sUser, Doesn't Exist.. Creating.."; mkdir("$siteGalleryUserPath",0777); } //Code to Add the gallery photoset directory here.. //(add a directory $datestamp under the username dir.. mkdir("$destination",0777); // LINE 72 from error above. end snip -- Philip J. Newman. Head Developer [EMAIL PROTECTED]

[PHP] LIsting all the Members who have not loged in for 60 days ...

2003-03-18 Thread Philip J. Newman
$lastDate is a unix time stamp in mySql ... how can i list ONLY the users who have not logged in for 60days? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File System

2003-03-16 Thread Philip J. Newman
result = unlink("file.txt") or die("Operation failed!'); > > On Monday, March 17, 2003, at 12:58 AM, Philip J. Newman wrote: > > > How do i delete a file ... ? > > > > kill?? dele *srugs* > > > > -- > > Philip J. Newm

[PHP] File System

2003-03-16 Thread Philip J. Newman
How do i delete a file ... ? kill?? dele *srugs* -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload Stuff ... well kinda.

2003-03-15 Thread Philip J. Newman
RIghto then. Just make a nice website, on my windows box and everything and when i moved it to the live server, the things that didn't work where file uploads. What (if any) settings do i have to use for a Linux dir .. to allow access for the file to be uploaded? -- Philip J. Newman.

[PHP] Confused a little with = to and grater than ...

2003-03-15 Thread Philip J. Newman
"2"; } else if ($gAccessLevel == "level-3") { $glevel = "3"; } if ($slevel >= $glevel) { //LOAD PAGE }else { // ERROR MESSAGE HERE. { -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are lik

Re: [PHP] mysql_connect issue

2003-03-14 Thread Philip J. Newman
try mysql_connect("loghost:3306","$username","$password"); - Original Message - From: "Steve Shead" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 15, 2003 12:14 PM Subject: [PHP] mysql_connect issue > I'm trying to get a small PHP based log reader to run but get t

[PHP] My PHP mysql Command

2003-03-14 Thread Philip J. Newman
$sql .= " ORDER BY gId DESC LIMIT $gStart, 10"; echo $sql; $sql_result = mysql_query($sql, $connection) or die (mysql_error()); MY ERROR MESSAGE IS ... 10You have an error in your SQL syntax near 'WHERE (gAccessLevel = 'level-1' OR gAccessLevel = 'level-2

[PHP] Crypting Passwords for storage.

2003-03-13 Thread Philip J. Newman
I have a user admin for a site, how ever passwords are stored in plane text. Is there away to crypt and then read the crypt when verifying that string vs the plane text in the password box? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Making a Loop.[Scanned]

2003-03-12 Thread Philip J. Newman
assuming the value is 10, I stall can't get it to work - Original Message - From: "Michael Egan" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 9:29 PM Subject: RE: [PHP] Ma

[PHP] Making a Loop.

2003-03-12 Thread Philip J. Newman
nection) or die ("Could not get Query"); while ($row = mysql_fetch_array($sql_result)) { $productCode=$row["productCode"]; echo "$productCode"; } // END WHILE. echo""; } and it dose not work any help? --

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Philip J. Newman
You have used the ' in sted of the " i assume that there is no difference? - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: "David E.S.V." <[EMAIL PROTECTED]> Cc: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAI

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Philip J. Newman
how ever i don't think most ISPs let users pick names with the + sign in it - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: "David E.S.V." <[EMAIL PROTECTED]> Cc: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PRO

[PHP] Checking for a Valid Email String.

2003-03-11 Thread Philip J. Newman
Required: Help for checking for a valid email string. -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are like stars You can't allways see them, but they are always there. -- Websites: PhilipNZ.com - Design.

[PHP] Images out side the wwwroot

2003-03-09 Thread Philip J. Newman
If i was to use PHP to call all my images from out side the wwwroot, dose anyone have a method that they use? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are like stars You can't allways see them, but they are always

[PHP] Join

2003-03-09 Thread Philip J. Newman
-- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are like stars You can't allways see them, but they are always there. -- Websites: PhilipNZ.com - Design. http://www.philipnz.com/ [EMAIL PROTECTED] Philip's Domain /

Re: [PHP] PHP SQL Code

2003-03-02 Thread Philip J. Newman
This one returns a 'Could not get Query' warning ... so thats out. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Philip J. Newman'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 03, 2003 5:3

[PHP] PHP SQL Code

2003-03-01 Thread Philip J. Newman
I would like yo show the users in a list that have a date that is more than 60 days old. $sql = "SELECT * FROM stompers WHERE sUpdated < from_unixtime(unix_timestamp(now())-(15760*60)) AND sActive = 'Y' ORDER BY sUpdated DESC"; This don't quite work .. Any su

Re: [PHP] Upper and lower case.

2003-03-01 Thread Philip J. Newman
LOL got a reply to this before i ever got the message my self ... - Original Message - From: "Philip J. Newman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 02, 2003 10:56 AM Subject: [PHP] Upper and lower case. > Question: > > is i

[PHP] Upper and lower case.

2003-03-01 Thread Philip J. Newman
Question: is it better to store user names as upper and lower case? should they bee converted to one case? I have a script the checks for names and ... Mark is not the same as mark, or MaRk ... is there a way of making a string into lower case? -- Philip J. Newman. Head Developer [EMAIL

[PHP] Checking Access to a directory Via a PHP/MYSQL Databace.

2003-03-01 Thread Philip J. Newman
Is there a way that i can restrict access to an entire directory using PHP/MYSQL so only valid users in the Database can have access to a resource? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are like stars You can't allway

[PHP] IS there a way.

2003-02-28 Thread Philip J. Newman
Is there a way to PING a URL and check if it returns a valid code like 200 ... ?? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are like stars You can't allways see them, but they are always there. -- Websites: PhilipN

[PHP] Checking for HTTP:// at the start of a string and more ////

2003-02-28 Thread Philip J. Newman
I would like to check for HTTP:// at the start of a string and for at least 1 . and a / at the end of a string. I have tried ereg, but the documentation is not too clear how to format. -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends

[PHP] I would like to display a list of the same products only if productPublic = staff or members.

2003-01-31 Thread Philip J. Newman
I would like to list 2 possable items in a mysql queary. SELECT * FROM products WHERE productType = '$productType AND Where productPublic = 'staff' OR productPublic = 'members' ORDER BY productId DESC LIMIT 10 I would like to display a list of the same products only if productPublic = staff or me

Re: [PHP] test

2003-01-12 Thread Philip J. Newman
this was a functional email - Original Message - From: "Karl James" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 12:24 AM Subject: [PHP] test > test > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Loading Information into an array.

2003-01-10 Thread Philip J. Newman
I have a table with images and comments. if i have $x amout of images that each have a comment. the comments are displayed in the center colum of the table with the images loading left and right of each comment. http://www.philipnz.com/example.jpg I can get the images to load in their left and

Re: [PHP] makeing an array

2002-12-31 Thread Philip J. Newman
hilip'; > $first[] = 'John'; > $first[] = 'Paul'; > > Now you can simply do: > > echo $first[0]; // this could output 'Philip'; > > You can then look at multi dimensional etc... > > I trust this get's you on your way. > > >

[PHP] makeing an array

2002-12-31 Thread Philip J. Newman
--- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Tele: +64 (9) 5769491. VitalKiwi Site: Philip J. Newman Internet Developer http://www.newman.net.nz/ [EMAIL PROTECTED] * Friends are like

[PHP] Invalid Charactors in a string.

2002-11-26 Thread Philip J. Newman
Where should i start, tips wanted. I would like to check a username string for valid charactors before the name is processed. Someone point me in the right direction please --- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64

[PHP] XML into PHP

2002-11-12 Thread Philip J. Newman
How would i call a page in PHP that is XML? eg; if i had a file that was like below. http://www.philipnz.com/news/rss.xml and i wanted to include it onto a page. HELP (looking through the docs now) --- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com

[PHP] Ah ha ... confirm delete.

2002-09-24 Thread Philip J. Newman
confirm() returns a true or fulse. what is confirm called as a veriable? --- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Tele: +64 (9) 5769491. Family Site: Philip J. Newman Internet Developer http

Re: [PHP] Installing php in windows 95

2002-09-24 Thread Philip J. Newman
windows 95 your jokeing right? - Original Message - From: "Uma Shankari T." <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 4:13 PM Subject: [PHP] Installing php in windows 95 > > Hello, > > I need to install php for windows under particular folde

[PHP] Showing online users!

2002-09-24 Thread Philip J. Newman
esult)) { $sUser=$row["sUser"]; echo"$sUser, "; } ?> Is this the best way to do this? --- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Tele: +64 (9) 5769491. Family Site: Philip J. Ne

Re: [PHP] Mail problem with more than 1k users

2002-09-23 Thread Philip J. Newman
I suggest you get a mailing list program if your sending to more than 1k of users Philip - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Research and Development" <[EMAIL PROTECTED]>; "PHP General List" <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 1:57 PM Sub

Re: [PHP] return the amount of records in a mysql databace

2002-09-22 Thread Philip J. Newman
; this is only going to return records in a table, and not in a database > > > > > > > select count(*) as n from ... where ... > > > > > > -Original Message- > > > From: Philip J. Newman [mailto:[EMAIL PROTECTED]] > > > > &g

Re: [PHP] return the amount of records in a mysql databace

2002-09-22 Thread Philip J. Newman
We have $sUsers registered users."; ?> This would be the best way (suggestions would be cool); - Original Message - From: "Mark Charette" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday

[PHP] return the amount of records in a mysql databace

2002-09-21 Thread Philip J. Newman
Can someone point me in the right direction to find out how i can return the amount of records in a mysql databace ? --- Philip J. Newman. PhilipNZ.com New Zealand http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Tele: +64 (9) 5769491. Family Site: Philip J. Newman Internet

Re: [PHP] How to program very basic chat on PHP?

2002-09-07 Thread Philip J. Newman
You could create a scema, or module that is called with each page load, that checks for messages when the user is logged in. So when the message is stored into the databace, when the user loads the anypage while logged in it checks for new messages, and if the user has messages then the window po

Re: [PHP] Re: Proposal for securing PHP sessions

2002-09-07 Thread Philip J. Newman
You could use a SUB NET (o; to block a group of users ie 202.*.*.* would kill most of New Zealand and Oz - Original Message - From: "Dave at Sinewaves.net" <[EMAIL PROTECTED]> To: "PHPlist" <[EMAIL PROTECTED]>; "M1tch" <[EMAIL PROTECTED]> Sent: Sunday, September 08, 2002 8:34 AM Subject:

Re: [PHP] Enhancement of script

2002-09-07 Thread Philip J. Newman
Looks good if your keen to shear the code we could have a tinkle with it and see if we can work it out. Phil - Original Message - From: "Ray Healy (Data Net Services)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 07, 2002 10:11 PM Subject: [PHP] Enhancement of sc

[PHP] Newman Asks, Do i have to use session_name('sid') every ...

2002-07-25 Thread Philip J. Newman
session_name('sid'); session_start(); Do i have to use session_name('sid'); every time i use session_start(); or can session_name be used once? --- Philip J. Newman. PhilipNZ.com Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Te

[PHP] The page before for newman.

2002-07-25 Thread Philip J. Newman
I'm looking for the global veriable that lists the page before the page that i just came from. Anyone know what i'm talking about? --- Philip J. Newman. PhilipNZ.com Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Tele: +64 (25) 6144012. Per

[PHP] Newman's PHP sessions management.

2002-07-24 Thread Philip J. Newman
One question. When i start a new session i get the veriable PHPSESSID=what ever added to links that I want PHPSESSID to be called sid. How can i do this? --- Philip J. Newman. PhilipNZ.com Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Tele: +64 (25

Re: [PHP] Newman and sessions.

2002-07-23 Thread Philip J. Newman
so how would i get the $username and $password into the session session_register('$username','$password'); ?? - Original Message - From: "Wee Keat" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]> Sent: Wednesday,

[PHP] Newman and sessions.

2002-07-23 Thread Philip J. Newman
I have started a session on the server, and now would like to add a user name and password, and some other information to the session to carry it across all the other pages that are in this session. Any hints on where to start? --- Philip J. Newman. PhilipNZ.com Design Solutions http

[PHP] Newman and his session management.

2002-07-23 Thread Philip J. Newman
I have started a session on the server, and now would like to add a user name and password, and some other information to the session to carry it across all the other pages that are in this session. Any hints on where to start? --- Philip J. Newman. PhilipNZ.com Design Solutions http

[PHP] Newman Says: Only one value from a msSQL field.

2002-06-01 Thread Philip J. Newman
Only one value from a msSQL field. I have many values the same in a field and would like to know how i can select one of each (not mating). $sql = "SELECT * FROM brands WHERE 1 ORDER BY `sId` DESC LIMIT 6"; lists everything .. ANy help would be cool. Phil

[PHP] Re: Newman Says: Error when starting sessions.

2002-03-31 Thread Philip J. Newman
so it should be session.save_path = c:\php\temp at the moment it says session.save_path = 1 - Original Message - From: "Yasuo Ohgaki" <[EMAIL PROTECTED]> Newsgroups: php.general To: "Philip J. Newman" <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002

[PHP] Newman Says: Error when starting sessions.

2002-03-31 Thread Philip J. Newman
I'm trying to start a session, and I get this error. I have been told its something to do with a missing dir is my php dir? Warning: open(1\sess_0513b5c5d7021f1acdcf9f732032081f, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Philip J. Newman PhilipNZ :: Design Solu

Re: [PHP] Some Problems that Newman has with PHP since reinstall.

2002-03-30 Thread Philip J. Newman
] Some Problems that Newman has with PHP since reinstall. > On Saturday 30 March 2002 14:26, Philip J. Newman wrote: > > Hi People, > > I just installed PHP again, and am having some problems with a few things. > > When Posting to a form, veriables do not travel across the page

[PHP] Some Problems that Newman has with PHP since reinstall.

2002-03-29 Thread Philip J. Newman
?? Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] From Newman: Redirect function not working.

2002-03-29 Thread Philip J. Newman
I have just updated my copy of PHP and changed the INI file. Some of my redirect commands no longer work. Any Suggestions. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

  1   2   >