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
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 List (http
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]
$_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
' 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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 posting their
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?
---
Philip J
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
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 of
the
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 List
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
-
This communication
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 br
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ?
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
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
, 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 \r (I've
heard)...
justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
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
]) { $exists_hContactEmail = 1; break; }
}
Echo $exists_hUrl, $exists_hContactEmail;
?
---
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
so far i got ...
?php
if (!ereg(^http:\/\/([_\.0-9a-zA-Z-]+\.)+[a-zA-Z]/i,$websiteUrl) {
echoNot Valid;
} else {
echovalid;
}
?
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
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:25AM +1300, Philip J. Newman wrote
I would like to check if i have a correct url enterend
?php
eregi(^http://[([0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$, $websiteUrl);
?
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
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
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
?Php
// SNIP
$quality=70; // JPEG
()
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 without gd/jpg support.
Fatal error: Call to undefined function
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 = 414478244;
// PROCESS DATA
$kbs = $inputbox/1024;
$megs = $kbs/1024;
$gigs = $megs/1024;
// CALC COST OF MEGS
cost = $megs * 0.05;
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 I
I run a website from New Zealand. The problem is when ?php echo date(F j, Y, g:i
a); ? 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?
How would i valadate an email string to see if it has invalid charactors?
/ Philip
My code is this ...
?php
// MAIL HEADERS.
$headers = X-Priority: 1\n;
$headers .= Return-path: [EMAIL PROTECTED]\n;
$headers .= From: \Philip Newman\ [EMAIL PROTECTED]\n;
$headers .= Reply-To: \[EMAIL PROTECTED] [EMAIL PROTECTED]\n;
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 is setup to relay mail for specific
domains/users. Evidently, the user
Can someone point me to some documents about pulling images from out side the doc root?
thanks
/ Phil
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
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]
I would liek to check for 0-9 and . charactors i'm using ...
$email = 60.00;
if eregi(^[0-9.])?$,$email) {
echovalid;
} else {
echonot valid;
}
Its not working well. umm ... help ...
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 check for 0-9 and . charactors i'm using
I would like to know where i should be looking to pass an image through PHP
Thanks
/ Phil
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
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 [EMAIL PROTECTED];
php-general [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 7:04 PM
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
$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
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
$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
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
Subject: RE:
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 Explorer toolbar
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 a PHP
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
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
: 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
$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?
--
Philip J
);
}
//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]
$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
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
(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. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
--
PHP General Mailing List (http
HERE.
{
--
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
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.
Head
an error in your SQL syntax near 'WHERE (gAccessLevel = 'level-1'
OR gAccessLevel = 'level-2' OR gAccessLevel = 'l' at line 1
as gAccessLevel = level-3 ...
Any Ideas why this is weong?
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
--
Friends
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 this error
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
?
--
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 // Internet Project.
http
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] Making a Loop.[Scanned]
Philip,
I might be missing
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.
http
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 PROTECTED]
Sent: Wednesday, March 12, 2003 2:37 PM
Subject: Re: [PHP
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]; [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 2:37 PM
Subject: Re: [PHP
--
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 // Internet
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
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:31 AM
Subject: RE: [PHP] PHP SQL Code
I would like yo show
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 allways see
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
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 it better to store user names as upper
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 suggestions?
--
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
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:
PhilipNZ.com
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
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
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
---
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
So in saything that I could do this ...
$s = 10
$comment[1] = '$comment_1';
$comment[2] = '$comment_2';
$comment[3] = '$comment_2';
for($i = 0; $i = $s; $i++) {
echo $comment[$i].br;
}
- Original Message -
From: Timothy Hitchens (HiTCHO) [EMAIL PROTECTED]
To: 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
());
while ($row = mysql_fetch_array($sql_result)) {
$sUser=$row[sUser];
echoba
href=\/actual/thesite.php?startWeb=profilesUser=$sUser\$sUser/a/b,
;
}
?
Is this the best way to do this?
---
Philip J. Newman.
Head Developer.
PhilipNZ.com New Zealand Ltd.
http://www.philipnz.com/
[EMAIL PROTECTED
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 folder namely
) {
}
?
---
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://www.newman.net.nz/
[EMAIL PROTECTED
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
Subject: Re:
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
);
- Original Message -
From: Mark Charette [EMAIL PROTECTED]
To: Philip J. Newman [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 1:28 AM
Subject: RE: [PHP] return the amount of records in a mysql databace
select count(*) as n from ... where ...
-Original
Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Can someone point me in the right direction to find out how i can
return
the
amount of records in a mysql databace ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
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 script
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]
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
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.
Personal Site
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.
Tele: +64 (25) 6144012
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
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
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
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, July 24, 2002 5:43 PM
Subject: Re: [PHP] Newman and sessions.
I
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
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 Solutions
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 2:16 PM
Subject: Re: Newman Says: Error
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 pages. I
have
checked the PHP.INI for something but nothing
leave doc_root undefined. If you are running IIS, you may safely
set cgi.force_redirect=0 in php.ini.
Philip J. Newman
PhilipNZ :: Design Solutions
http://www.philipnz.com/
[EMAIL PROTECTED]
ICQ# 20482482
+64 25 6144012
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
??
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
1 - 100 of 168 matches
Mail list logo