[PHP] referer keywords

2003-01-21 Thread Dhaval Desai
Hello ppl, I want to find out what keywords are people exactly using to get to my website and from where are they coming(Which search engine?)...I want to make a custom script, I don't want to use my web server logs or anything... Is it possible..?? - Dhaval ___

Re: [PHP] Measuring Query Times

2003-01-21 Thread Jason Wong
On Wednesday 22 January 2003 14:45, Peter Janett wrote: > I'm trying to figure out if there is an easy way to measure how long my > queries in PHP/MySQL are taking to execute. Using microtime() before and after your query will give you an rough idea. -- Jason Wong -> Gremlins Associates -> www.g

[PHP] Measuring Query Times

2003-01-21 Thread Peter Janett
I'm trying to figure out if there is an easy way to measure how long my queries in PHP/MySQL are taking to execute. Any tips or code examples most appreciated. Thanks, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - C

[PHP] Comparing two objects

2003-01-21 Thread Jeff Moore
I'm trying to compare two objects with == and === and getting the following error message: Fatal error: Nesting level too deep - recursive dependency? The object has several child objects which hold a reference to the parent in them. I want to check the reference in the child object to make su

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Michael Sims
On Tue, 21 Jan 2003 20:17:40 -0700, you wrote: >I tried a test file with this, and the form is sent, and the nph-test2.php >file returns this > >Status: 302 >Content-type: text/html >X-Powered-By: PHP/4.3.0 >Location: test.php >Set-Cookie: testcookie=test I'm a bit confused. Is it working for yo

Re: [PHP] dreading OOP

2003-01-21 Thread olinux
The most helpful intro to OOP for me is the sidebar here: http://webreference.com/perl/xhoo/php1/5.html --- Jay Paulson <[EMAIL PROTECTED]> wrote: > The easiest way for me to explain and understand OOP > was to think of it this > way. > __ Do you

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Mike Potter
I tried this one as well. When trying to load, the browser says HTTP 500 - Internal server error Internet Explorer I even rebooted! Mike "Jason K Larson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Follow the ISAPI module install instructions. > > http://

Re: [PHP] Read Mysql & Access

2003-01-21 Thread Rick Emery
what did you find with a google search? - Original Message - From: Karl James To: php Sent: Monday, January 20, 2003 7:01 PM Subject: [PHP] Read Mysql & Access Is there a free ware program that will, allow me to take mysql dbase and convert it to ms ascess?

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Mike Potter
I tried a test file with this, and the form is sent, and the nph-test2.php file returns this Status: 302 Content-type: text/html X-Powered-By: PHP/4.3.0 Location: test.php Set-Cookie: testcookie=test Here is my code: Thanks for your time. Mike "Michael Sims" <[EMAIL PROTECTED]> wrote in me

[PHP] file uploads received, but mangled

2003-01-21 Thread af
Hi all. 2nd try -- Is the following possible to work around, or is it a bug that I should be reporting? I'm having issues uploading files whose names don't necessarily end with the correct extension, in particular text files which don't end in .txt. (Why they don't is complicated, and it's im

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn'tset!

2003-01-21 Thread Jason k Larson
Follow the ISAPI module install instructions. http://www.php.net/manual/en/install.iis.php Regards, Jason k Larson Mike Potter wrote: Do you know how do do this? Thanks, Mike "Jason K Larson" wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >Discussion on this list has sugge

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Michael Sims
[top-posting fixed] >"Jason K Larson" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Discussion on this list has suggested that it can work if PHP is set to >> run as ISAPI, not CGI. >> >Do you know how do do this? Although using the ISAPI dll version of PHP

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Mike Potter
Do you know how do do this? Thanks, Mike "Jason K Larson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Discussion on this list has suggested that it can work if PHP is set to > run as ISAPI, not CGI. > > HTH, > Jason k Larson > > > Mike Potter wrote: > > HE

[PHP] How do I find email patterns in a query string in a text and urlescape them?

2003-01-21 Thread Phil Powell
If I have a text of string like this: $stuff = "Hi my name is Phil, my email is [EMAIL PROTECTED] and you can find me at http://www.xx.yy?[EMAIL PROTECTED]";; What I want to do is to "validate" all patterns resembling an email address EXCEPT those found within the query string of a URL. I woul

Re: [PHP] Re: fscanf

2003-01-21 Thread Kris
Actually found a little problem I forgot to mention some lines can be text, t e x t, te xt t e xt, text, text This splits it into more then 3 parts. Any ideas on this? Shouldn't I be able to use just fscanf to get the results I'm after?? Thanks K - Original Message - From: "Brian T. A

RE: [PHP] working with pop up windows

2003-01-21 Thread Peter Houchin
ahh shoot!!! forgot to add the values of the form once submitted go to another page before it's ment to go back to the parent page.. -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 11:18 AM To: 'Peter Houchin'; 'php gen' Subje

RE: [PHP] working with pop up windows

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
Post the results to the target being the parent window and have a JavaScript self.close() call on the window on submit/click. Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Peter Houchin [mailto:[EMAIL PROTECTED]] > Sent: Wednesda

Re: [PHP] Re: fscanf

2003-01-21 Thread Kris
Thanx Brian...Works good enough for me :) K - Original Message - From: "Brian T. Allen" <[EMAIL PROTECTED]> To: "'Kris'" <[EMAIL PROTECTED]>; "'Jason k Larson'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 10:58 AM Subject: RE: [PHP] Re: fscanf > Given

[PHP] working with pop up windows

2003-01-21 Thread Peter Houchin
howdy all, a page with a link to a pop up window.. when a user clicks on it a window opens with a little form on it, now what i want to happen is when the user hits submit and it does all of it's processing it 1) closes the popup window 2) updates the original page where the user first started ei

[PHP] Read Mysql & Access

2003-01-21 Thread Karl James
Is there a free ware program that will, allow me to take mysql dbase and convert it to ms ascess?   Thanks Karl   IncrediMail - Email has finally evolved - Click Here

RE: [PHP] Re: fscanf

2003-01-21 Thread Brian T. Allen
Given the information below this works: I put it between pipes to confirm the absence of spaces... It may or may not be the best way, but it is one way. Brian > -Original Message- > From: Kris [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 5:02 PM > To: Jason k Larson >

RE: [PHP] numbers

2003-01-21 Thread cj
I used the floor() function -Original Message- From: Brian T. Allen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 11:49 AM To: [EMAIL PROTECTED]; 'Php-List (E-mail)' Subject: RE: [PHP] numbers Which, for the list, can be number_format(), among other things. Brian > -O

RE: [PHP] numbers

2003-01-21 Thread Brian T. Allen
Which, for the list, can be number_format(), among other things. Brian > -Original Message- > From: cj [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 5:18 PM > To: Php-List (E-mail) > Subject: RE: [PHP] numbers > > > I just found the answer > > -Original Message-

[PHP] session_register() Killing MySQL Connection

2003-01-21 Thread Brian T. Allen
Hi, Friday night I upgrade my server with the following: Apache 1.3.27 PHP 4.3.0 MySQL 3.23.54a Mod_SSL 2.8.12 OpenSSL 0.9.7 ZendOptimizer 2.1.0 Immediately I started having really weird problems that proved almost impossible to debug. I finally narrowed it down to a few lines of code that get

Re: [PHP] security question regarding including files..

2003-01-21 Thread Sean Burlington
Chris Shiflett wrote: --- Sean Burlington <[EMAIL PROTECTED]> wrote: I'm not sure what harm could be done by this though. if a broswer attempts to load an image reference by an I sent a response about this earlier, but you should research CSRF and XSS. It does not matter that the browser sh

RE: [PHP] numbers

2003-01-21 Thread cj
I just found the answer -Original Message- From: cj [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 11:07 AM To: Php-List (E-mail) Subject: [PHP] numbers G'day all I have a calculation which gives me a number ie 6976587.4169922 This number is works outed by dividing a variab

RE: [PHP] Blueshoes App Framework

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
If you are looking for Frameworks make sure you select one that you understand the internals of not just because it will reduce your dev time as sooner rather than later something in the internals will fail and you will need to deal with it or your rapid dev becomes the slowest on the planet. Also

[PHP] numbers

2003-01-21 Thread cj
G'day all I have a calculation which gives me a number ie 6976587.4169922 This number is works outed by dividing a variable with 1024 Is there any way to strip anything after the . so I just want the number 6976587 and not anything after the . Thanks CJ -- PHP General Mailing List (http://www.

Re: [PHP] Re: fscanf

2003-01-21 Thread Kris
I've tried $array = fscanf ($fp, "%s, %s, %s\n"); earlier. It picks up array[0] == text, I need array[0] == text array[1] == text array[2] == text Thanx K - Original Message - From: "Jason k Larson" <[EMAIL PROTECTED]> To: "Kris" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wedn

[PHP] Blueshoes App Framework

2003-01-21 Thread Weston Houghton
Does anyone have any experience with or comments on blueshoes? I've not investigated it much, as the license seems a bit odd, but I thought I'd get some info on it if anyone had any, so far I haven't found anyone who has tried it, which seems a tad weird to me. http://www.blueshoes.org/ Cheer

RE: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Rich Gray
Mike IIRC this is a known bug with IIS (not PHP) when it gets the http redirect it junks the cookie - sorry I can't remember much more detail than that... Workaround maybe is to spit out an HTML based META refresh redirect tag instead of using the header() call. HTH Rich -Original Message-

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn'tset!

2003-01-21 Thread Jason k Larson
Discussion on this list has suggested that it can work if PHP is set to run as ISAPI, not CGI. HTH, Jason k Larson Mike Potter wrote: HELP! I know I'm new at this so please don't laugh. But I can't get this to work! I am using Microsoft IIS with the latest PHP installed. Here's a smple: . . .

Re: [PHP] Re: fscanf

2003-01-21 Thread Jason k Larson
I think he is looking more for: $array = fscanf ($fp, "%s, %s, %s\n"); But with split, wouldn't that need to be: $array = split(', ', $line); http://www.php.net/manual/en/function.split.php or $array = preg_split ('/[\s,]+/', $line); using: http://www.php.net/manual/en/function.preg-split.php

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Chris Shiflett
--- Mike Potter <[EMAIL PROTECTED]> wrote: > I am using Microsoft IIS with the latest PHP installed. > Here's a smple: > > setcookie("testCookie", "testValue", time() + 3600, "/"); > header("Location: http://newpage.php";); > exit; This will not work with IIS. You need to use a meta refresh or so

[PHP] Fw: I need my PHP script to call a TCL proc

2003-01-21 Thread Phil Powell
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 5:36 PM Subject: I need my PHP script to call a TCL proc > From: [EMAIL PROTECTED] (Phil Powell) > Newsgroups: comp.lang.tcl,comp.lang.php > Subject: I need my PHP script to call a TCL

[PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

2003-01-21 Thread Mike Potter
HELP! I know I'm new at this so please don't laugh. But I can't get this to work! I am using Microsoft IIS with the latest PHP installed. Here's a smple: . . . setcookie("testCookie", "testValue", time() + 3600, "/"); header("Location: http://newpage.php";); exit; Later, I pull the cookie: ech

[PHP] Re: fscanf

2003-01-21 Thread Philip Hallstrom
Why not: $array = split("[ ,]", $line); ? On Wed, 22 Jan 2003, Kris wrote: > Hi > > I'm having dramers with fscanf > I have a line: > text, text, text > > I can't work out how to scan removing the comma and whitespace. > the text can be absolutle anything. > > at the moment I have > $array = fs

Re: [PHP] ADV SQL Help Needed.

2003-01-21 Thread Rick Emery
SELECT risk_level, COUNT(*) FROM mytable GROUP BY risk_level; - Original Message - From: "[-^-!-%-" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 6:06 AM Subject: [PHP] ADV SQL Help Needed. Hello everyone, I need help with the following query. I have a t

Fw: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Rick Emery
if ( $_POST['passwd'] != $db['password'] ) {header("Location: loginfailed.html"); exit; } - Original Message - From: "Shams" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, January 21, 2003 3:48 AM Subject: [PHP] $header = "Location:" being ignored! Hi Group, I basically have some

[PHP] fscanf

2003-01-21 Thread Kris
Hi I'm having dramers with fscanf I have a line: text, text, text I can't work out how to scan removing the comma and whitespace. the text can be absolutle anything. at the moment I have $array = fscanf ($fp, %s%[^,] %s%[^,] %s%[^,]); Thanks Kris -- PHP General Mailing List (http://www.ph

Re: [PHP] HELP HELP on a file parser

2003-01-21 Thread 1LT John W. Holmes
> I need some help, I think this is probably really simple and I was wondering > if anyone had some code I could use to help me write this. > > I need a page to parse a text file with a list of numbers, and then take > those numbers and parse another file with over 7MB of information and to > look

Fw: [PHP] encrypt data with pgp

2003-01-21 Thread Ermelir
just for explain me another better: if I had post in this mailing list, it's just because I want to find another way to use this function under windows system function pgp_encrypt($keyring_location, $public_key_id, $plain_text) { $key_id = EscapeShellArg($public_key_id); putenv("PGPPATH=$keyring_

[PHP] HELP HELP on a file parser

2003-01-21 Thread Didier McGillis
I need some help, I think this is probably really simple and I was wondering if anyone had some code I could use to help me write this. I need a page to parse a text file with a list of numbers, and then take those numbers and parse another file with over 7MB of information and to look for thos

Re: [PHP] dreading OOP

2003-01-21 Thread Chris Worth
On Tue, 21 Jan 2003 09:47:28 -0600, Chris Boget wrote: >> > equates an object to a function >> You'd be better off trying to equate an object to a data type. > >Why is that? Please explain? my 2 cents are as follows. Objects have functions that return data types as many objects contain data. a

RE: [PHP] Page Rendering

2003-01-21 Thread Bill Arbuckle, Jr.
This worked ... thanks! But I am confused. It has worked with PHP_SELF in the past. Why would it not evaluate the variable on the server. Or more specifically, why would the page render fine in both Netscape and IE with the links (from PHP_SELF) being the only thing wrong with the page? Just t

[PHP] Re: File upload problem

2003-01-21 Thread Bobby Patel
Since you have 'safe-mode' on, Register globals will be turned off, so you should test $HTTP_POST_VARS['Submit'], instead. "John M" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I have the code below. It's a simple file upload. But it doesn't work. >

RE: [PHP] File upload problem

2003-01-21 Thread Matt Schroebel
> -Original Message- > From: John M [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 30, 2003 3:05 PM > To: [EMAIL PROTECTED] > Subject: [PHP] File upload problem > > > Hello, > > I have the code below. It's a simple file upload. But it doesn't work. > Before the line if(isset( $Submit )

RE: [PHP] File upload problem

2003-01-21 Thread Edward Peloke
John, I have Win 98 with Apache 2 and it worked fine for me, once I commented out the file type check, didn't seem to like any file I tried, even gifs. I also had to create a folder named 'files' under my htdocs folder in apache. Eddie -Original Message- From: John M [mailto:[EMAIL PRO

[PHP] File upload problem

2003-01-21 Thread John M
Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line if(isset( $Submit )) is an echo which can I read. But after choosing a file and press a submit nothing happens. Why is if(isset( $Submit )) always false? Maybe my apache or php config is wrong? I use Win

[PHP] create new odbc connection..please help

2003-01-21 Thread Edward Peloke
Can someone point me in the right direction on how to create a new odbc connection? I need to use php to actually set up the connection. I know how to use php to connect once the connection is created and know how to create on using control panel>etc, just don't know how to create one using php.

RE: [PHP] Wrapping SQL results in 2 tables

2003-01-21 Thread Mike Smith
Just goes to show there are such things as dumb questions. Thanks for pointing me in the right direction. I'm using MSSQL, but mssql-data-seek does the trick! Thanks, Mike -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 11:35 AM To: Mike

Re: [PHP] activate an external link thru crontab

2003-01-21 Thread Chris Shiflett
--- Patrick <[EMAIL PROTECTED]> wrote: > i want my page to send a report to a url, like a > form. Is that possible thru php? Sure. For the GET method, you can just use something like fopen() to open the URL. For the POST method, you can try something like this: http://www.php.net/";> Chris --

[PHP] RE: [PHP-DB] Re: [PHP] build menu with mysql data

2003-01-21 Thread Edward Peloke
Marc, Here is the entire script... It is doing a lot of things you don't need so you will have to sift through it to see what you want. If you have any questions, just ask. Eddie   Depart Location # Pass Return Return Location Craft Preference Lowes

Re: [PHP] Wrapping SQL results in 2 tables

2003-01-21 Thread Chris Shiflett
--- Mike Smith <[EMAIL PROTECTED]> wrote: > I'm trying to present a phone directory in a > printable format that will make "most" people > happy. What I need to do is take the results > from our database and "break" it into two > tables. I can't really tell what you are trying to do, but it sounds

[PHP] activate an external link thru crontab

2003-01-21 Thread Patrick
Hi, i have a crontab that runs my script every 15min to check if anything has changed since the last control, if something has changed i want my page to send a report to a url, like a form. Is that possible thru php? regards patrick -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] simple way to edit textfiles?

2003-01-21 Thread Patrick
Hi, i want to edit just one post in the middle of 100 posts, i use this code to loop thru the posts $fp = fopen($servername, "r") or die("error"); $wuser = file($servername); $num = -1; for ($i=0; $i < count($wuser); $i++) { $wtemp = explode(";;", $wuser[$i]); if ($ausername == $wtemp[0])

[PHP] Wrapping SQL results in 2 tables

2003-01-21 Thread Mike Smith
I'm trying to present a phone directory in a printable format that will make "most" people happy. What I need to do is take the results from our database and "break" it into two tables. ie. Extension FName LName Dept. ...25x Extension FName LName Dept. ...Records 26+ This is what I have don

Re: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
Ok, here's what I've found: register_globals is ON however register_argc_argv is OFF on the server with problems. The server is a Sun Cobalt server running some form of Linux. My local machine that I work on is WinXP Pro using PHP 4.3.0, on this machine I've got register_globals set to ON and r

Re: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
Ok, here's the sample code I found in one of my PHP books - it doesn't work exactly like my original script for checking passwords, but it does a close enough job to let me know that the sessions aren't staying registered. I could ask my host if anyone else has had problems, but that would mean

Re: [PHP] Detecting posts from outside site

2003-01-21 Thread Chris Shiflett
--- Jim Lucas <[EMAIL PROTECTED]> wrote: > what about checking the checking the remote ip > address? The common use of HTTP proxies on the Web makes this extremely unreliable. A typical HTTP proxy servicing many users will cause them all to appear to be coming from the same IP address, while roun

Re: [PHP] Detecting posts from outside site

2003-01-21 Thread Jim Lucas
what about checking the checking the remote ip address? Jim - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 10:45 AM Subject: Re: [PHP] Detecting posts from outside site > --- [EMAIL PROTECTED]

Re: [PHP] build menu with mysql data

2003-01-21 Thread Marc Bleuler
Hi Eddie, This is exactly what I'm looking for. I don't have some code today that's why I'm posting to the newsgroup. The only working thing I have today is the listing of the "main db" It looks a bit whired since I copy past it from the file. Could you post some of your code? ---

RE: [PHP] Dynamic List Using Php

2003-01-21 Thread Edward Peloke
So the select will be generated from values in the db? here is an example of something I did.. print" City:"; print" "; $result2=mysql_query("SELECT distinct(city) from listings where approved=1 and state='$state' and country='$country'");

Re: [PHP] Dynamic List Using Php

2003-01-21 Thread cal
unless you want to submit the form to the server for each new entry (bad mojo) then I would recommend you look into using JavaScript to do this. (much easier and faster.) Once the user has entered all their entries then submit the form and update your database or storage medium of choice. IMHO, e

[PHP] Dynamic List Using Php

2003-01-21 Thread Pushpinder Singh Garcha
Hello All I am wanting a create a dynamic List using php. When a user enters a value on a form, I need the value that he entered on the form to added to a dynamic list box, which is displayed on the next page. So the List Box continues to grow whenever a user adds a value on the form (note: Th

Re: [PHP] security question regarding including files..

2003-01-21 Thread Chris Shiflett
--- Sean Burlington <[EMAIL PROTECTED]> wrote: > is there really any site which will accept a book > order based an a sigle GET? Well, yes, but that is not the point really. The example of the tag is just one way you can forge an HTTP request from another user (the victim). Also consider that ma

Re: [PHP] mysql_connect problem..update

2003-01-21 Thread Tom Ray
Thanks, we're going to give that a try. -Original Message- From: Tracy Finifter Rotton <[EMAIL PROTECTED]> To: Tom Ray <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Date: Tue, 21 Jan 2003 10:25:55 -0800 Subject: Re: [PHP] mysql_connect problem..update > Talk to the other admin. If you're usin

Re: [PHP] security question regarding including files..

2003-01-21 Thread Chris Shiflett
--- Sean Burlington <[EMAIL PROTECTED]> wrote: > I'm not sure what harm could be done by this though. > > if a broswer attempts to load an image reference by > an I would expect it simply to ignore it... I sent a response about this earlier, but you should research CSRF and XSS. It does not mat

[PHP] Re: forking scripts

2003-01-21 Thread J Smith
PHP can fork scripts. Refer to the pcntl extension. http://www.php.net/manual/en/ref.pcntl.php You'll be wanting to use pcntl_fork()... J Senn wrote: > Hi, > > Since php does not have child -> parent forking methods, can anybody > suggest a method to achieve this. > > Thanks. > > Senn --

Re: [PHP] Detecting posts from outside site

2003-01-21 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > If it's bulletproof, then I figured this could help > some of you out. If not, I welcome comments (I'm a > little bit hesitant of calling things 'bulletproof'). It's not bulletproof. :-) > if((count($_POST) > 0) && > (!stristr($_SERVER["HTTP_REFERER"], > $http_refer

Re: [PHP] Re: str_replace an include

2003-01-21 Thread Fernando Lemes
try: $aux = $replace->feedLinks(); $read = str_replace('

RE: [PHP] build menu with mysql data

2003-01-21 Thread Edward Peloke
Marc, I did something sort of along these lines with an 'auction' site I worked on. I displayed rows from a db. If the row had bid information in the db (or your case submenu info) then a + sign icon was displayed next to it. IF the plus sign was clicked, the page would reload and the bid or su

Re: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Nicholas Wieland
On 2003.01.21 15:21 Rich Gray wrote: PHP does not yet support private methods ... your problem with getValue() is most probably because register_globals is off in your php.ini try substituting $_POST[] for $HTTP_POST_VARS[] and it may start to work... Sorry... I forgot to mention that I use PhP

Re: [PHP] mysql_connect problem..update

2003-01-21 Thread Tracy Finifter Rotton
Talk to the other admin. If you're using RPMs, you just need to install the php_mysql RPM, restart apache, and you should be up and running again. If you're compiling PHP from scratch, you'll have to do so again with --with-mysql in the configure command. But, as this is the default when compili

Re: [PHP] security question regarding including files..

2003-01-21 Thread Sean Burlington
Gibbs, Liam - SXIA wrote: I agree that there are risks - but I do think this can be done safely Couldn't you just check the submitted URL and find out if it's a gif or jpeg? I don't think even PHP-enabled servers will run a gif or jpeg. please send replies to the list ... and you cant tel

RE: [PHP] Finding out if a table exists

2003-01-21 Thread Don Read
On 21-Jan-2003 Mako Shark wrote: > Is there a way of finding if a table exists with only > one command in MySQL? I've looked through the MySQL > functions, and the closest I've gotten to what I need > is mysql_list_tables or mysql_tablename (I'll have to > check into these a little more), but I wa

[PHP] mysql_connect problem..update

2003-01-21 Thread Tom Ray
It turns out after some checking, the other admin on the machine ran a kernel update last week. I hadn't been testing any scripts over the last week myself so I didn't notice the issue until the other day. When I run a function_exists() for mysql_connect it comes back false. When I run phpinfo() t

Re: [PHP] Finding out if a table exists

2003-01-21 Thread 1LT John W. Holmes
Or... function mysql_table_exists($table) { mysql_query("use $table"); if(mysql_error()) { return false; } else { return true; } } ---John Holmes... - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "Mako Shark" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: T

Re: [PHP] security question regarding including files..

2003-01-21 Thread Jason Wong
On Wednesday 22 January 2003 01:40, Sean Burlington wrote: > is there really any site which will accept a book order based an a sigle > GET ? Amazon makes a big deal of their "one-click" shopping feature. It's so good they've even patented it. -- Jason Wong -> Gremlins Associates -> www.gremli

Re: [PHP] Finding out if a table exists

2003-01-21 Thread Kevin Stone
Okay what the hell I'm bored anyway... function mysql_table_exists($table) { global $db; // <- database resource handle $result = @mysql_list_tables($db); if (mysql_num_rows($result) > 0) { while ($row = mysql_fetch_row($result)) { if (strtolower($row[0

RE: [PHP] Re:[PHP] dreading OOP

2003-01-21 Thread Larry Brown
Thank you, I'll check this book out. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Sukrit [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Re:[PHP] dreading OOP > "Larry" == Larry Brown <[EMAIL

Re: [PHP] Detecting resolution

2003-01-21 Thread Jay Paulson
You have to use JavaScript for this. Sorry! but i've asked the same question on here a long time ago :) - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 11:22 AM Subject: [PHP] Detecting resolution > Does anyone know how to detect th

Re: [PHP] Detecting posts from outside site

2003-01-21 Thread Sean Burlington
[EMAIL PROTECTED] wrote: Also, speaking of detection, I made a small script that can protect against people downloading your site's forms, modifying their new local copy (and putting an absolute URL in the form's ACTION attribute), and then posting data using the botched form. If it's bulletproof,

Re: [PHP] dreading OOP

2003-01-21 Thread Jay Paulson
The easiest way for me to explain and understand OOP was to think of it this way. You have an object and in that object contains functions that only pertain to that one object. See diagram below. Object1 | |_ function1 | |_ function2 . . etc Object2 | |_ function1 | |_ func

Re: [PHP] download script

2003-01-21 Thread Matt Vos
Instead, find out exactly what headers it is that Getright sends. Store the resume point in $resume_bytecount Then, have your script do something like this: /** Send the appropriate HTML headers **/ /** Do this instead of the fpassthru **/ $filesize = size($filename); $fp = fopen('$filename','r');

Re: [PHP] security question regarding including files..

2003-01-21 Thread Sean Burlington
Chris Shiflett wrote: --- Chad Day <[EMAIL PROTECTED]> wrote: I want to give my users the ability to submit a URL to a database, then when they pull up their page, their photo is included .. what I'm worried about is them pointing the link to some malicious code or something.. Your instincts

Re: [PHP] Page Rendering

2003-01-21 Thread Sean Burlington
Bill Arbuckle, Jr. wrote: Hi all. I am having some problems with a script which reads information from a database and creates a table. It works in IE but not Netscape. it can be usefull to test the resulting html http://validator.w3.org/ valid html is much more likely to appear consistent ac

[PHP] Re:[PHP] dreading OOP

2003-01-21 Thread Sukrit
> "Larry" == Larry Brown <[EMAIL PROTECTED]> writes: Larry> places. However, my mind apparently works different and I Larry> keep trying to relate the OOP structure to what I already Larry> know which equates an object to a function. I am resolving This happens a lot with me too

Re: [PHP] build menu with mysql data

2003-01-21 Thread Gibbs, Liam - SXIA
<> What doesn't work about it? Does it not fetch the submenus? Does it exceed its number of rows somehow? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] build menu with mysql data

2003-01-21 Thread Marc Bleuler
Hi, I would like to bild a tree menu with mySQL data. where I have the collapsed main menue and when I click the link the specific submenue expands (as follow). (collapsed Main Menu) + Home + Downloads + About me + Search and for example if I click the "Download" section it will look as foll

[PHP] Detecting posts from outside site

2003-01-21 Thread Liam . Gibbs
Also, speaking of detection, I made a small script that can protect against people downloading your site's forms, modifying their new local copy (and putting an absolute URL in the form's ACTION attribute), and then posting data using the botched form. If it's bulletproof, then I figured this could

RE: [PHP] dreading OOP

2003-01-21 Thread Larry Brown
The only reason I feel the need to expand my understanding is that I have to learn other concepts to produce my client's solutions. For instance I am now being asked to use SOAP to communicate with a vendor of his. Now I am reading about SOAP and frequently the descriptions rely on the reader's u

[PHP] forking scripts

2003-01-21 Thread Senn
Hi, Since php does not have child -> parent forking methods, can anybody suggest a method to achieve this. Thanks. Senn

[PHP] Detecting resolution

2003-01-21 Thread Liam . Gibbs
Does anyone know how to detect the resolution of someone's computer? Or is this possible through 'browscapping'? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread @ Nilaab
Nicholas, I think I know where you found this code. I have the same code, except I modified it a little to work for me. You may need to change it for your needs. When I first used it, it didn't work. I had to modify it to make it work. My code is usually kind of sloppy, but maybe you would get bet

Re: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Nicholas Wieland
On 2003.01.21 15:42 Joseph W. Goff wrote: For the most part I found two errors The first was a scope problem. $HTTP_*_VARS hashes are not accessible inside functions unless you source them in. i.e. global The other was an extra line in an if statement that did not contain braces. I did a little

Re: [PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Stephan Seidt
ah sorry, mixed some configuration files ;) Jonathan Boles wrote: Do you mean allow_url_fopen? It is set to 'on'. There's no fopen_wrapper setting Reading from http:// using fopen works fine. It's the https:// that doesn't work. - Original Message - From: "Stephan Seidt" <[EMAIL PROTECT

[PHP] Finding out if a table exists

2003-01-21 Thread Mako Shark
Is there a way of finding if a table exists with only one command in MySQL? I've looked through the MySQL functions, and the closest I've gotten to what I need is mysql_list_tables or mysql_tablename (I'll have to check into these a little more), but I was hopefully looking for something that retur

Re: [PHP] DOWNLOAD

2003-01-21 Thread Jim Lucas
People often for get about a little problem that happens with the I found a bug when developing a download script a year or so ago. You can't have the 'attachment;' part in IE. It did some funky stuff and netscape 4 would die without it. Jim - Original Message - From: "Timothy Hitc

Re: [PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Jonathan Boles
This seems to have fixed the problem :-) But there's another error. fopen works now, but fgets won't. I'm getting this error: Warning: fgets() [function.fgets]: SSL: fatal protocol error in blah\blah\blah.php on line 51 Does anyone know what could be causing this? > PHP 4.3.0, Apache, Win32. >

  1   2   >