RE: [PHP] Problem of varible

2004-10-11 Thread Jay Blanchard
[snip] (Bgetfile1.php (B (B? (Becho "File Name$B!'(J$upfile_nameBR"; (Becho "File Size$B!'(J$upfile_sizeBR"; (Becho "File Type$B!'(J$upfile_typeBR"; (Becho "Temp File$B!'(J$upfileBR"; (B (Bcopy($upfile, "/tmp/$upfile_name"); (B? (B[/snip] (B (Becho "File

Re: [PHP] Best practise for resolving potential conflicts when editing db content?

2004-10-11 Thread raditha dissanayake
Murray @ PlanetThoughtful wrote: Hi All, I'm developing a wiki-esque application for an in-house project and am wondering how others go about resolving potential conflicts when multiple users are editing the same content drawn from a MySQL database? You might want to ask in a mysql group about

[PHP] Question about array_search

2004-10-11 Thread Brian Dunning
Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. How does one circumvent this potential pitfall?

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 08:40:09 -0700 (PDT), Mag [EMAIL PROTECTED] wrote: Interesting, so what is more backwards compatable? or to put it in another way, what did you change on your servers so that your app worked without file_get_contents? I used the usual fopen(), fgets(), fclose() combination

Re: [PHP] config.php

2004-10-11 Thread Dan Joseph
Is there anyway of creating a config.php file on the fly using a form. There is... however, that's kind of a broad question. What sort of config file are you trying to build? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: php and print

2004-10-11 Thread Steve Murphy
Why not just use CSS? http://www.alistapart.com/articles/goingtoprint/ Steve -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 12:23 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: php and print Harlequin wrote: Bruno I'm still

Re: [PHP] config.php

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 11:59:56 -0400, bigmark [EMAIL PROTECTED] wrote: Is there anyway of creating a config.php file on the fly using a form. Sure. fopen() can write new files easy enough. And the data from the form submission is available via the $_POST array. -- Greg Donald Zend Certified

Re: [PHP] config.php

2004-10-11 Thread raditha dissanayake
bigmark wrote: Is there anyway of creating a config.php file on the fly using a form. yes there is -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP

RE: [PHP] config.php

2004-10-11 Thread Jay Blanchard
[snip] Is there anyway of creating a config.php file on the fly using a form. [/snip] Yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about array_search

2004-10-11 Thread Matt M.
Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. How does one circumvent this potential

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
Oops, sorry to hear that. Some scumbag always spoils it for everyone :-( Looks like you can enable it if you really need it though.. Mag --- lists [EMAIL PROTECTED] wrote: Im kinda bummed, I tried to us it last night and discovered I could not use it because Pair Networks disables the

Re: [PHP] Question about array_search

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as

Re: [PHP] config.php

2004-10-11 Thread John Nichel
bigmark wrote: Is there anyway of creating a config.php file on the fly using a form. Yes. http://www.catb.org/~esr/faqs/smart-questions.html -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Encoding Question [NOT RESOVED]

2004-10-11 Thread Nick Wilson
* and then Nick Wilson declared that one is using rawurlencode() but it's just as bad with urlencode - How *should* I be doing this? is this how you tried to do it? $userAgent = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0); curl_setopt($ch, CURLOPT_USERAGENT,

RE: [PHP] Best practise for resolving potential conflicts when editing db content?

2004-10-11 Thread Murray @ PlanetThoughtful
Hi Raditha, I'm not sure table locking is the answer. I'm not talking about concurrency in the sense of 'simultaneous' updates and selects, but in the sense of an 'open record edit session' that predictably will overwrite the value of a record that may have been changed, after the edit session

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
I did look at the fopen option...but it just seemed a little longer and more complicated to do that plus according to this benchmark (http://force-elite.com/~chip/projects/php/benchmarks/file-vs-fgets/) using file_get_contents is upto 6 times faster (?) in some cases.. I think I'll stick with

Re: [PHP] Question about array_search

2004-10-11 Thread Robin Vickery
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. No it doesn't. If it's in index 0 it returns 0, if it's not there at all it returns

[PHP] Working out the image path...

2004-10-11 Thread Mag
Hey! Am having a little problem working out the logic in this, basically I pass a graphics path to a function and it should give/retrun me the URL path. ?php $url='http://x.com/t1/t2/t3/blah.html'; function ret_url($rel_path) { } ? so I pass a relitive url like this $a=ret_url('/blah.jpg';)

[PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Mulley, Nikhil
Hi Guys, Is there any way of finding the current user logged on the remote system I have a perl script which gets the user name who is currently logged on a remote Windows Machine #LoggedOnUsers(server, userRef).pl use Win32::NetAdmin; use strict; use vars qw($server @users_list);

Re: [PHP] Question about array_search

2004-10-11 Thread John Holmes
Brian Dunning wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. No it doesn't. If the

Re: [PHP] config.php

2004-10-11 Thread John Holmes
bigmark wrote: Is there anyway of creating a config.php file on the fly using a form. House fly or bar fly? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List

Re: [PHP] Problem of varible

2004-10-11 Thread John Holmes
Jay Blanchard wrote: [snip] getfile1.php ? echo File Name$upfile_nameBR; echo File Size$upfile_sizeBR; echo File Type$upfile_typeBR; echo Temp File$upfileBR; copy($upfile, /tmp/$upfile_name); ? [/snip] echo File Name$_POST['upfile_name']BR; echo File Size$_POST['upfile_size']BR; echo File

Re: [PHP] Question about array_search

2004-10-11 Thread John Holmes
Greg Donald wrote: On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the

RE: [PHP] textarea vs. type=text data difference?

2004-10-11 Thread Gryffyn, Trevor
Just wanted to point out something little. text types are all single-line data items. textarea can contain line breaks. Looks like you may have solved your problem already, but wanted to fill in some info that didn't seem to be mentioned. -TG -Original Message- From: Sam Smith

RE: [PHP] PHP gurus...how are they doing this?

2004-10-11 Thread Gryffyn, Trevor
I can't check this out from work (for obvious reasons) but web server logs should record all the incoming requests and what hosts requested what files. Also, search engines like Google provide an API for programmers that could potentially be used to get data like how many people are linked to

Re: [PHP] Lost in PHP (part 1) ---- Sequle to Lost in Query

2004-10-11 Thread John Holmes
GH wrote: Now I m perplexed time 10! I run the code that follows this time providing a query string of admin_template.php?api=101 I have an if statement that tests if $_GET['api'] == 0 if it is true I have it listing options, else it queries the database with that ID and loads the

Re: [PHP] Lost in PHP (part 1) ---- Sequle to Lost in Query

2004-10-11 Thread GH
How can I convert it to an integer aslong as it is only a number in the string? On Mon, 11 Oct 2004 13:19:40 -0400, John Holmes [EMAIL PROTECTED] wrote: GH wrote: Now I m perplexed time 10! I run the code that follows this time providing a query string of

Re: [PHP] config.php

2004-10-11 Thread John Nichel
John Holmes wrote: bigmark wrote: Is there anyway of creating a config.php file on the fly using a form. House fly or bar fly? You got something against a fly on the wall??? -- John C. Nichel berGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Vail, Warren
If you code in php something like the following, you just might be able to use the perl script; $ok = exec(path/to/Perl myperscriptname.pl server, $result); // you may have to straighten out syntax Foreach($result as $line) { echo $line; // or you could process the results } Hope this

Re: [PHP] Lost in PHP (part 1) ---- Sequle to Lost in Query

2004-10-11 Thread John Holmes
GH wrote: How can I convert it to an integer aslong as it is only a number in the string? Does it _really_ matter if only a number is passed? If someone passes abcd and it's converted to an integer, it'll be zero. Then your query will not return any rows (which you're already testing for,

[PHP] Program that does registration, rsvp, reminders, etc??

2004-10-11 Thread John Holmes
Does anyone know of a program that does event and user registration, sends RSVPs, reminders, etc?? I'm basically looking for a _simple_ evite.com clone I can use on a site. The only one I've found in a quick search is iVITE at http://www.hotscripts.com/Detailed/31859.html. Does anyone have any

Re: [PHP] PHP gurus...how are they doing this?

2004-10-11 Thread John Holmes
Mag wrote: 1.showing the number of outgoing links Middle man. You have them click on a link containing an ID, increment the counter for that ID, then forward them to the requested link. I'm not sure I understand what you mean here. Actually, I misunderstood what you meant by outgoing links.

Re: [PHP] 1000+ character POSTed strings get mangled

2004-10-11 Thread Jonny Roller
Thanks for the info! Based on the Apache2 reference and dug into the problem a little more. Bug 18648 (http://bugs.php.net/bug.php?id=18648) contains a long thread from folks with similar problems. It seems that the Apache2 setup creates a conf.d/php.conf file with this in it: Files *.php

Re: [PHP] sending SMS messages to mobile phones from PHP

2004-10-11 Thread Andrew Cowles
Hi Jordi, What's wrong with British Pounds? It's a good currency - been around for a long time. We have customers all over the world and can send SMS messages to over 500 networks in 200+ countries. We have MANY clients in the USA, across Europe, Australia Africa. However we are based in the UK;

RE: [PHP] Meaningful Subject

2004-10-11 Thread php-list
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 8:09 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] On Monday 11 October 2004 19:41, [EMAIL PROTECTED] wrote: Never mind guys, I figured it out. I appreciate your help. Thanks for everything!

Re: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread John Holmes
Mulley, Nikhil wrote: Is there any way of finding the current user logged on the remote system You can try $_SERVER['LOGON_USER'], but I think the remote computer has to be in the same domain as the server... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

Re: [PHP] config.php

2004-10-11 Thread Michal Migurski
Is there anyway of creating a config.php file on the fly using a form. To obtain verbose output, include the keyword how at the beginning of your query. -- michal migurski- contact info, blog, and pgp key: sf/ca

Re: [PHP] Best practise for resolving potential conflicts when editing db content?

2004-10-11 Thread Michal Migurski
I'm not sure table locking is the answer. I'm not talking about concurrency in the sense of 'simultaneous' updates and selects, but in the sense of an 'open record edit session' that predictably will overwrite the value of a record that may have been changed, after the edit session began, but

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Curt Zirzow
* Thus wrote lists: Im kinda bummed, I tried to us it last night and discovered I could not use it because Pair Networks disables the ability, can't include either. from their newsletter: Lately, the most common method of exploit has been to pass a variable to a PHP script which does

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Curt Zirzow
* Thus wrote Mag: I did look at the fopen option...but it just seemed a little longer and more complicated to do that plus according to this benchmark (http://force-elite.com/~chip/projects/php/benchmarks/file-vs-fgets/) using file_get_contents is upto 6 times faster (?) in some cases.. You

Re: [PHP] Problem of varible

2004-10-11 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: Form Action=getfile1.php Method=POST Enctype=multipart/form-data Input Type=File Name=upfile p Input Type=Submit value=Send /Form getfile1.php ... copy($upfile, /tmp/$upfile_name); ? Also use move_uploaded_file() instead.

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Gryffyn, Trevor
It does and Windows Integrated Authentication has to be turned on (and Anonymous access turned off). I just got my company to configure that so my PHP scripts could grab the authenticated user for logging purposes. -TG -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]

Re: [PHP] Best practise for resolving potential conflicts when editing db content?

2004-10-11 Thread Andrew Kreps
On Tue, 12 Oct 2004 02:41:10 +1000, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: User A finishes his or her page edit and commits the changes, but the underlying record was already changed by User B's page rename. User A's edit changes overwrite this update in the record in question, and

Re: [PHP] Working out the image path...

2004-10-11 Thread Curt Zirzow
* Thus wrote Mag: Hey! Am having a little problem working out the logic in this, basically I pass a graphics path to a function and it should give/retrun me the URL path. ?php $url='http://x.com/t1/t2/t3/blah.html'; function ret_url($rel_path) { } ? so I pass a relitive url like

[PHP] Re: [PHP-INSTALL] Impossibility

2004-10-11 Thread Andrew Kreps
On Mon, 11 Oct 2004 15:20:11 -0400, Scott Hamm [EMAIL PROTECTED] wrote: I know it's impossible, but is there a way php can read something from excel file? If you really believe it's impossible, why ask the question? :) Start with the first link here, and work your way down. Thankfully, you

[PHP] Working out the image path...partly solved, please have a look at my code

2004-10-11 Thread Mag
Hi, I wrote this to the list a little while back and have been working on it...i have come 95% of the way but for some reason cant work the other 5% out...can somebody help please? Basically I need to figure out the URL or a image from a relitive path...something like this: /blah.jpg // should

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-11 Thread Matt M.
?php $url='http://www.textx.com/t1/t2/t3/blah.html'; function ret_url($rel_path, $base = '') { $base_path = substr($base, 0, strpos($base, '/',7)); if(substr($rel_path,0,1)=='/' !strpos($rel_path,'/../')) { return $base_path.$rel_path; } elseif(strpos($rel_path,'://')

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-11 Thread Mag
Hey Matt, Thanks for replying. ?php $url='http://www.textx.com/t1/t2/t3/blah.html'; function ret_url($rel_path, $base = '') { $base_path = substr($base, 0, strpos($base, '/',7)); if(substr($rel_path,0,1)=='/' !strpos($rel_path,'/../')) { return $base_path.$rel_path;

[PHP] OOP -- passing messages between objects

2004-10-11 Thread Sandy Keathley
Can someone tell me the proper syntax for accessing a method in one class from another class? I used this, where $obj and $page are instantiated objects: (From the $page class) obj::getData($id); It worked in an application on one server, failed in another application on another server.

[PHP] ezmlm-sub or alternative

2004-10-11 Thread Mark Hubert
I'm writing a little script (my 3rd) that takes name (first, last) and email address and writes it to txt file and submits the email address to an EZMLM list server. All is well but I'm not sure where to go for the submission. The command line - ezmlm-sub works (from the shell)... if the user

Re: [PHP] ezmlm-sub or alternative

2004-10-11 Thread Jason Wong
On Tuesday 12 October 2004 08:29, Mark Hubert wrote: I'm writing a little script (my 3rd) that takes name (first, last) and email address and writes it to txt file and submits the email address to an EZMLM list server. All is well but I'm not sure where to go for the submission. The

Re: [PHP] ezmlm-sub or alternative

2004-10-11 Thread James McGlinn
Hi Mark, I'm writing a little script (my 3rd) that takes name (first, last) and email address and writes it to txt file and submits the email address to an EZMLM list server. All is well but I'm not sure where to go for the submission. The command line - ezmlm-sub works (from the shell)... if

[PHP] Re: ezmlm-sub or alternative

2004-10-11 Thread Manuel Lemos
Hello, On 10/11/2004 09:29 PM, Mark Hubert wrote: I'm writing a little script (my 3rd) that takes name (first, last) and email address and writes it to txt file and submits the email address to an EZMLM list server. All is well but I'm not sure where to go for the submission. The command

[PHP] Re: OOP -- passing messages between objects

2004-10-11 Thread Matthew Weier O'Phinney
* Sandy Keathley [EMAIL PROTECTED]: Can someone tell me the proper syntax for accessing a method in one class from another class? I used this, where $obj and $page are instantiated objects: (From the $page class) obj::getData($id); if $obj is instantiated, you'd call it like any other

Re: [PHP] Lost in PHP (part 1) ---- Sequle to Lost in Query

2004-10-11 Thread GH
Re: Does it _really_ matter if only a number is passed? I would think so since if someone is trying to pass a string that is not proper it should be treated as such and not as if they are just take the first set of numbers and Throw away all the rest. Maybe I am over thinking this or I am

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Mulley, Nikhil
No Holmes ,Its not working , is there any other way ... And My specific would be something that by Giving an IP or a hostname ,the script should fetch the user logged in currently,, like when we use the nbtstat command on a Windows Domain with the argument as the hostname , it would fetch the

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Mulley, Nikhil
Hi Vail, My Worry is that If a remote OS is not Windows, then this would throw out garbage, Where as this Perl Script would work well at a Windows Side ,Bcoz I am using the 'Win32' Module ,is there any other module such that . We cannot even predict ( or I believe there is no exact way )

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Mulley, Nikhil
How do I turn on the Integrated Authentication turned on. Ours is a mixed heterogenous network which has Windows,Linux,Solaris,BSD Lindows,Linspire and many other OS all together,So How Do I? -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12,

Re: [PHP] Lost in PHP (part 1) ---- Sequle to Lost in Query

2004-10-11 Thread Minuk Choi
As far as checking to see if it's a number, note that you can get the following 10 = string that contains 10 10 = integer that contains 10. You can verify that a variable contains numbers or numeric data by using if (is_numeric($variable)) { $variable is either a number variable or a string

Re: [PHP] sending SMS messages to mobile phones from PHP

2004-10-11 Thread Sagar C Nannapaneni
You can use SMSTERM /sagar - Original Message - From: SunTan.co.uk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 10, 2004 7:38 PM Subject: [PHP] sending SMS messages to mobile phones from PHP Hi there, I want my website to be able to send me an SMS message to my phone

Re: [PHP] SOMETIMES, my SID gets embedded in the URL ???

2004-10-11 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I tried ini_set('session.use_only_cookies', 1). I also tried ini_set('session.use-trans-sid', 0). Right after I made the change, the sid was gone, urls didn't contain it anymore, BUT, the next day, today, when I accessed the site from my office (another computer), the SID is there again! And this

Re: [PHP] Parse Error --- can not solve at this time... please assit

2004-10-11 Thread Janet Valade
GH wrote: With the following code, I am getting the following message Parse error: parse error, expecting `')'' in /var/www/html/cert/admin_template.php on line 30 Line 30 Reads as follows: foreach($admin_get_options_result as $api = $file, $desc) Your syntax is incorrect on this

[PHP] Finding one line in a Variable?

2004-10-11 Thread Nick Wilson
Hello all, I have to find and put one line of an html file in a variable. I already have the entire html file stored in a variable like this: $myHTML=htmlheadblah blah blah; - Grabbed using cURL The particular line I want will *always* contain the string the_identifying_string So the line

[PHP] Best practise for resolving potential conflicts when editing db content?

2004-10-11 Thread Murray @ PlanetThoughtful
Hi All, I'm developing a wiki-esque application for an in-house project and am wondering how others go about resolving potential conflicts when multiple users are editing the same content drawn from a MySQL database? In particular, I'm working on code that allows users to rename 'pages'

Re: [PHP] sending SMS messages to mobile phones from PHP

2004-10-11 Thread Jad Madi
- User8 is [EMAIL PROTECTED] * [EMAIL PROTECTED] User8 using arcor.de.eu.dal.net www.arcor.de - Arcor Online Serv On Mon, 11 Oct 2004 23:34:18 +0530, Sagar C Nannapaneni [EMAIL PROTECTED] wrote: You can use SMSTERM /sagar - Original Message - From: SunTan.co.uk [EMAIL

Re: [PHP] forms

2004-10-11 Thread Minuk Choi
What is a connect_db file? - Original Message - From: bigmark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 10, 2004 11:33 PM Subject: Re: [PHP] forms Thanks-- i got that going-GREAT ! now i have a form that creates the database and tables, any ideas how i can get this

Re: [PHP] install /setup script

2004-10-11 Thread Minuk Choi
Well, you can just put up a regular form, something to the effect of form action=create_db.php method=post Hostname input type=text name=Hostname User Nameinput type=text name=username Password input type=text name=password ... ... ... etc. /form and when you submit that form, those variables will

Re: [PHP] Parse Error --- can not solve at this time... please assit

2004-10-11 Thread Minuk Choi
the , $desc) is your culprit. foreach ($arrayVariable as $key=$value) is probably the form you meant. foreach ($admin_get_options_result as $api =$file, $desc) what is $api, $file, $desc supposed to be? If I were to hazard a guess, is the $admin... array a nested array, something like

Re: [PHP] Finding one line in a Variable?

2004-10-11 Thread Minuk Choi
If you don't mind NOT using regex or regular expression searching commands, you can try it this way. Assuming that there is a carriage break(e.g. \r\n if windows, and I'm assuming the HTML file was written in windows, otherwise, just \n for Unix and \n\r for Mac, I believe). $eolnString

[PHP] testing - disregard

2004-10-11 Thread Minuk Choi
This is a test e-mail, please disregard

RE: [PHP]

2004-10-11 Thread php-list
Never mind guys, I figured it out. I appreciate your help. Thanks for everything! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, October 10, 2004 10:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Thanks to all of you for your explanation of my method.

[PHP] [Fwd: curl and certificate]

2004-10-11 Thread Tassos T
hi, i face a problem with curl. i have a certificate file (certificate.cer) and i use the follow code : $ch = curl_init(); $cert = certificate.cer; curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt ($ch,

Re: [PHP] PHP gurus...how are they doing this?

2004-10-11 Thread Mag
Hi John, Thank you for replying. once a person submits a site, they are doing 2 things that totally puzzle me, 1.showing the number of outgoing links Middle man. You have them click on a link containing an ID, increment the counter for that ID, then forward them to the requested link.

[PHP] Gmail Search

2004-10-11 Thread Mulley, Nikhil
Hi guys, I have a new need here..., I have some 3 gmail accounts which are filled up with some 800MB stuff useful each like MySQl and PHP ,Linux ,What I wanted is a search I have my home page in my Intranet, I want to put a search their, What it should do is take the search

Re: [PHP]

2004-10-11 Thread Jason Wong
On Monday 11 October 2004 19:41, [EMAIL PROTECTED] wrote: Never mind guys, I figured it out. I appreciate your help. Thanks for everything! Next time you start a thread please give it a meaningful subject. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

RE: [PHP] PHP gurus...how are they doing this?

2004-10-11 Thread Graham Cossey
[snip] This is how far I have come trying to imitate the above: (Its not working of course :-) ) ?php $url=fsockopen('http://www.jumac.com/'); $html = implode('', file($url)); //put the page source in a string //find the links and put them in an array $links = array(); if

Re: [PHP] sending SMS messages to mobile phones from PHP

2004-10-11 Thread Jordi Canals
On Sun, 10 Oct 2004 15:23:54 +0100, Andrew Cowles [EMAIL PROTECTED] wrote: We operate an SMS Gateway service (http://www.kapow.co.uk/) which would do exactly what you need. It's been reliably sending SMS since 1995 - and MANY of our clients use PHP. Unfoturnately your price list is only in

Re: [PHP] SOMETIMES, my SID gets embedded in the URL ???

2004-10-11 Thread Jordi Canals
I had this problem in the past, and asking the PHP people, found that session.use_trans_sid is PHP_INI_DIR for PHP 4 and PHP_INI_ALL for PHP 5. That is the response I received from a bug I submited some time ago http://bugs.php.net/bug.php?id=28991 So, You're setting user_trans_sid with ini_set

Re: [PHP] Finding one line in a Variable?

2004-10-11 Thread Nick Wilson
* and then Minuk Choi declared If you don't mind NOT using regex or regular expression searching commands, you can try it this way. Assuming that there is a carriage break(e.g. \r\n if windows, and I'm assuming the HTML file was written in windows, otherwise, just \n for snip..

[PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
Hi, I am using a statement like this $url=file_get_contents(http://www.yahoo.com/;); The thing is, it takes quite some time (2-5 secs) before the contents are in my program (I am using my local webserver on my desktop for testing...not a webserver) My questions are for you more experienced

[PHP] Encoding Question for getting pages

2004-10-11 Thread Nick Wilson
Hello, If im using cURL to grab pages, i like to set a $referer and $userAgent string. Easy enough right? If I do not encode the referer and ua strings my cURL functions do not seem to work, BUT, if I *do* encode them, they come out looking like this in the server logs..

[PHP] spaces in select

2004-10-11 Thread Angelo Zanetti
Hi all, I have a select/option that gets populated with countries. The value of these option are also set to the country name. The problem i have is that some countries have spaces in them eg: United States of America. When the form is posted and I echo the country variable out that has been

Re: [PHP] Encoding Question for getting pages

2004-10-11 Thread Matt M.
Mozilla%2F4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%0A that one is using rawurlencode() but it's just as bad with urlencode - How *should* I be doing this? is this how you tried to do it? $userAgent = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0); curl_setopt($ch,

Re: [PHP] Encoding Question for getting pages

2004-10-11 Thread Nick Wilson
* and then Matt M. declared Mozilla%2F4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%0A that one is using rawurlencode() but it's just as bad with urlencode - How *should* I be doing this? is this how you tried to do it? $userAgent = Mozilla/4.0 (compatible; MSIE

Re: [PHP] spaces in select

2004-10-11 Thread Matt M.
I have a select/option that gets populated with countries. The value of these option are also set to the country name. The problem i have is that some countries have spaces in them eg: United States of America. what doe your select loo like? something like this should work select

Re: [PHP] spaces in select

2004-10-11 Thread Dan Joseph
I have a select/option that gets populated with countries. The value of these option are also set to the country name. The problem i have is that some countries have spaces in them eg: United States of America. When the form is posted and I echo the country variable out that has been

RE: [PHP] spaces in select

2004-10-11 Thread Nunners
Another suggestion is to use country codes - generally accepted by most i.e. uk, us, ch, cn, za etc -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: 11 October 2004 15:42 To: Angelo Zanetti Cc: [EMAIL PROTECTED] Subject: Re: [PHP] spaces in select I have a

Re: [PHP] spaces in select-SOLVED

2004-10-11 Thread Angelo Zanetti
ok thanks to those who responded: this is how i got it working: echo(option value=\ . $row['location'] . \ . trim($row['location']) . /option); Angelo Dan Joseph [EMAIL PROTECTED] 10/11/2004 4:43:56 PM I have a select/option that gets populated with countries. The value of these

[PHP] Lost in query... Trying to get output from query....

2004-10-11 Thread GH
Greetings: I am having a problem with trying to get data out of my mySql database. I run my query which works fine and everything... I use: $admin_get_options_query_text = Select * from adminpage; $admin_get_options_results_reference =

Re: [PHP] Lost in query... Trying to get output from query....

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 10:58:45 -0400, GH [EMAIL PROTECTED] wrote: my problem is that I would like to get that output into my php codeI would like to have something that goes like this for each record.. The api# $adminpageid allows you to $description, and uses the file #file_name can

RE: [PHP] Lost in query... Trying to get output from query....

2004-10-11 Thread Murray @ PlanetThoughtful
Hi, You need to loop through the returned recordset and use the returned result(s). Instead of: $admin_get_options_result = mysql_fetch_assoc($admin_get_options_results_reference); Try: While ($admin_get_options_result = mysql_fetch_assoc($admin_get_options_results_reference)){ echo

Re: [PHP] spaces in select

2004-10-11 Thread John Nichel
Angelo Zanetti wrote: Hi all, I have a select/option that gets populated with countries. The value of these option are also set to the country name. The problem i have is that some countries have spaces in them eg: United States of America. When the form is posted and I echo the country variable

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 07:24:03 -0700 (PDT), Mag [EMAIL PROTECTED] wrote: $url=file_get_contents(http://www.yahoo.com/;); The thing is, it takes quite some time (2-5 secs) before the contents are in my program (I am using my local webserver on my desktop for testing...not a webserver) My

Re: [PHP] Lost in query... Trying to get output from query....

2004-10-11 Thread John Nichel
GH wrote: Greetings: I am having a problem with trying to get data out of my mySql database. I run my query which works fine and everything... I use: $admin_get_options_query_text = Select * from adminpage; $admin_get_options_results_reference =

Re: [PHP] Lost in query... Trying to get output from query....

2004-10-11 Thread GH
Thank You Murray's suggestion worked On Mon, 11 Oct 2004 11:20:57 -0400, John Nichel [EMAIL PROTECTED] wrote: GH wrote: Greetings: I am having a problem with trying to get data out of my mySql database. I run my query which works fine and everything... I use:

[PHP] Lost in PHP (part 1) ---- Sequle to Lost in Query

2004-10-11 Thread GH
Now I m perplexed time 10! I run the code that follows this time providing a query string of admin_template.php?api=101 I have an if statement that tests if $_GET['api'] == 0 if it is true I have it listing options, else it queries the database with that ID and loads the associated

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
Hey, On Mon, 11 Oct 2004 07:24:03 -0700 (PDT), Mag [EMAIL PROTECTED] wrote: $url=file_get_contents(http://www.yahoo.com/;); The thing is, it takes quite some time (2-5 secs) before the contents are in my program (I am using my local webserver on my desktop for testing...not a

[PHP] Problem of varible

2004-10-11 Thread edwardspl
Dear You, When disable the globals varibles function, the following php can't be good for working : upload1.htm Form Action=getfile1.php Method=POST Enctype=multipart/form-data Input Type=File Name=upfile p Input Type=Submit value=Send /Form getfile1.php ? echo File Name$upfile_nameBR; echo

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread lists
Im kinda bummed, I tried to us it last night and discovered I could not use it because Pair Networks disables the ability, can't include either. from their newsletter: Lately, the most common method of exploit has been to pass a variable to a PHP script which does not sufficiently check the

Re: [PHP] Re: php and print

2004-10-11 Thread raditha dissanayake
Harlequin wrote: Bruno I'm still rather new to PHP so I use client side Java: you are not using java you are using javascript. [CODE] !-- Print Page -- pClick Here To Print This Page: a href=javascript:window.print()img src=../images/Icon_Printer.gif border=0 alt=Print This Page/a/p [/CODE]

  1   2   >