[PHP] Can Anybody telll me more php search engine?

2005-12-13 Thread ynzheng.gmail (sent by Nabble.com)
which search engine is dhoondho.com and beeblex.com based on ? any ralation links of dataparksearch engine and mnoGoSearch? -- Sent from the PHP - General forum at Nabble.com: http://www.nabble.com/Can-Anybody-telll-me-more-php-search-engine--t739540.html#a1935937

Re: [PHP] Declaring arrays? Good practice?

2005-12-13 Thread Michael Hulse
Thanks Curt and Robert! You guys really helped clear things up for me. You guys rock! I really appreciate all of your help. :) Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] EXPORT DATA

2005-12-13 Thread Zareef Ahmed
- Original Message - From: "Aftab Alam" <[EMAIL PROTECTED]> To: Sent: Tuesday, December 13, 2005 11:20 PM Subject: [PHP] EXPORT DATA > Hi all, > > How can i export excel data to PostgresSQL using PHP. > http//ww.phpclasses.org is good place to search. you can go there. Zareef Ahmed >

[PHP] EXPORT DATA

2005-12-13 Thread Aftab Alam
Hi all, How can i export excel data to PostgresSQL using PHP. regards aftab -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Message Should be displayed based on Date ,Time and Event name

2005-12-13 Thread suma parakala
Hi I am accepting event name,Date and time and saving the data in PostgeSQL table.. I have used PHP html Javascript and postgesql for this. Can anyone tell me how can I display a popup message when that particular event occurs on particular date and time. Thanks Suma _

Re: [PHP] Declaring arrays? Good practice?

2005-12-13 Thread Curt Zirzow
On Tue, Dec 13, 2005 at 07:34:31PM -0800, Michael Hulse wrote: > Sorry if this question sounds noobish: > > $foo = array(); // Declare first, good practice. > $foo = array('one', 'two', 'three'); > > Using above as example, is it good to always declare the array first? Well there really isn't an

Re: [PHP] Declaring arrays? Good practice?

2005-12-13 Thread Robert Cummings
On Tue, 2005-12-13 at 22:34, Michael Hulse wrote: > Sorry if this question sounds noobish: > > $foo = array(); // Declare first, good practice. The above is a declaration. > $foo = array('one', 'two', 'three'); The above is ALSO a declaration. The first declaration is redundant and unnecessary

[PHP] Declaring arrays? Good practice?

2005-12-13 Thread Michael Hulse
Sorry if this question sounds noobish: $foo = array(); // Declare first, good practice. $foo = array('one', 'two', 'three'); Using above as example, is it good to always declare the array first? I usually/always declare my arrays first, but sometimes I get a bit confused... for example: func

Re: [PHP] Re: IE6 not returning POST data from a textarea

2005-12-13 Thread Curt Zirzow
On Mon, Dec 12, 2005 at 08:33:40PM -0500, Al wrote: > Al wrote: > >Anyone know to get IE6 to return POST data from a textarea when the text > >is pasted in? > > > >Works fine for Mozilla, etc. > > > >print_r($_POST) shows several and values just fine. > > > >Thanks > > > For those interest

Re: [PHP] Sending $_GET directly to AJAX

2005-12-13 Thread comex
> But when I try to set the variables again for AJAX to use after a > timeout, nothing happens and it only displays what is called (RSD: > received) AJAX debug mode. Which seems to be the answer to AJAX "question". As far as I know, "AJAX" is just the use of the Javascript XMLHttpRequest object to

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Ray Hauge
Oops... REMOTE_ADDR should have been used. Ray Hauge wrote: That would be something along the lines of: preg_match("/^192\.168/",$_SERVER['REMOTE_HOST']); I'm a little rusty on my regex, but that should do it. Dave Carrera wrote: i know about $_SERVER['REMOTE_HOST'] but i think i should

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Duncan Hill
On Tuesday 13 December 2005 16:33, Dave Carrera wrote: > $_SERVER['REMOTE_HOST'] > > but i think i should of said how do i compare any address starting with > 192.168. REMOTE_HOST contains the resolved DNS name of an IP address. This value is dependent on your web server doing DNS resolution (an

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Ray Hauge
That would be something along the lines of: preg_match("/^192\.168/",$_SERVER['REMOTE_HOST']); I'm a little rusty on my regex, but that should do it. Dave Carrera wrote: i know about $_SERVER['REMOTE_HOST'] but i think i should of said how do i compare any address starting with 192.168.

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dave Carrera
Thanks David, Thats the kind of thing i was looking for. Onwards and upwards ;-) Dave C David Grant wrote: Quick and (very) nasty: $parts = split(".", $_SERVER['REMOTE_HOST']); if ($_SERVER['REMOTE_HOST'] == '127.0.0.1' || ($parts[0] == '192' && $parts[1] == '168')) { // Local } els

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
Erm, REMOTE_ADDR, not REMOTE_HOST. Sorry! David Grant wrote: > Quick and (very) nasty: > > $parts = split(".", $_SERVER['REMOTE_HOST']); > if ($_SERVER['REMOTE_HOST'] == '127.0.0.1' || ($parts[0] == '192' && > $parts[1] == '168')) { > // Local > } else { > // Remote > } > > > Dave

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
Quick and (very) nasty: $parts = split(".", $_SERVER['REMOTE_HOST']); if ($_SERVER['REMOTE_HOST'] == '127.0.0.1' || ($parts[0] == '192' && $parts[1] == '168')) { // Local } else { // Remote } Dave Carrera wrote: > i know about > > $_SERVER['REMOTE_HOST'] > > but i think i shoul

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Jochem Maas
Dave Carrera wrote: Jay Blanchard wrote: [snip] Is there a way of sending users with a local ip address say 127.0.0.1 and 192.168.xxx.xxx to goto one page and all other visitors to goto another? [/snip] snip from TFM 'HTTP_REFERER' The address of the page (if any) which ref

RE: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dan Parry
[snip] In short, it cannot really be trusted. notice the last 7 words [/snip] Any external data introduced into a script can't be trusted... including $_GET and $_POST That doesn't mean they shouldn't be used... just used carefully Also if you want to use the IP address maybe REMOTE_ADDRES

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dave Carrera
i know about $_SERVER['REMOTE_HOST'] but i think i should of said how do i compare any address starting with 192.168. sorry if my first question was to vague David Grant wrote: Try $_SERVER['REMOTE_HOST'] instead of REFERER. Dave Carrera wrote: Jay Blanchard wrote: [snip] Is the

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread John Nichel
Dave Carrera wrote: Jay Blanchard wrote: [snip] Is there a way of sending users with a local ip address say 127.0.0.1 and 192.168.xxx.xxx to goto one page and all other visitors to goto another? [/snip] Yes, there is. $_SERVER['REFERER'] will give you the referer mosy of the time. More i

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread David Grant
Try $_SERVER['REMOTE_HOST'] instead of REFERER. Dave Carrera wrote: > Jay Blanchard wrote: > >> [snip] >> Is there a way of sending users with a local ip address say 127.0.0.1 >> and 192.168.xxx.xxx to goto one page and all other visitors to goto >> another? >> [/snip] >> >> >> Yes, there is. >>

RE: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Jay Blanchard
[snip] snip from TFM 'HTTP_REFERER' The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Duncan Hill
On Tuesday 13 December 2005 16:13, Jay Blanchard wrote: > $_SERVER['REFERER'] will give you the referer mosy of the time. More info > from TFM can be found here; REFERER is the URL the client came from though, not the local IP address of the client. Methinks the OP wants REMOTE_ADDR. -- PHP Ge

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Zareef Ahmed
Hi Dave, You can look for the value of $_SERVER['REMOTE_ADDR'], and then you can serve users as per your preferences. Zareef Ahmed - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: Sent: Tuesday, December 13, 2005 11:06 AM Subject: [PHP] 1 ip address go here all oth

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dave Carrera
Jay Blanchard wrote: [snip] Is there a way of sending users with a local ip address say 127.0.0.1 and 192.168.xxx.xxx to goto one page and all other visitors to goto another? [/snip] Yes, there is. $_SERVER['REFERER'] will give you the referer mosy of the time. More info from TFM can be fo

RE: [PHP] Page Setup

2005-12-13 Thread Jay Blanchard
[snip] Sorry , my question is about javascript . I want to eliminate the Headers (&w&bPage &p of &P ) and Footers ( &u&b&d ) of my pagina by means of Javascript. this is poible? , please help me. [/snip] No, it is not possible. These are browser based controls that are not exposed to scripting of

[PHP] Page Setup

2005-12-13 Thread Denyl Meneses Guillén
Sorry , my question is about javascript . I want to eliminate the Headers (&w&bPage &p of &P ) and Footers ( &u&b&d ) of my pagina by means of Javascript. this is poible? , please help me. thanks Denyl. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] 1 ip address go here all others go here

2005-12-13 Thread Dave Carrera
Hi List, Is there a way of sending users with a local ip address say 127.0.0.1 and 192.168.xxx.xxx to goto one page and all other visitors to goto another? Kind Regards Dave C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems downloading e-mail

2005-12-13 Thread Jochem Maas
Oli Howson wrote: I've used the IMAP functions to connect to my pop3 server. I want to download the emails. I can fetch headers, or fetch the body, but I don't seem to be able to download the entire e-mail as one raw file. This is so I can pass it to the PEAR mail mime class for parsing, as wel

Re: FW: [PHP] IE6 not returning POST data from a textarea

2005-12-13 Thread Al
Jay Blanchard wrote: [snip] Everyone keeps asking it. Of course it's named or Mozzilla wouldn't work. [/snip] You can insert a textarea into a page without a name and mozilla will work. If the textarea is named have you tried this echo $_POST['textareaName']; This thread was broken. No

Re: [PHP] Container Loading Script

2005-12-13 Thread Jochem Maas
Leonard, this is a mailing for helpinmg people understand PHP and solve PHP problems. the fact that you need a complete webbased interface to a container loading algorythm does not really constitute a 'php problem'. what you are asking for is, softly put, quite complex & rather specialized. peo

Re: [PHP] detecting file size

2005-12-13 Thread Ahmed Saad
Ahmed basha :) On 12/12/05, Ahmed Abdel-Aliem <[EMAIL PROTECTED]> wrote: > i know i can detect the file size after being uploaded, but i do want > to detect the file after it is being uploaded to the server. You may want to read this code walkthrough http://blog.joshuaeichorn.com/archives/2005/05

[PHP] Problems downloading e-mail

2005-12-13 Thread Oli Howson
I've used the IMAP functions to connect to my pop3 server. I want to download the emails. I can fetch headers, or fetch the body, but I don't seem to be able to download the entire e-mail as one raw file. This is so I can pass it to the PEAR mail mime class for parsing, as well as for storage.

Re: [PHP] [JOB] MySQL/PHP Engineer, Los Angeles, CA

2005-12-13 Thread Angelo Zanetti
LOL Curt Zirzow wrote: On Fri, Dec 09, 2005 at 10:41:15PM -0600, Beau Gould wrote: [JOB] MySQL/PHP Engineer, Los Angeles, CA http://www.superiorss.com/jobs.htm Consider what would happpen if everone on this list would decide to post their resume? You know what would happen? My res

Re: [PHP] Questions from a ColdFusion Developer

2005-12-13 Thread Jochem Maas
CF has an application scope - PHP does not. the strength and simplicity of PHP stem from the decision to make/keep PHP a "share nothing" architecture. with regard to shoving stuff in the SESSION superglobal: 1. it not shared between requests by different users - meaning that the SQL query you ga

RE: [PHP] need for $_POST[''] changed after server upgrade

2005-12-13 Thread Ford, Mike
On 13 December 2005 04:22, Ray wrote: > Hello, > Thanks Matt, I appreciate your help. your solution is a lot > easier than mine. even easier: extract($_POST); > > -Original Message- > From: "Matt Babineau" <[EMAIL PROTECTED]> > To: "'Ray'" <[EMAIL PROTECTED]>, > Date: Sun, 11 Dec

Re: [PHP] asianwhiteskin beauty product

2005-12-13 Thread Raz
Can I have some breast enlarger please? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP] IE6 not returning POST data from a textarea

2005-12-13 Thread Erfan Shirazi
Are you doing a mysql_escape_string on the POST variable received? That doesn't work so good with textareas. Jay Blanchard wrote: [snip] Everyone keeps asking it. Of course it's named or Mozzilla wouldn't work. [/snip] You can insert a textarea into a page without a name and mozilla will wo

[PHP] Sending $_GET directly to AJAX

2005-12-13 Thread Erfan Shirazi
Hi all I'm writing a function which will redirect the user to the last page they were at when a session timeout occurred. The function will save all variables and set them through POST or whatever was used on that page. I.e: $_POST[$variableName] = $variableContent; This works fine with reg