[PHP] Control Point of Access for certain pages.

2002-11-01 Thread Monty
On a site that uses a popup window to display images, I want to prevent people from hotlinking directly to the popup page because it just looks like crap if not sized properly with controls removed. But I'm not sure how I can prevent someone from doing this. It appears the HTTP_REFERER isn't alway

Re: [PHP]-How to do Mapping ?

2002-11-01 Thread Jason Wong
On Friday 01 November 2002 18:57, N.Paramaguru wrote: > Hi, > > I'm currently developing clubs and groups...the individual group pages are > displayed based on the group id like login.php?id=1...etc,during Creation > of the group the user is allowed to enter their subdomain and to select a > domain

Re: [PHP] Problem with 4.2.3?

2002-11-01 Thread Jason Wong
On Saturday 02 November 2002 06:16, Adam Humphrey wrote: > I just upgraded my PHP from 4.2.2 to 4.2.3 and now I have a problem. Right > now I have some HTML with included PHP. When the client opens a page with > PHP and HTML it used to (under 4.2.2) display all the HTML before the PHP > and then

Re: [PHP] Re: Installation prob: I can't see libphp4.so

2002-11-01 Thread Jason Wong
On Saturday 02 November 2002 14:10, Daniele Baroncelli wrote: > I am not sure if I have been clear. > > I can't actually find out where the libphp4.so has been placed. Assuming you have done 'make', 'make install', use 'find / -name libphp4.so' to find where it is. Or just do 'make install' agai

[PHP] Re: Installation prob: I can't see libphp4.so

2002-11-01 Thread Daniele Baroncelli
I am not sure if I have been clear. I can't actually find out where the libphp4.so has been placed. Daniele "Daniele Baroncelli" <[EMAIL PROTECTED]> wrote in message news:20021102060742.99705.qmail@;pb1.pair.com... > Dear all, > > I have been trying to install php 4.2.3 on my virtual server,

[PHP] Installation prob: I can't see libphp4.so

2002-11-01 Thread Daniele Baroncelli
Dear all, I have been trying to install php 4.2.3 on my virtual server, where Apache 1.3.27 is installed The installation procedure seems to be right, but I can't find the "libphp4.so" file My configuration parameters where: ./configure --enable-inline-optimization --with-apxs=/usr/local/apache/

[PHP] Re: confirm subscribe to php-general@lists.php.net

2002-11-01 Thread Bryan Cassidy
[EMAIL PROTECTED] --- E-Mail: Bryan Cassidy <[EMAIL PROTECTED]> Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy <[EMAIL PROTECTED]> It is OK to Cc: me as

[PHP] Re: confirm subscribe to php-general@lists.php.net

2002-11-01 Thread Bryan Cassidy
On 2 Nov 2002 03:26:36 - [EMAIL PROTECTED] wrote: > Hi! This is the ezmlm program. I'm managing the > [EMAIL PROTECTED] mailing list. > > I'm working for my owner, who can be reached > at [EMAIL PROTECTED] > > To confirm that you would like > >[EMAIL PROTECTED] > > added to the php-gen

[PHP] Session Management

2002-11-01 Thread Robert Samuel White
I'm looking for some well thought out advice on session management. I've created a class for handling session management across an unlimited number of domains (without using cookies) however it has some inherent problems. In order to differentiate between users, it is using the IP Address. I rea

[PHP]-How to do Mapping ?

2002-11-01 Thread N.Paramaguru
Hi, I'm currently developing clubs and groups...the individual group pages are displayed based on the group id like login.php?id=1...etc,during Creation of the group the user is allowed to enter their subdomain and to select a domain from the available list and all this details are stored in my

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread Chris Shiflett
SED wrote: When I use sessions in PHP or just plain login/password in $_POST, can 3rd parties or hackers monitor the transmission, between me and user, and somehow decode the transmission and use the variables to login other time or overtake the current session? If so, how likely is for someone

Re: [PHP] Get shipping problem continued!

2002-11-01 Thread Tom Rogers
Hi, Friday, November 1, 2002, 11:11:52 PM, you wrote: SJ> Sorry to keep on at you guys but this is really getting to me now! SJ> I want to pull a shipping quantity (the very last record in the Db) into SJ> a page and am still having problems. Tried looping through the records SJ> and I can't seem

[PHP] ftp_rawlist problems

2002-11-01 Thread Alex
I'm writing a script which crawls through ftp servers, retrieving file listings and saving them to a DB so they may be searched. What happens, is the script connects to the ftp server, and asks for a listing of a directory. The ftp server apparentally sends the script the file listing, but then th

[PHP] Problem with 4.2.3?

2002-11-01 Thread Adam Humphrey
I just upgraded my PHP from 4.2.2 to 4.2.3 and now I have a problem. Right now I have some HTML with included PHP. When the client opens a page with PHP and HTML it used to (under 4.2.2) display all the HTML before the PHP and then process the PHP and finally (when processing completed) finish th

Re: [PHP] Re: getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
yeah i just noticed that myself too, and unfortunatly people do code their html like that.. J On Friday, Nov 1, 2002, at 21:44 US/Eastern, David U. wrote: Jule Slootbeek wrote: oops didn't catch two little bugs Jule function getTitle($url) { $file = @fopen($url, 'r'); if(!$file) { $rline = "

[PHP] Re: getting HTML header from URL [solved]

2002-11-01 Thread David U.
Jule Slootbeek wrote: > oops didn't catch two little bugs > > Jule > > function getTitle($url) > { > $file = @fopen($url, 'r'); > > if(!$file) { > $rline = "Error, contact webmaster"; > } else { > while (!feof ($file)) { > $line = fgets($file); > if (substr_count(strtoupper("$line"), "") >= 1)

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread @ Edwin
"SED" <[EMAIL PROTECTED]> wrote: > I'm not very familiar to this stuff, but if I wanna use https:// do > don't I need a key from Verisign (or similar) to make it work? Yes and no. If you're going to use it on a production server, yes. If it's on a test server but you still want to be somehow "pro

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread @ Edwin
Hello SED, "SED" <[EMAIL PROTECTED]> wrote: > Thank you for the reply, what do you mean by "sniffing", do you mean > everbody can monitor our browsing? I'm not really sure how I can answer your question but let me just put it this way. Everybody CAN monitor our browsing but: 1. That doesn't mean

Re: [PHP] getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
oops didn't catch two little bugs Jule function getTitle($url) { $file = @fopen($url, 'r'); if(!$file) { $rline = "Error, contact webmaster"; } else { while (!feof ($file)) { $line = fgets($file); if (substr_count(strtoupper("$line"), "") >= 1) { $rline = strip_tags("$line");

RE: [PHP] getting HTML header from URL

2002-11-01 Thread Brendon G
Can't you just call the contents of the page into a variable and extract what you need with regular expressions? Php / Html makes no difference its all text to fopen.. ~ > is there a way using fopen() or something similar t

Re: [PHP] getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
hmm, figured it out...all of a sudden it did work: here's the code, it loads a URL and returns the title... dunno what it would be used for, but it aught we some more about php.. i'll probbly implement it on a link page ir something Jule function getTitle($url) { $file = @fopen($url, 'r'); if(

Re: [PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
well, i got it to read a html file, but the problem is that it reads it after it loads it, so it doesn't read the tags, and i'm looking for the string in between and is there a way using fopen() or something similar to read an html/php file before it's loaded? Jule On Friday, Nov 1, 2002, a

[PHP] My 2cents on xml/php

2002-11-01 Thread Gerard Samuel
This is not meant to put down the php/xml combo. Just putting down my 2 cents from my experience thus far, into the archive for anyone else looking for info. I just started getting deep into parsing xml yesterday, and the dust has just begun to settle. Im parsing rss files versions 0.91 - 2.0 j

Re: [PHP] uping to plaese help

2002-11-01 Thread rija
I bit you are doing something like this: copy("$file", "file") ; - Original Message - From: "marcelo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 02, 2002 11:19 AM Subject: [PHP] uping to plaese help > Hi need some help please > > What is wrong with my code? >

Re: [PHP] Can't store info on a mysql database...

2002-11-01 Thread rija
$sql="INSERT INTO `users` (login,passwd) VALUES ('$logintxt', 'password($passwdtxt)')" ; mysql_db_query("mysite",$sql); - Original Message - From: "Mr. BuNgL3" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 02, 2002 10:32 AM Subject: [PHP] Can't store info on a mysq

[PHP] uping to plaese help

2002-11-01 Thread marcelo
Hi need some help please What is wrong with my code? it is supposed to upload 2 files but instead gives me this error Warning: Unable to open 'Array' for reading The code O Leme upload Jornal O Leme  

Fw: [PHP] Can't store info on a mysql database...

2002-11-01 Thread Rick Emery
$md = MD5($passwdtxt); $sql="INSERT INTO users (login,passwd) VALUES (\"$logintxt\", \"$md\")"; mysql_query($sql) or die(mysql_error()); next time, show the error messages you got. Also, ALWAYS USE mysql_error() when executing mysql_query() -- see above = "Mr

[PHP] Can't store info on a mysql database...

2002-11-01 Thread Mr. BuNgL3
Hi... My problem is that i can't store info in a mysql database... ex: I want to store this info in my database: login/passwd and i have the php code... what i'm doing wrong? : | thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

RE: [PHP] Security - Maybe a silly question

2002-11-01 Thread SED
I'm not very familiar to this stuff, but if I wanna use https:// do don't I need a key from Verisign (or similar) to make it work? If so, who control who is what on the internet? Regards, Sumarlidi E. Dadason SED - Graphic Design _ Tel: 896-0376, 461-5501 E-mail:

Re: [PHP] regular expression question

2002-11-01 Thread John Nichel
It might, you should test it to find out. John Meyer wrote: I've got a regexp: (EV[0-9]{2})!([0-9]{4}-[0-9]{2}-[0-9]{2})!(GR[0-9]{2}).txt My question is, will it match this: EV01!2002-11-09!VR01!GR01.txt And anything formatted like this: (EV02, and so forth). -- PHP General Mailing L

[PHP] regular expression question

2002-11-01 Thread John Meyer
I've got a regexp: (EV[0-9]{2})!([0-9]{4}-[0-9]{2}-[0-9]{2})!(GR[0-9]{2}).txt My question is, will it match this: EV01!2002-11-09!VR01!GR01.txt And anything formatted like this: (EV02, and so forth). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

RE: [PHP] Security - Maybe a silly question

2002-11-01 Thread SED
Thank you for the reply, what do you mean by "sniffing", do you mean everbody can monitor our browsing? -Original Message- From: @ Edwin [mailto:copperwalls@;hotmail.com] Sent: 1. nóvember 2002 21:47 To: SED Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Security - Maybe a silly question Hell

Re: [PHP] Number of files in a dir

2002-11-01 Thread rija
cope with readdir() or dir(). I always use one of these functions and I'm wondered if there are more efficient solution to do it ! - Original Message - From: "Shaun Thornburgh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 02, 2002 9:00 AM Subject: [PHP] Number of fi

Re: [PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
i thought fopen() was only for local files, didn't even bother looking, but now i think about it..it makes perfect sence to open url's as well, thanks a lot! Jule On Friday, Nov 1, 2002, at 17:42 US/Eastern, John Nichel wrote: Docs -> Function Reference -> Filesystem Functions -> fopen() It w

Re: [PHP] number_format question

2002-11-01 Thread Hugh Danaher
What you need to do with the input number is to do an ereg_replace() and eliminate the commas from the string, then use the string variable where needed. Then, when you want to display the variable, use the number_format() function. Hope this helps, Hugh - Original Message - From: <[EMAIL

Re: [PHP] getting HTML header from URL

2002-11-01 Thread John Nichel
Docs -> Function Reference -> Filesystem Functions -> fopen() It was hidden. Jule Slootbeek wrote: hey is there a way to get the URL header? the tags etc? i couldn't find any function in the docs, but maybe i just don't know where to look. if there's a function that pulls in an entire page t

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread rija
Yes, Between user and server, everydata pass through DNS, routeur, etc... So if you don't want someone (hackers or FBI of CIA) to decode your data, use SSL server (https://) with certificate- - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, Novem

Re: [PHP] search

2002-11-01 Thread rija
Perhaps the table name 'desc' is reserved word for 'order by' so MySQL cannot use it as table name- So why don't you print out the mysql_error() using for example die- like this: $inquiry = mysql_query("select id,link,heading,desc from links where heading like '%$entry%' or desc like '%$entry%' or

[PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
hey is there a way to get the URL header? the tags etc? i couldn't find any function in the docs, but maybe i just don't know where to look. if there's a function that pulls in an entire page that;s fine too i can work with that.. any help appreciated TIA Jule Jule Slootbeek [EMAIL PROTECTED]

Re: [PHP] Check box with same name

2002-11-01 Thread John Nichel
Add square brackets to the end of the name of each check box, ie... And on the page you submit the form too, you will be able to access this as an array... $_POST['searchStr'] or $_GET['searchStr'], depending on the method the form was posted by. ppf wrote: Hi all: I am having a problem in

Re: [PHP] Check box with same name

2002-11-01 Thread Philip Olson
Hello, Use an array: Note: Only checked checkboxes are passed. Access: print $_REQUEST['foo'][0]; // the first one print $_REQUEST['foo'][1]; // the second You can use named indices too: print $_REQUEST['foo']['bar']; Mix and match, have fun. Regards, Philip -- PHP Gen

[PHP] Number of files in a dir

2002-11-01 Thread Shaun Thornburgh
How can i find out how many files exist in a dir? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Theory question

2002-11-01 Thread Matt T. Galvin
Well, what you could do is write one function that gets all the values that you need and fills the variables up with them, AND write a bunch of functions that get one value at a time. Then depending on the conditions or parameters/values needed or recieved and such, you can call the fun

[PHP] Re: Capitalizing names etc. part II - found a solution

2002-11-01 Thread -<[ Rene Brehmer ]>-
Hi Richard Archer, On Thu, 31 Oct 2002 12:24:15 -, you wrote about "RE: Capitalizing names etc. part II - found a solution" something that looked like this: >You should consider the fact that, even as surnames, names like >Mackintosh and Mackenzie (and as someone else suggested here 'Macon')

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread @ Edwin
Hello, "SED" <[EMAIL PROTECTED]> wrote: > When I use sessions in PHP or just plain login/password in $_POST, can > 3rd parties or hackers monitor the transmission, between me and user, > and somehow decode the transmission and use the variables to login other > time or overtake the current session

[PHP] Theory question

2002-11-01 Thread Daniel Masson
Hi every1 This is a theorical question about the best way to use classes. I have a class named anything, and also theres a table named ahything .. The class attributes are the same fields of the table like this Class anything { var $something1; var $something2; var $so

[PHP] Extracting email addresses

2002-11-01 Thread jr
Hello Everyone, Does anyone have an regular expression or other way to extract an email address out of a string. I have been using: if (ereg ("^" . "[a-z0-9]+([_\\.-][a-z0-9]+)*" .//user "@" . "([a-z0-9]+([\.

[PHP] Security - Maybe a silly question

2002-11-01 Thread SED
When I use sessions in PHP or just plain login/password in $_POST, can 3rd parties or hackers monitor the transmission, between me and user, and somehow decode the transmission and use the variables to login other time or overtake the current session? If so, how likely is for someone to manage it

[PHP] Check box with same name

2002-11-01 Thread ppf
Hi all: I am having a problem in accessing form data from multiple check box of same name with different values, like this Where

Re: [PHP] Re: uploading files

2002-11-01 Thread Shaun Thornburgh
Thats all fine Here is my form header "Kevin Stone" <[EMAIL PROTECTED]> wrote in message news:020201c281ec$04515820$6601a8c0@;kevin... > Confirm that you're using the proper header information in your HTML > tag.. > > -Kevin > > - Original Message - > From: "Shaun Thornburgh" <[EMAIL

Fw: [PHP] Re: uploading files

2002-11-01 Thread Kevin Stone
Confirm that you're using the proper header information in your HTML tag.. -Kevin - Original Message - From: "Shaun Thornburgh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 1:51 PM Subject: [PHP] Re: uploading files > My apologies, here is the code! > >

Re: [PHP] PHP Login Sessions

2002-11-01 Thread @ Edwin
Hello, "Jay Fitzgerald" <[EMAIL PROTECTED]> wrote: [snip] > === > session_start(); > > if (isset("valid_id")) > { > echo "$_SESSION[valid_id]"; > } > else [/snip] Perhaps, it's because you need to ask if (isset($_SESSION['valid_id'])) ? - E -- PHP General Mailing

[PHP] Re: uploading files

2002-11-01 Thread Shaun Thornburgh
My apologies, here is the code! //copy image to server if ($image != "none") { if (copy ($image, $dir.$image_name)){ echo "File upload successful!"; } else { echo "File upload unsuccessful!"; } //new name of image $new_name = "$property_id-$category_id-$sub_category_id.jpg";

Re: [PHP] phpinfo

2002-11-01 Thread Matt T. Galvin
Restart apache... that should be it on XP use the Restart Script in you apache program group on unix do a /usr/local/apache/bin/apachectl graceful or just apachectl graceful if it is in your path HTH, Matt At 05:50 AM 11/2/2002 +0900, you wrote: <[EMAIL PROTECTED]> -- PHP General Mail

[PHP] uploading files

2002-11-01 Thread Shaun Thornburgh
I am attempting to upload image files to the server from a users browser using the following code, however, the images seem to get corrupted, they look completely different and the file sizes are generally smaller, also it sometimes says file upload unsuccessful, even when it does upload the file?

Re: [PHP] search

2002-11-01 Thread @ Edwin
Hello, "samug" <[EMAIL PROTECTED]> wrote in message news:20021101163718.65263.qmail@;pb1.pair.com... > There's no php.sql, so I'll put it here. > There's php.db, however... :) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpinfo

2002-11-01 Thread @ Edwin
Hello, (B (B"David Russell" <[EMAIL PROTECTED]> wrote: (B> Hi all, (B> (B> I upgraded php and apache on my development machine (Windows XP). I am (B> now running apache 1.3.27 and php 4.2.3. (B> (B> When I run a phpinfo(), I get my full list of stuff as expected, except (B> that the apac

Re: [PHP] String Expression for aplpahnumeric password

2002-11-01 Thread @ Edwin
Hello, (B (B"Adam" <[EMAIL PROTECTED]> wrote in message (B[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... (B> I need a string expression to verify an alpha numeric password. This is (Bwhat (B> i've come up with , however it does not work: (B> (B> elseif ( (!ereg ("^[a-zA-Z]+$", $password)) ||

[PHP] PHP Login Sessions

2002-11-01 Thread Jay Fitzgerald
What am I doing wrong here? I have a login form that visitors enter their "use"name and "use_psswrd" in to log in...the form action is this code: == session_start(); if ($_REQUEST[use_name] && $_REQUEST[use_psswrd]) { $connection = mysql_connect("SERVER","USER","PASS") o

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread @ Edwin
<[EMAIL PROTECTED]> wrote: > > > Asking for something illegal is *wrong*. > > But just stealing it without asking is OK? > Tell me. if (that was a joke){ I need to rephrase myself... > Let's get busy coding--jokes and laughs (and ...whatever) > can be found somewhere else... should

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0?

2002-11-01 Thread ed
> Asking for something illegal is *wrong*. But just stealing it without asking is OK? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread @ Edwin
Asking for something illegal is *wrong*. But, there's always a better/proper way of dealing with this kind of person/situation. Let's get busy coding--jokes and laughs (and ...whatever) can be found somewhere else... - E -- "Do not answer anyone

[PHP] Regular expression problem

2002-11-01 Thread Stuart
I just moved some *working* code from a Win2k server running PHP 4.2.1 to a FreeBSD server running 4.2.3 and the following code no longer works... $templatetext = preg_replace("//e", "g_includecallback(\"\\1\")", $templatetext); if (!preg_match("/([[:ascii:]]+?)([[:ascii:]]+?)([[:ascii:

RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread Jay Blanchard
Easy Liam, the guy posted to the list asking for something illegal. It is not like he had posted something like we have all seen before where a broad question is asked and a broader answer given. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

RE: [PHP] Who can tell me where I can get the cracked Zend Encode r3.0 ?

2002-11-01 Thread Liam . Gibbs
<> Disrespect or not, anyone ever copy a game? Or a CD or tape? Or a movie? Anyone ever download anything off the Internet? It's all the same, and I doubt any of the people on the list showing the same disrespect this person may have showed have never done that. Again, cut this poster some slack a

Re: [PHP] Who can tell me where I can get the cracked Zend Encode r3.0 ?

2002-11-01 Thread nicos
Okay enough now. -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "John Nichel" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I for one think that poster didn't enough grief. I mean, you go on and > on about making a 'mistake',

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread John Nichel
I for one think that poster didn't enough grief. I mean, you go on and on about making a 'mistake', but it's not like his mistake was to ask a JavaScript or MySQL question in a php mailing list. He asked for an illegal version of software from those who make / contribute to the software. Tha

php-general Digest 1 Nov 2002 18:19:05 -0000 Issue 1679

2002-11-01 Thread php-general-digest-help
php-general Digest 1 Nov 2002 18:19:05 - Issue 1679 Topics (messages 122384 through 122438): PHP-GTK 0.5.2 released 122384 by: Andrei Zmievski Re: Displaying Data of a MySQL Table in PHP 122385 by: Jason Wong php development environment 122386 by: Simon Taylor

RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread Liam . Gibbs
> > Who can tell me where I can get the cracked Zend Encoder 3.0 ? >Are you a muppet? > >This list is run by the people who make Zend Encoder! > >FOOL >Ah, my first laugh of the day. Okay, that's enough. I'm incredibly disappointed in this list. It's very helpful at times, but at other times can

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread Steve Keller
At 10/31/2002 03:00 PM, John Wards wrote: On Thursday 31 Oct 2002 3:00 pm, jianking wrote: > Who can tell me where I can get the cracked Zend Encoder 3.0 ? Are you a muppet? This list is run by the people who make Zend Encoder! FOOL Ah, my first laugh of the day. -- S. Keller UI Engineer T

Re: [PHP] search

2002-11-01 Thread John Nichel
And you may want to try $query = "select `id`, `link`, `heading`, `desc` from `links` where `heading` like '%" . $entry . "%' or `desc` like '%" . $entry% . "' or `keyword` like '" . %$entry% . "'"; if ( ! $inquiry = @mysql_query ( $query, $connection ) ) Robert Cummings wrote: Echo your qu

Re: [PHP] search

2002-11-01 Thread Robert Cummings
Echo your query and ensure that $entry has data in it, otherwise matching '%%' will match everything as you are getting. Cheers, Rob. samug wrote: > > There's no php.sql, so I'll put it here. > > I'm trying to do a search from mysql database like this: > > if (!$inquiry = mysql_query("select i

Re: [PHP] php4 Mac OSX

2002-11-01 Thread Matt T. Galvin
uncompress eXtremePHP. It may get have a weird directory name. Change the directory name to xpl. copy xpl to /Users/pierreva/Sites/xpl either from the CLI or just drag the xpl dir into your Site dir cd /usr/local/lib sudo vi php.ini while in vi type /auto_prepend (this is to search to the

[PHP] search

2002-11-01 Thread samug
There's no php.sql, so I'll put it here. I'm trying to do a search from mysql database like this: if (!$inquiry = mysql_query("select id,link,heading,desc from links where heading like '%$entry%' or desc like '%$entry%' or keyword like '%$entry%'",$connection)){ print "Search was unsuccesful!

Re: [PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread Tom Woody
The syntax as I have used it is (not the cleanest or best way to do it by a long run - but it works): > this will have the checkbox be checked by default, also you can do what ever other things you need to do based on the on/off conditions. On Fri, 1 Nov 2002 10:47:43 -0500 "DonPro" <[EMAIL PRO

Re: [PHP] php4 Mac OSX

2002-11-01 Thread Pierre Vaudrey
Did you install from the source code or a pre-compiled bin? (from Marc Liyanage.?) I installed PHP from Marc Liyanage pre-compiled bin If so there is usually no php.ini file with it. If you are using Marc's binary package then create a blank php.ini file: sudo mkdir -p /usr/local/li

Re: [PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread John Nichel
if ( isset ( $_POST['shipper_save'] ) ) { echo ( "It's Checked" ); } Or use $_GET['shipper_save'] depending on your forum method. DonPro wrote: Hi, I have a form with a checkbox like so: When I submit, the value is always shown as "ON" regardless of whether I've checked the checkbox or not.

[PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread DonPro
Hi, I have a form with a checkbox like so: When I submit, the value is always shown as "ON" regardless of whether I've checked the checkbox or not. So this begets the question, How can I code my PHP form processing script to determine whether the checkbox was checked? Thanks, Don -- PHP Ge

Re: [PHP] OT - mysql question...

2002-11-01 Thread John Nichel
http://www.mysql.com/doc/en/Adding_users.html http://www.mysql.com/documentation/lists.html Kelly Meeks wrote: Sorry for the OT post, quick mysql question... I've found a couple of cool utilites that will create basic forms from a mysql table (add/edit/delete/search), which look they could save

[PHP] phpinfo

2002-11-01 Thread David Russell
Hi all, I upgraded php and apache on my development machine (Windows XP). I am now running apache 1.3.27 and php 4.2.3. When I run a phpinfo(), I get my full list of stuff as expected, except that the apache version reported is 1.3.24. Has anyone else seen this. Have I done something wrong? Th

[PHP] OT - mysql question...

2002-11-01 Thread Kelly Meeks
Sorry for the OT post, quick mysql question... I've found a couple of cool utilites that will create basic forms from a mysql table (add/edit/delete/search), which look they could save some time coding. However, I can't connect with them because my server is setup as localhost. I How do you cr

Re: [PHP] php4 Mac OSX

2002-11-01 Thread Matt T. Galvin
Did you install from the source code or a pre-compiled bin? (from Marc Liyanage.?) If so there is usually no php.ini file with it. If you are using Marc's binary package then create a blank php.ini file: sudo mkdir -p /usr/local/lib sudo touch /usr/local/lib/php.ini Then you wi

RE: [PHP] Require_once problem

2002-11-01 Thread Ford, Mike [LSS]
> -Original Message- > From: @ Darwin [mailto:superbus22@;attbi.com] > Sent: 01 November 2002 10:17 > > Well, the way I've read it is that if you use require within control > structures then all files are included, regardless of whether > the script > exits before it reaches its next if..

[PHP] PHP & WebDAV

2002-11-01 Thread GC
I'm using WebDAV in Apache 2, whenever I try to get an html file it works fine, but when I try to get a PHP file I get an error saying it cannot get filename.php. How come I can only get html files through WebDAV? Is there a way to change this? Thanks!! -- PHP General Mailing List (http://ww

[PHP] String Expression for aplpahnumeric password

2002-11-01 Thread Adam
I need a string expression to verify an alpha numeric password. This is what i've come up with , however it does not work: elseif ( (!ereg ("^[a-zA-Z]+$", $password)) || (!ereg ("^[0-9]+$", $password))) can anybody help? Thanks in advance ADAM -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Help please.

2002-11-01 Thread Jason Wong
On Friday 01 November 2002 22:04, Steve Jackson wrote: Please use a descriptive subject! > I have called it in another page by doing > get_shipping($shipping) > > And then > > Echo "test $shipping"; $returned_variable = get_shipping($shipping); echo $returned_variable; Or you can use the return

[PHP] Re: Get shipping problem continued!

2002-11-01 Thread Michael T. Babcock
Steve Jackson wrote: function get_shipping($shippingvar) { $conn = db_connect(); $query = mysql_query("SELECT MAX(receipt_id) from receipts"); $myrow = mysql_fetch_row($query); $shippingvar = $myrow["shipping"]; return $shippingvar; Check http://php.net/mysql_fetch_row ... specifically, mysql

[PHP] Help please.

2002-11-01 Thread Steve Jackson
Hi, I have been trying for most of the day to pull a variable from a db. Finally managed that. Now I need to pass the result of a function to another function. How do you do this? I assume the following if called in another page can be used? function get_shipping($shipping) { $conn = db_connect()

[PHP] how to avoid security thread when user able to press back button?

2002-11-01 Thread James Ting
hi.. a newbie here a user fill up a form with username and password passing the form through 'POST' a session was created, a user login, a user logout + session destroy, but after that if the user press back button on the browser seems like the browser will repost the username and password back t

[PHP] Cookies

2002-11-01 Thread Shaun
Hi, When the user logs in , i create a session with session varialbles, the session cookie is saved on clients computer. When i log off i say session_unset(); session_destroy(); setcookie(session_name()); The session in the tmp is deleted , but the cookie is still there , i know this because wh

[PHP] Cookies

2002-11-01 Thread Shaun
Hi, When the user logs in , i create a session with session varialbles, the session cookie is saved on clients computer. When i log off i say session_unset(); session_destroy(); setcookie(session_name()); The session in the tmp is deleted , but the cookie is still there , i know this because wh

[PHP] php4 Mac OSX

2002-11-01 Thread Pierre Vaudrey
I installed PHP 4.2.3 on Mac OS 10.2.1 , activating the PHP Module with the following commands on terminal window cd /etc/httpd" sudo apxs -e -a -n php4 libexec/httpd/libphp4.so" echo 'echo "AddType application/x-httpd-php .php" >> /etc/httpd/httpd.conf' | sudo sh -s It works fine and I would l

[PHP] Get shipping problem continued!

2002-11-01 Thread Steve Jackson
Sorry to keep on at you guys but this is really getting to me now! I want to pull a shipping quantity (the very last record in the Db) into a page and am still having problems. Tried looping through the records and I can't seem to get it to return anything: function get_shipping($shippingvar) { $

RE: [PHP] Serverside script

2002-11-01 Thread John W. Holmes
> I need to write a stand alone script runing on a server that checks and > updates a database every week, is this posable and if so > could some one direct me to a tutorial or to any info on doing this. Yes, it's possible. Look into cron to run your script on a schedule. ---John Holmes... --

Re: [PHP] Serverside script

2002-11-01 Thread Petre Agenbag
Are you familiar with PHP, or are you more worried about how to "call" and execute the script from the server itself on a weekly basis ( cron job) ? On Fri, 2002-11-01 at 14:41, Davíð Örn Jóhannsson wrote: > I need to write a stand alone script runing on a server that checks and > updates a da

[PHP] Serverside script

2002-11-01 Thread Davíð Örn Jóhannsson
I need to write a stand alone script runing on a server that checks and updates a database every week, is this posable and if so could some one direct me to a tutorial or to any info on doing this. Regards, David

[PHP] Need help with regexp for preg_split

2002-11-01 Thread David Brannlund
Hi, I need some help with a regexp for preg_split. I want the string str = "this is 'a string that' contains phrases"; to be split into: arr[] = "this"; arr[] = "is"; arr[] = "a string that"; arr[] = "contains"; arr[] = "phrases"; but I'm having some trouble coming up a good regexp

Re: [PHP] Apache Installation Problem

2002-11-01 Thread Jason Wong
On Friday 01 November 2002 19:11, Ramesh Pillai wrote: > Hai! > I had downloaded Apache2.0.43 from apache site and > installed on my linux7.1 box, the configure/make .make > install went smooth, after that I started Apache > server. > > Now my problem is when I tried to access localhost > through a

RE: [PHP] Simple Problems taking me hours to solve!

2002-11-01 Thread Petre Agenbag
Well, OK I think your problem is here: You sql *could* and probably does return more than one row. Yet, your code as it is now will only return the first row. You need to cycle through the result rows with a while statement, like this: while ($myrow = mysql_fetch_assoc($result)) { $my_id

Re: [PHP] Array solution...

2002-11-01 Thread Jason Wong
On Friday 01 November 2002 19:22, Davíð Örn Jóhannsson wrote: > I have two arrays and I have complete list of numbers in one of them, > lets call it $complete[] > and another that has some values of the complete one, lets call that one > $part[], now if I want to > return an array with all the valu

  1   2   >