Re: [PHP] Can't figure mail & post out

2005-03-07 Thread anirudh dutt
On Tue, 8 Mar 2005 10:28:32 +0530, Zareef Ahmed <[EMAIL PROTECTED]> wrote: > On Mon, 7 Mar 2005 10:02:32 +0530, anirudh dutt <[EMAIL PROTECTED]> wrote: > > On Mon, 7 Mar 2005 08:37:52 +0530, Zareef Ahmed <[EMAIL PROTECTED]> wrote: > > > Again you are sending the mail to same person very time. > > >

Re: [PHP] fsockopen and session_start

2005-03-07 Thread Jason Wong
On Monday 07 March 2005 22:02, Pedro Garre wrote: > I am using fsockopen to simulate a POST to another page (test_post.php) > within the same server. It's not clear how exactly you're executing your code. I suspect that you haven't closed the session before doing your simulated POST. Your order

Re: [PHP] Newbie Question re substr

2005-03-07 Thread Jackson Linux
Zareef, Almost On 7 Mar 2005, at 23:52, Zareef Ahmed wrote: From: [EMAIL PROTECTED] Subject:Re: [PHP] Newbie Question re substr Date: 7 March 2005 23:52:15 GMT-05:00 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Rep

Re: [PHP] Can't figure mail & post out

2005-03-07 Thread Zareef Ahmed
On Mon, 7 Mar 2005 10:02:32 +0530, anirudh dutt <[EMAIL PROTECTED]> wrote: > On Mon, 7 Mar 2005 08:37:52 +0530, Zareef Ahmed <[EMAIL PROTECTED]> wrote: > > Hi Robert, > > > > Please take a look at php manual and try to know something about > > $_POST, $_GET etc. > > Your code is full of errors. >

Re: [PHP] Newbie Question re substr

2005-03-07 Thread Zareef Ahmed
On Mon, 7 Mar 2005 22:23:19 -0500, Jackson Linux <[EMAIL PROTECTED]> wrote: > Hi, > I'm really new and getting lots of help but need some assistance. > > I'm running a script which gets specific articles from a database if > they're entered in the URL after the ? . For instance if someone asks > f

Re: [PHP] get image from browser url.

2005-03-07 Thread Jochem Maas
buck Wheat wrote: Hello all, I am writing a script that uses curl to access a webpage that is password protected and uses cookies. The webpage displays a graph on my browser and I would like to capture and save that graph to a file. This is the url I am using in curlopt_url : http://10.10.10.22:8

[PHP] Newbie Question re substr

2005-03-07 Thread Jackson Linux
Hi, I'm really new and getting lots of help but need some assistance. I'm running a script which gets specific articles from a database if they're entered in the URL after the ? . For instance if someone asks for www.foo.com/index.htm?a=1234 then the script would look for an database entry with

Re: [PHP] Re: Randomize an array?

2005-03-07 Thread Brian Dunning
http://www.php.net/shuffle Boy do I feel stupid. Thanks!! :) I always RTFM and STFW before posting - but somehow did not search the PHP site for the word "shuffle." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using switch() to process a set of forms

2005-03-07 Thread Greg Dotts
Sure enough Kirk! That was it. Seems strange that you can set a name/value pair on the tag, but they aren't used. Guess they were just kidding ;-) Greg Greg Dotts wrote: Sure enough Kirk! That was it. Seems strange that you can set a name/value pair on the tag, but they aren't used. Gu

Re[2]: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Tom Rogers
Hi, Tuesday, March 8, 2005, 12:03:54 AM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 11:20:04 PM, you wrote: T>> I do this for security as I have things in include that I don't T>> want to be avaiable directly to the browser Also you don't need a T>> path for include files you can just d

[PHP] get image from browser url.

2005-03-07 Thread buck Wheat
Hello all, I am writing a script that uses curl to access a webpage that is password protected and uses cookies. The webpage displays a graph on my browser and I would like to capture and save that graph to a file. This is the url I am using in curlopt_url : http://10.10.10.22:8080/NetPerfMon/V

Re: [PHP] Re: Randomize an array?

2005-03-07 Thread Rick Fletcher
Brian Dunning wrote: On Mar 7, 2005, at 7:40 AM, M. Sokolewicz wrote: array_rand() But that's likely to give me the same element more than once. I want to output the entire array but in a random order, like a shuffled deck of cards. like a shuffled deck of cards? http://www.php.net/shuffle -- PH

re: [PHP] Open source portal systems???

2005-03-07 Thread Alan Fullmer
I must concur. PHP nuke has never even been the slightest resource hog on any of my machines. Alan Fullmer Owner / Administrator [EMAIL PROTECTED] -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED] Sent: Friday, Febr

FW: [PHP] call anchor from php

2005-03-07 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, March 07, 2005 3:09 PM said: Ross, Please don't send emails off list unless there is a specific reason to do so. In this case, there's not. Now on to your issue. > What I want to do is something like this although this doesn't work Wh

Re: [PHP] Using switch() to process a set of forms

2005-03-07 Thread kjohnson
I think the problem is that the name and value attributes of the tag aren't posted with the rest of the data, i.e., $_POST['form'] isn't defined. You will need to code the form identifier a different way, e.g., either a field, or, unique name and value attributes in a button. Kirk Greg Do

Re: [PHP] Re: Sessions

2005-03-07 Thread db
On Monday 07 March 2005 21:36, Jason Barnett wrote: > You are probably best off searching the PHP source for > session_set_save_handler. It will be something like > PHP_FUNCTION('session_set_save_handler', ... ) Found it and some other functions in php-5.0.3/ext/session/session.c I could however

RE: [PHP] call anchor from php

2005-03-07 Thread Chris W. Parker
Ross Hulford on Monday, March 07, 2005 2:48 PM said: > Is it possible to call a named anchor from within a php script?? I > need my page to go to the point in the page where the form is and > bypass all the rubbish. Since that is a client-side issue and PHP is serve

[PHP] Using switch() to process a set of forms

2005-03-07 Thread Greg Dotts
Hi All, I'm new to PHP, but have read my "Beginning PHP 5 and MySQL" manual and have searched the net for a solution to my (presumably simple) problem. I have a series of HTML forms that need to be processed. I am tring to build a "process.php" file which will evaluate the FORM variable and se

[PHP] call anchor from php

2005-03-07 Thread Ross Hulford
Is it possible to call a named anchor from within a php script?? I need my page to go to the point in the page where the form is and bypass all the rubbish. Thanks y'all -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ftp upload via web form - problem getting the file name correct

2005-03-07 Thread Steve Turnbull
Hi I have tried creating a script which will allow our core staff to upload files to our FTP server. I don't have a problem with the uploading of a local file to our FTP server with the correct authentication etc, the problem I am having, is that the file which gets uploaded always has the filena

[PHP] Re: Sessions

2005-03-07 Thread Jason Barnett
Db wrote: > Hi all > > I'm writing a C++ CGI lib and I want to support php(5) sessions. Is there > some > API I should use or can I just create/delete/read/write the sess_ files > in /tmp? You are probably best off searching the PHP source for session_set_save_handler. It will be something li

Re: [PHP] Problem with ftp_get and ftp_put over SSL--SOLVED

2005-03-07 Thread Tim Boring
On Wed, 2005-02-23 at 15:58 -0500, Tim Boring wrote: > Hi, Richard! > > On Wed, 2005-02-23 at 08:45 -0800, Richard Lynch wrote: > > Maybe try the active/passive thing... > > > > Often-times, the client/server will/won't allow one or the other, based on > > their idea of what's safe/fast. > > Yes,

Re: [PHP] mac os x - not getting headers already sent error

2005-03-07 Thread Jonathan Haddad
The problem is more of my own output sticking around (echo $query) and the test server still going to the next page, despite the echoed text. I'm not sure how to use output buffering to fix this.. Jon On Mar 7, 2005, at 2:01 AM, Burhan Khalid wrote: Jonathan Haddad wrote: I do all my development

Re: [PHP] FTP functions

2005-03-07 Thread Tim Boring
Hello! On Mon, 2005-03-07 at 18:20 +0530, Vaibhav Sibal wrote: > Hi > I checked ou the ftp functions of PHP, what I wanted to ask was that > if I connect to a remote server and issue and ftp_fget() command the > file will be downloaded to the server running the PHP code and Apache > webserver or t

[PHP] Sessions

2005-03-07 Thread db
Hi all I'm writing a C++ CGI lib and I want to support php(5) sessions. Is there some API I should use or can I just create/delete/read/write the sess_ files in /tmp? br db -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: A general question

2005-03-07 Thread zzapper
On Mon, 07 Mar 2005 09:32:56 -0800, wrote: Regards my previous post in this thread, Sorry for not reading the OP correctly!! zzapper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Open Base with PHP

2005-03-07 Thread François-Xavier LACROIX
hello, I am totally new to this list, I just want to know if someone have ever use a driver ODBC to access a database 'Open Base' with PHP. I know where to buy an ODBC dll on http://www.actualtechnologies.com/Product_OpenBase.php but I don't know if it could really work... look forward to heari

[PHP] 'Open Base' with PHP

2005-03-07 Thread François-Xavier LACROIX
hello, I am totally new to this list, I just want to know if someone have ever use a driver ODBC to access a database 'Open Base' with PHP. I know where to buy an ODBC dll on http://www.actualtechnologies.com/Product_OpenBase.php but I don't know if it could really work... look forward to heari

Re: [PHP] Re: A general question

2005-03-07 Thread Stephen Johnson
You have to trick the browser into thinking that the jpg file is something other then a jpg. This is sketchy and does not always work. Something like this maybe $len = filesize($file_path); header("Content-Type: application/force-download"); header("Content-

[PHP] Re: A general question

2005-03-07 Thread zzapper
On Mon, 7 Mar 2005 19:55:37 +0530, wrote: >How can I click on a link which is linked to a JPG file and instead of >displaying it in the browser save it somewhere on the local machine or >open in a different software ? > >Please help very urgent > >Thanks >vaibhav Some zzapper (vim, cygwin, wiki

RE: [PHP] using javascript within php

2005-03-07 Thread Jay Blanchard
[snip] I want to set focus on a text area with javascript if the entry by the user is not what I want. if (isset($submitted){ if(empty($name)) { $fname_error = " *Please Enter your firstname or initial"; //the code to set focus to the textbox should go here } [/snip] if(empty($name)) { $fname_e

Re: [PHP] using javascript within php

2005-03-07 Thread John Nichel
Ross Hulford wrote: PHP == Server Side HTML/JavaScript == Client Side -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using javascript within php

2005-03-07 Thread Ross Hulford
I want to set focus on a text area with javascript if the entry by the user is not what I want. This is what i have so far. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] GET vs POST (was: Preventing data from being reposted?)

2005-03-07 Thread Christophe Chisogne
Richard Lynch a écrit : POST versus GET is an aesthetic choice, not Security, not Performance. Of course, I agree it's not really a 'security' choice. But another think you can think of can be found in the HTTP/1.1 spec (rfc 2616) in the 'Safe Methods' section [1]. To summarize: - GET (and HEAD) sh

RE: [PHP] Improving a MySQL Search

2005-03-07 Thread Jay Blanchard
[snip] Further to my email last week, I've now indexed all the fields that get searched on (i.e. sql statement is similar to "select x, y from table where x='blah'" - x is the indexed field). Is that the correct field to index? [/snip] Yes, have you tried an EXPLAIN on your SELECT? [snip] Sorry

RE: [PHP] Improving a MySQL Search

2005-03-07 Thread James Nunnerley
Further to my email last week, I've now indexed all the fields that get searched on (i.e. sql statement is similar to "select x, y from table where x='blah'" - x is the indexed field). Is that the correct field to index? My table structure is now as follows: CREATE TABLE `syslog` ( `ID` int(100

[PHP] Re: Weird WMV/Media Player behaviour (Loading media file twice)

2005-03-07 Thread Jared Williams
> Does anyone have any idea why this is happening and how I can avoid > this double request? Try checking the UserAgent for each request. http://support.microsoft.com/default.aspx?scid=kb;en-us;293792 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

RE: [PHP] Re: Randomize an array?

2005-03-07 Thread Jay Blanchard
[snip] > array_rand() But that's likely to give me the same element more than once. I want to output the entire array but in a random order, like a shuffled deck of cards. [/snip] Wow,. http://www.php.net/shuffle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Randomize an array?

2005-03-07 Thread Brian Dunning
On Mar 7, 2005, at 7:40 AM, M. Sokolewicz wrote: array_rand() But that's likely to give me the same element more than once. I want to output the entire array but in a random order, like a shuffled deck of cards. - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: Randomize an array?

2005-03-07 Thread M. Sokolewicz
Brian Dunning wrote: I have a Magpie RSS feed in an array, and I want to output it in random order. What's the best (fastest) way to do this? - Brian easiest: array_rand() http://www.php.net/array_rand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Randomize an array?

2005-03-07 Thread Brian Dunning
I have a Magpie RSS feed in an array, and I want to output it in random order. What's the best (fastest) way to do this? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Timeouts during large uploads, very slow queries etc

2005-03-07 Thread zzapper
On Mon, 7 Mar 2005 13:54:07 -, wrote: >> >> zzapper (vim, cygwin, wiki & zsh) > >http://sourceforge.net/projects/megaupload/ > >Maybe this will help? I've been looking for a PHP replacement of >something as graceful as ASPUpload and this is the closest I can find. > Chris, Supercool, but I

RE: [PHP] Problem with Tabs and Newlines

2005-03-07 Thread trlists
On 7 Mar 2005 Jay Blanchard wrote: > /t and /n do not work for HTML output. If you view the source of your > HTML output you will see that the tabs and newlines are used properly. > You will have to substitute an HTML equivalent. The HTML equivalent would likely be tables -- but if he uses then

RE: [PHP] Problem with Tabs and Newlines

2005-03-07 Thread Jay Blanchard
[snip] I just put filesystem and size on the first line to test the \t for creating a tab. The \t and \n don't seem to work. What am I doing wrong here? Thanks for any help you can give me. [/snip] /t and /n do not work for HTML output. If you view the source of your HTML output you will see that

SV: [PHP] A general question

2005-03-07 Thread Kim Madsen
Fra: Vaibhav Sibal [mailto:[EMAIL PROTECTED] Sendt: 7. marts 2005 15:26 Til: php-general@lists.php.net Emne: [PHP] A general question > How can I click on a link which is linked to a JPG file and instead of > displaying it in the browser save it somewhere on the local machine or > open in a diffe

[PHP] Problem with Tabs and Newlines

2005-03-07 Thread Phusion
I'm having problems with a function I created to display filesystems. The problem is that I can't get tabs (\t) or newlines (\n) to work. function filesystems () { $df = `df -kP`; $mounts = preg_split('/\n/', $df); $row = "Filesystem\t" . "Size\n"; for ($i = 1, $max = sizeof($mo

[PHP] A general question

2005-03-07 Thread Vaibhav Sibal
How can I click on a link which is linked to a JPG file and instead of displaying it in the browser save it somewhere on the local machine or open in a different software ? Please help very urgent Thanks vaibhav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Leif Gregory
Hello Tom, Sunday, March 6, 2005, 11:20:04 PM, you wrote: T> I do this for security as I have things in include that I don't T> want to be avaiable directly to the browser Also you don't need a T> path for include files you can just do: Don't necessarily disagree with you there other than if you

Re: [PHP] Pop-up message

2005-03-07 Thread f00l
not knowing much about php myself but you could ask phpBB about their private msgs. i cant recall whther it is a mod that pops the window up on receiving a msg or whether the user is online (probably configurable). But as far as direction, that is where i would be heading :) Greg "Richard Lync

RE: [PHP] Timeouts during large uploads, very slow queries etc

2005-03-07 Thread Chris Rose
> >I am running a simple Upload script in PHP using a HTML Form with a File > field. The user can browse their computer and upload a file. It works > great, except for large files, where the browser will timeout. The > timeout appears to happen after about 5 minutes. Any ideas on how to get > a

[PHP] Re: Pear DB class not PHP5 strict compatible?

2005-03-07 Thread M. Sokolewicz
Richard Davey wrote: Hi, Having heard good things about the PEAR DB package I wanted to try it out on a new project. I'm using PHP 5.0.3, ran the go-pear and installed the latest version but upon including it in my script it brings up rafts of errors such as: Strict Standards: Assigning

[PHP] Pear DB class not PHP5 strict compatible?

2005-03-07 Thread Richard Davey
Hi, Having heard good things about the PEAR DB package I wanted to try it out on a new project. I'm using PHP 5.0.3, ran the go-pear and installed the latest version but upon including it in my script it brings up rafts of errors such as: Strict Standards: Assigning the return value o

RE: [PHP] A more ecconomical way with control statements??

2005-03-07 Thread Stanislav Kuhn
in the form: ... ... in the script ... foreach($_REQUEST['cookie_vars'] $var_name as $var_val) if (!empty($var)) setcookie("cookie[$var_name]", "$var_val"); ... Stan -Original Message- From: Ross Hulford [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 12:59 To: php-general@lists.p

[PHP] fsockopen and session_start

2005-03-07 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I am using fsockopen to simulate a POST to another page (test_post.php) within the same server. Data sent to the socket is: "POST $uri HTTP/1.1\r\n". "Host: $host\n". "User-Agent: mandapost\r\n". "Cookie: ".ses

[PHP] A more ecconomical way with control statements??

2005-03-07 Thread Ross Hulford
if (empty($samosa)){ // do nothing } else { setcookie("cookie[samosa]", "$samosa"); } if (empty($pakora)){ // do nothing } else { setcookie("cookie[pakora]", "$pakora"); } It goes on like this for the whole menu I am looking for a more effiecient way to do this. The inputs are text box

[PHP] FTP functions

2005-03-07 Thread Vaibhav Sibal
Hi I checked ou the ftp functions of PHP, what I wanted to ask was that if I connect to a remote server and issue and ftp_fget() command the file will be downloaded to the server running the PHP code and Apache webserver or the client machine from which we are calling it ? In the sense for example

[PHP] [ignore] testing connection

2005-03-07 Thread Greg
ignore please, just testing connection :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-03-07 Thread f00l
Come here to get help, not abuse for what its worth: sql dbase with fields usernamepassiptime if duplicate username/passowrd then check that IPs match and dont do anything if IPs <> match then kick both users off / disable username/password go figure the code out yourself here is the

[PHP] Shoutbox without sql dbase

2005-03-07 Thread f00l
Hi all, I was wondering if anyone has come across (or even using) a shoutbox that doesnt require an sql dbase. While it isnt hard to access one id prefer to write everything to a file (wanting to learn how to write, append etc files) I tried one but for some reason the script processing turned in

[PHP] Timeouts during large uploads, very slow queries etc

2005-03-07 Thread zzapper
>I am running a simple Upload script in PHP using a HTML Form with a File >field. The user can browse their computer and upload a file. It works great, >except for large files, where the browser will timeout. The timeout appears >to happen after about 5 minutes. Any ideas on how to get aroun

[PHP] Re: Inline Frame and php

2005-03-07 Thread f00l
Hi, Would I be right in assuming that the top frame has the search button but when searching, the results appear on a new window? or the "main" window? Greg "Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My client insists on using inline Frames that uses my php pages.

[PHP] testing

2005-03-07 Thread Greg
Just testing guys :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pspell replace

2005-03-07 Thread Noodles
Nevermind I found it myself Format should be: personal_repl-1.1 en 0 misspelling replacement Noodles wrote: Hi, After much messing around I've got a custom dictionary working properly, but I can't seem to find the format for a custom replace file (custom.repl in examples on php.net). Can anyone

[PHP] Re: Download with header() - file corrupted

2005-03-07 Thread Werner Jäger
I solved the problem with inserting this line at the beginning: ob_end_clean(); all works fine.. I am using php 4 with IIS6 / WinServer 2003 thanks Werner Jäger wrote: I try to download a file wit follow code: $len = filesize($file); $filename = basename($file); header("Pragma: public");

[PHP] pspell replace

2005-03-07 Thread Noodles
Hi, After much messing around I've got a custom dictionary working properly, but I can't seem to find the format for a custom replace file (custom.repl in examples on php.net). Can anyone point me in the right direction or give me an example file? Thanks Nick P.S. In case anyone is wondering the