Re: [PHP] Best way to transfer session IDs

2003-07-25 Thread Chris Shiflett
--- "Matthew A. Blasinski" <[EMAIL PROTECTED]> wrote: > So, I'm thinking a plausible session id could be made by hashing > their identification (to make it useful to the rightful owner > only) with a private key (to make it hard to get and guess). I > think the identification could be their IP, use

Re: [PHP] funny output

2003-07-25 Thread Chris Shiflett
--- Ryan A <[EMAIL PROTECTED]> wrote: > So how do i get my scripts working again? the authentication part > was working perfectly but now it just kicks me back to the login > page... > > plus it looks like I am unable to set sessions properly, and i > suspect thats why i am getting kicked back to

Re: [PHP] Best way to transfer session IDs

2003-07-25 Thread Curt Zirzow
* Thus wrote Matthew A. Blasinski ([EMAIL PROTECTED]): > Thanks for the response Chris, that's just the type of thing I was > looking for! > > So, I'm thinking a plausible session id could be made by hashing their > identification (to make it useful to the rightful owner only) with a > private

Re: [PHP] Best way to transfer session IDs

2003-07-25 Thread John W. Holmes
Matthew A. Blasinski wrote: I'm trying to track session data and merge several related services through a common server-side session (using Apache). One condition is that it won't use cookies to store the user data OR the session ID. Another is that the services we're merging use different lang

Re[2]: [PHP] Display Records (brief summary and full details)

2003-07-25 Thread Tom Rogers
Hi, Saturday, July 26, 2003, 7:28:16 AM, you wrote: PSG> Thanks Tom, PSG> I appreciate your help ! however I have a 2 quick questions... PSG> 1.) should we not save the names of the companies as $companies[$row] PSG> = $row['company']; PSG> 2.) the approach of accessing the variable a

Re: [PHP] Best way to transfer session IDs

2003-07-25 Thread Matthew A. Blasinski
Thanks for the response Chris, that's just the type of thing I was looking for! So, I'm thinking a plausible session id could be made by hashing their identification (to make it useful to the rightful owner only) with a private key (to make it hard to get and guess). I think the identificatio

Re: [PHP] funny output

2003-07-25 Thread Ryan A
Hey, Thanks for replying. So how do i get my scripts working again? the authentication part was working perfectly but now it just kicks me back to the login page... plus it looks like I am unable to set sessions properly, and i suspect thats why i am getting kicked back to the login page. Kindly

Re: [PHP] how to make a global scope array

2003-07-25 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sat, 26 Jul 2003 at 00:50, lines prefixed by '>' were originally written by you. > Ouch! > Sometimes I wish global didn't exist Yes, it can be better to pass in a variable (by reference if you need to write to it from within a function and not

Re: [PHP] funny output

2003-07-25 Thread Chris Shiflett
--- Ryan A <[EMAIL PROTECTED]> wrote: > I am having some funny output and funny things happening to my > scripts since I changed hosts... ... > there is a hidden text box appearing in the code that i didnt > write...this is it: > value="ad2e5a31727b2b4eb28b2d0c2d6ee67e" /> > > Also notice that it

[PHP] funny output

2003-07-25 Thread Ryan A
Hi everyone, I am having some funny output and funny things happening to my scripts since I changed hosts... my login scripts were working fine before but now they dont seem to work...also there is a hidden text box appearing in the code that i didnt write...this is it: Also notice that it ends w

Re: [PHP] Best way to transfer session IDs

2003-07-25 Thread Chris Shiflett
--- "Matthew A. Blasinski" <[EMAIL PROTECTED]> wrote: > My question - what is the best way to "know" the session id between > pages? Posting it in the URL and using $_GET["PHPSESSID"] is one > solution, but this seems like a hassle and is also open to attack if > someone could "guess" a valid se

Re: [PHP] file_put_contents()?

2003-07-25 Thread Curt Zirzow
* Thus wrote Jonas Thorell ([EMAIL PROTECTED]): > Another stupid newbie question...(btw, is there a list more geared towards > the newbies?) 1) the manual 2) the archives 3) see #1 > > Is the file_put_contents() function not available in PHP 4.3.2? If you notice in the manual under the function

Re: [PHP] file_put_contents()?

2003-07-25 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): > > Another stupid newbie question...(btw, is there a list more geared towards > > the newbies?) > > Yes, it's called the manual. > > > Is the file_put_contents() function not available in PHP 4.3.2? > > Seriously: www.php.net/file_put_conten

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread Curt Zirzow
* Thus wrote Lee Stewart ([EMAIL PROTECTED]): > Using the $_SESSION[] style produces the same results... Zero length > session file in /tmp, and no data passed... (available at > http://4.43.81.92/page1a.php) You did see my post about space left on /tmp? > > So where do I go from here...

Re: [PHP] incrementing string value

2003-07-25 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Jeremy ([EMAIL PROTECTED]): > > let me make sure I understand... > > > > $var = 'a'; > > $var++ > > print($var); > > > > would print "b" to the screen? > > um.. ignore my post ealier.. yes it does print 'b' I forgot to mention, be sur

Re: [PHP] Reading a file from another server

2003-07-25 Thread Chris Shiflett
--- Thomas <[EMAIL PROTECTED]> wrote: > readfile("ftp://username:[EMAIL PROTECTED]/test.txt"); > > It doesn't have any errors and comes up blank. > > If I put: > > $result = > readfile("ftp://username:[EMAIL PROTECTED]/test.txt"); > print ($result); > > it ends up showing a '0' by iteself. T

Re: [PHP] Display Records (brief summary and full details)

2003-07-25 Thread Curt Zirzow
* Thus wrote Pushpinder Singh Garcha ([EMAIL PROTECTED]): > Thanks Tom, > > I appreciate your help ! however I have a 2 quick questions... > > 1.) should we not save the names of the companies as $companies[$row] > = w['company']; I'm not sure in what context or what purpose you wish to do so.

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Lee Stewart
Using the $_SESSION[] style produces the same results... Zero length session file in /tmp, and no data passed... (available at http://4.43.81.92/page1a.php) So where do I go from here...Is there any way to debug it? Like I said, I suspect it's not a PHP code bug, but I'm at a loss as

[PHP] Best way to transfer session IDs

2003-07-25 Thread Matthew A. Blasinski
Hi, I'm trying to track session data and merge several related services through a common server-side session (using Apache). One condition is that it won't use cookies to store the user data OR the session ID. Another is that the services we're merging use different languages, including PHP a

Re: [PHP] how to make a global scope array

2003-07-25 Thread Curt Zirzow
* Thus wrote Comex ([EMAIL PROTECTED]): > <[EMAIL PROTECTED]> > Jack Lee: > > //I have an array a[] like this: > > > > > $a[]=0; > > > > //How to define and use it in a function like this? > > > > function myfunc(something) > > { > > echo $a[0]; //got error here Notice: Undefined vari

Re: [PHP] how to make a global scope array

2003-07-25 Thread Jack Lee
It works! Thanks guys! "David Nicholson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, This is a reply to an e-mail that you wrote on Fri, 25 Jul 2003 at 23:51, lines prefixed by '>' were originally written by you. > <[EMAIL PROTECTED]> > Jack Lee: > > //I have an array a[]

Re: [PHP] Rewrite and tags.

2003-07-25 Thread Curt Zirzow
* Thus wrote Simon Fredriksson ([EMAIL PROTECTED]): > > How can I easiest rewrite A and IMG tags? I'm fetching a page with > fsockopen() and I need to rewrite these tags before sending it on to a user. > > My own theory is that it's made with Regular Expressions. I just don't > know these mysel

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread Curt Zirzow
* Thus wrote Lee Stewart ([EMAIL PROTECTED]): > The symptom is that when I attempt to save a session variable, it > creates the session file in /tmp, but with a zero length - no variable > names or values stored. (/tmp is globally read/write) This happens not > only with the application I'm mo

Re: [PHP] how to make a global scope array

2003-07-25 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 25 Jul 2003 at 23:51, lines prefixed by '>' were originally written by you. > <[EMAIL PROTECTED]> > Jack Lee: > > //I have an array a[] like this: > > > $a[]=0; > > //How to define and use it in a function like this? > > function myf

Re: [PHP] Freeze Pane

2003-07-25 Thread Jason Martyn
I will put up the link to the example later. I'd just like to mention one thing if anyone else uses this solution: You may want to put both tables in the tags and give them both absolute locations. This eliminates the possiblity of having a mismatched table as different browsers are used. -

Re: [PHP] Re: php5 + php4 on same server

2003-07-25 Thread Volker
hi, you also could run two static compiled versions of apache (if apache) with php4 and 5 compiled in, but you need another ip-address to bind to - also have to manage 2 apaches(not a problem or what? ,-). sorry for my english. volker - Original Message - From: "Comex" <[EMAIL PROTECT

Re: [PHP] how to make a global scope array

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Jack Lee: > //I have an array a[] like this: > > $a[]=0; > > //How to define and use it in a function like this? > > function myfunc(something) > { > echo $a[0]; //got error here Notice: Undefined variable: > > } > >> > //Thanks for any help.!!! global $a; --

[PHP] how to make a global scope array

2003-07-25 Thread Jack Lee
//I have an array a[] like this: //Thanks for any help.!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php5 + php4 on same server

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Comex: > <[EMAIL PROTECTED]> > Thomas Hochstetter: >> Hi guys. >> >> Sorry, i know that was discussed earlier this month ... i just looked >> for the posting again in the archives ... i could only find the >> question post ... but there was an answer. >> >> So, how do you setup

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Johnson, Kirk
Sorry, I am stumped. I don't see any problems in the .ini file. Have you tried some simple code in "register_globals off" style? "; ?> Kirk > -Original Message- > From: Lee Stewart [mailto:[EMAIL PROTECTED] > Sent: Friday, July 25, 2003 4:27 PM > To: [EMAIL PROTECTED] > Subject: RE: [

[PHP] Re: php5 + php4 on same server

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Thomas Hochstetter: > Hi guys. > > Sorry, i know that was discussed earlier this month ... i just looked > for the posting again in the archives ... i could only find the > question post ... but there was an answer. > > So, how do you setup the server again to have php4 run on t

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Ray Hunter
Good point...thanks for catching that I usually link into forms from other frames if I dont have a submit button in that form. -- BigDog On Fri, 2003-07-25 at 15:49, Comex wrote: > <[EMAIL PROTECTED]> > Ray Hunter: > > On Fri, 2003-07-25 at 05:30, Matt Palermo wrote: > >> I just remembered (I'm

Re: [PHP] Reading a file from another server

2003-07-25 Thread Thomas
if I use: readfile("ftp://username:[EMAIL PROTECTED]/test.txt"); It doesn't have any errors and comes up blank. If I put: $result = readfile("ftp://username:[EMAIL PROTECTED]/test.txt"); print ($result); it ends up showing a '0' by iteself. that's it. and I knwo the txt file is full of inf

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Lee Stewart
I agree that it's probably a config problem -- somewhere... Yes, the session ID is passed correctly, but since page1.php doesn't end up with any variables or values in the session file, so regardless that it has the right session ID, there's nothing in the session file to restore... The php.ini

[PHP] php5 + php4 on same server

2003-07-25 Thread Thomas Hochstetter
Hi guys. Sorry, i know that was discussed earlier this month ... i just looked for the posting again in the archives ... i could only find the question post ... but there was an answer. So, how do you setup the server again to have php4 run on the :80 port and php5 on :8080 (apache server). Does

[PHP] Re: Reading a file from another server

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Thomas: > Hi Everyone. > > I'm having problems creating code to read a file from another server. > > 1. Is this even possible? with a secure server aswell? > 2. I have tried using fopen()but this always gives me an > error: > > Warning: stat failed for http://www.doma

Re: [PHP] Reading a file from another server

2003-07-25 Thread Chris Shiflett
--- Thomas <[EMAIL PROTECTED]> wrote: > I'm having problems creating code to read a file from another > server. > > 1. Is this even possible? with a secure server aswell? Yes. > this is my code: > $filename = "http://www.domain.com/test.txt";; > $handle = fopen ($filename, "r"); >

[PHP] Re: html and php in the same document

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Bill Pilgrim: > If php and html are to be included in the same document, does the > document extension always have to be .php ? No, but /why/ do you want to change it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP should know my data!

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Manoj Nahar: > and much needed function > > debug_and_test_all_my_code(); > Which is the most likely of all the functions here. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Ray Hunter: > On Fri, 2003-07-25 at 05:30, Matt Palermo wrote: >> I just remembered (I'm not sure if it makes a difference) that I am >> using frames on this page. Does this matter at all? Thanks. > > Yes it matters tons with the javascript call. > > Here is some info on it...

[PHP] Reading a file from another server

2003-07-25 Thread Thomas
Hi Everyone. I'm having problems creating code to read a file from another server. 1. Is this even possible? with a secure server aswell? 2. I have tried using fopen()but this always gives me an error: Warning: stat failed for http://www.domain.com/test.txt (errno=2 - No such file or

Re: [PHP] Display Records (brief summary and full details)

2003-07-25 Thread Pushpinder Singh Garcha
Thanks Tom, I appreciate your help ! however I have a 2 quick questions... 1.) should we not save the names of the companies as $companies[$row] = $row['company']; 2.) the approach of accessing the variable as $details = $_SESSION['link']['$_GET['name']] is not working , when I try

Re: [PHP] Re: Permission Denied (in FTP)

2003-07-25 Thread Stephen
I've tried a regular user and the root user but both seem to say permission denied... Thank you, Stephen Craton Senior Executive Web Developer Mophus.com, Inc. Lead Programmer/Webmaster WiredPHP (http://php.melchior.us) - Original Message - From: "Baroiller Pierre-Emmanuel" <[EMAIL PROT

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Johnson, Kirk
Your original code works for me, so it is a config issue somewhere. Add this code to each file, to verify that the session ID is being correctly passed: echo "session id is " . session_id() . ""; Also, is your php.ini in /usr/local/lib? If PHP can't find it, it will use its built-in defaults, wh

[PHP] Re: Permission Denied (in FTP)

2003-07-25 Thread Baroiller Pierre-Emmanuel
Hi, Doest your ftp account have sufficient access rights for deleting theses files ? Is your apache user is "nobody" , the chmod will not work ( take a look at your error log file), so, only nobody or root will able to remove these entries.. Regards, P.E. Baroiller "Stephen" <[EMAIL PROTECTED]>

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Lee Stewart
At 11:55 AM 7/25/2003, you wrote: If you are relying on cookies to transmit the session ID, make sure you have session cookies enabled in your browser. Also check that you don't have an .htacess file in your directory that is overriding the register_globals setting. Turn your error_reporting up to

[PHP] Re: XML handlers in classes

2003-07-25 Thread Greg Beaver
Hi Robert, Yes there is a very stupid reason: no one has written any. Go to http://phpdorks.net/docs/api/pear/HTTP/HTTP_Request.html http://phpdorks.net/docs/api/pear/PEAR/XML_Parser.html for documentation generated from the source by phpDocumentor Regards, Greg -- phpDocumentor http://www.php

RE: [PHP] Odd escape code behavior

2003-07-25 Thread Chris W. Parker
Meeta Bhaduri on Friday, July 25, 2003 12:33 PM said: > Correct php code would be : > /mypath/my.gif > Works only if I remove the ">" : > > Can someone point out where I'm goofing up? Do this instead: > Also, I'm not on this list, so I'd appreciate replies > to

[PHP] Permission Denied (in FTP)

2003-07-25 Thread Stephen
Hello, I'm having some slight issues. I have a script which creates a directory and then copies a blank file into it 4 times each with different names. Here's the code which does it: After all that is done, it's fine. The problem I'm having is deleting the folder in an FTP client. When

[PHP] RE: XML handlers in classes

2003-07-25 Thread Robert Fitzpatrick
> Use xml_set_object, and away you go. Perhaps you would benefit from > using PEAR's XML_Parser or XML_Transformer, or even PEAR's > HTTP_Request > class. > http://php.net/xml_set_object http://pear.php.net/xml_parser http://pear.php.net/xml_transformer http://pear.php.net/http_request Thanks

[PHP] Odd escape code behavior

2003-07-25 Thread Meeta Bhaduri
Hi, I've recently started looking into some PHP code, so please bear with me if I sound less than a novice... I have a html file with php code which works only if I remove the ">" from the ending escape sequence. For example, Correct php code would be : /mypath/my.gif Works only if I remove the ">

Re: [PHP] XML handlers in classes

2003-07-25 Thread Marek Kilimajer
If I remember well you can pass an array with object as the first element, function name as second: xml_set_element_handler($xml_parser, array($this,'startElement'),array($this,'endElement')); Robert Fitzpatrick wrote: I have a class that receives an XML response from a HTTP request and I am t

Re: [PHP] Freeze Pane

2003-07-25 Thread Jason Martyn
Thanks Rob. Your idea on the div tag works perfect. Definitely the preferable alternative to javascript.. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Link acting as a submit button

2003-07-25 Thread daemorhedron
Another option might be to use the heredoc syntax, but having php echo your html is not the most effecient. Just FYI. http://ca.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc "Matt Palermo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am tryin

Re: [PHP] file_put_contents()?

2003-07-25 Thread CPT John W. Holmes
> Another stupid newbie question...(btw, is there a list more geared towards > the newbies?) Yes, it's called the manual. > Is the file_put_contents() function not available in PHP 4.3.2? Seriously: www.php.net/file_put_contents ---John Holmes... -- PHP General Mailing List (http://www.php.n

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Jim Lucas
Depends, are you trying access the form from a different frame? Jim Lucas - Original Message - From: "Matt Palermo" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]>; "Matt Palermo" <[EMAIL PROTECTED]>; "php-general" <[EMAIL PROTECTED]> Sent: Friday, July 25, 2003 4:30 AM Subject: RE

Re: [PHP] PHP should know my data!

2003-07-25 Thread Cesar Cordovez
And he signs "IT Professional" and he wants to go back to COBOL! LOL Cesar John Manko wrote: I just wrote a web app, but I'm completely disgusted with PHP. The application works great, but PHP is not smart enough to know what data belongs in my database. Really, I have to enter the stuff in

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread Chris Shiflett
--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > Seem to remember something about starting a session and then > redirecting with header causing trouble. Yeah, I think you're right, and I think that was with IIS. This archive might be helpful: http://marc.theaimsgroup.com/?l=php-general&m=102

[PHP] mssql_execute problems...

2003-07-25 Thread T. Rader
Hey, System: RH9, Apache 1.3.27, PHP 4.3.2, FreeTDS 0.61 connecting to a Win2K Server, MSSQL Server 2K Problem: mssql_execute hangs when run. The script just never comes back. The code is as follows: $macn = mssql_connect("SERVER", "UID", "PWD"); mssql_select_db("DB"); $stmt = mssql_init("dbo.G

[PHP] Re: XML handlers in classes

2003-07-25 Thread Greg Beaver
Hi, Use xml_set_object, and away you go. Perhaps you would benefit from using PEAR's XML_Parser or XML_Transformer, or even PEAR's HTTP_Request class. http://php.net/xml_set_object http://pear.php.net/xml_parser http://pear.php.net/xml_transformer http://pear.php.net/http_request Regards, Greg

[PHP] file_put_contents()?

2003-07-25 Thread Jonas Thorell
Another stupid newbie question...(btw, is there a list more geared towards the newbies?) Is the file_put_contents() function not available in PHP 4.3.2? The reason I ask is that I get this error when I try to use it: Fatal error: Call to undefined function: file_put_contents() File_get_contents

[PHP] PHP Email use alternate SMTP

2003-07-25 Thread Tom Vogel
Hi, i'm trying to set up an email form on my website. When I originally ran the server from windows I could simply set SMTP = mailhost.ucalgary.ca and it would work. After moving the server to Mac OS X, I can't get it to work. I've read a bunch of FAQ's but they all seem to insist that I set up my

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread CPT John W. Holmes
From: "Lee Stewart" <[EMAIL PROTECTED]> > I'm moving an application that I'm in the trying to move to a new > platform. It was running fine on an older Linux platform with PHP > 4.0.3 and Apache 1.3.14. The new platform is also Linux, with PHP 4.2.2 > and Apache 1.2.26 -- with register_globals o

Re: [PHP] Rewrite and tags.

2003-07-25 Thread CPT John W. Holmes
> How can I easiest rewrite A and IMG tags? I'm fetching a page with > fsockopen() and I need to rewrite these tags before sending it on to a user. > > My own theory is that it's made with Regular Expressions. I just don't > know these myself. If you're writing one of those "anonymous" browsing pr

RE: [PHP] Debugging a Session Problem

2003-07-25 Thread Johnson, Kirk
> I'm moving an application that I'm in the trying to move to a new > platform. It was running fine on an older Linux platform with PHP > 4.0.3 and Apache 1.3.14. The new platform is also Linux, > with PHP 4.2.2 > and Apache 1.2.26 -- with register_globals on. (I just > upgraded it from >

[PHP] XML handlers in classes

2003-07-25 Thread Robert Fitzpatrick
I have a class that receives an XML response from a HTTP request and I am trying to parse the XML after receiving it. The problem I'm having is the error when trying to use xml set handlers, such as 'xml_set_element_handler'. It seems the class is having trouble seeing the handler functions. For in

[PHP] Rewrite and tags.

2003-07-25 Thread Simon Fredriksson
How can I easiest rewrite A and IMG tags? I'm fetching a page with fsockopen() and I need to rewrite these tags before sending it on to a user. My own theory is that it's made with Regular Expressions. I just don't know these myself. Thanks. //Laban -- PHP General Mailing List (http://www.php

[PHP] Debugging a Session Problem

2003-07-25 Thread Lee Stewart
I'm moving an application that I'm in the trying to move to a new platform. It was running fine on an older Linux platform with PHP 4.0.3 and Apache 1.3.14. The new platform is also Linux, with PHP 4.2.2 and Apache 1.2.26 -- with register_globals on. (I just upgraded it from 4.2.2.36 to 4.2

Re: [PHP] Detecting If A Variable Arrives At A Page From A Get Or A Post...

2003-07-25 Thread Burhan Khalid
On Thursday, July 24, 2003, 10:47:08 PM, anachronism wrote: amc> Quick question... amc> I was wondering if there is a way to detect if any given variable came in to amc> a page via post, or a get from a form. if ($_POST['varname']) { came from POST } if ($_GET['varname']) { came from GET } et

Re: [PHP] mysqldump

2003-07-25 Thread Pete James
Sorry to be a stickler... but _technically_ the backtick is shorthand for shell_exec(). exec and passthru are a little different. Mike Migurski wrote, On 2003/Jul/25 11:12 AM: Thanks for the replies guys but the main reason I'm doing this is because most times I don't have access to the servers,

RE: [PHP] Detecting If A Variable Arrives At A Page From A Get Or A Post...

2003-07-25 Thread Chris W. Parker
[EMAIL PROTECTED] on Thursday, July 24, 2003 12:47 PM said: > I was wondering if there is a way to detect if any given variable > came in to a page via post, or a get from a form. if(empty($_GET['var'])) { if(empty($_POST['var'])) echo "varia

[PHP] Detecting If A Variable Arrives At A Page From A Get Or A Post...

2003-07-25 Thread anachronism
Quick question... I was wondering if there is a way to detect if any given variable came in to a page via post, or a get from a form. Any help would be appreciated. Thanks, Dennis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How Do I Change A Number to Percentage

2003-07-25 Thread Marek Kilimajer
*=100 ? Joe Harman wrote: Hey, hope all are doing fine. can someone help me be showing me how to change the following numbers to represent percentages 0.92857142857143 0.071428571428571 1.0 Thanks Joe Harman http://www.HarmanMedia.com So we went to Atari and said, `Hey, we've got this a

RE: [PHP] How Do I Change A Number to Percentage

2003-07-25 Thread Van Andel, Robbert
Multiple the numbers by 100. Robbert van Andel -Original Message- From: Joe Harman [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 10:05 AM To: [EMAIL PROTECTED] Subject: [PHP] How Do I Change A Number to Percentage Hey, hope all are doing fine. can someone help me be showi

Re: [PHP] incrementing string value

2003-07-25 Thread Marek Kilimajer
JavaScript has arrays too. I'm sure you will find it easier to work with them.
var a=new Array();

a[]="";

Jeremy wrote: writing some client side javascript with some dynamic php, and I need to be able to print a dynam

RE: [PHP] Are left joins more efficient?

2003-07-25 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, August 25, 2003 9:59 AM said: > At the moment, all queries on the website follow the same format when > joining tables: > SELECT * FROM table1,table2 WHERE table1.id=table2.id; > > My question is, would this format be more efficient? > S

RE: [PHP] mysqldump

2003-07-25 Thread Mike Migurski
>Thanks for the replies guys but the main reason I'm doing this is >because most times I don't have access to the servers, or not enough >preveleges to install myadmin or any other tools. I wish we had our own >server but I'm trying for a solution where you can't upload any tools and >cannot access

Re: [PHP] Are left joins more efficient?

2003-07-25 Thread Pete James
THese are very different things, generally. The first join is an INNER join. It pulls all records that have the matching ids. The left join is an OUTER join. It pulls ALL records from table1, and any matching records from table2. This is useful if you want customer and address info, but w

[PHP] How Do I Change A Number to Percentage

2003-07-25 Thread Joe Harman
Hey, hope all are doing fine. can someone help me be showing me how to change the following numbers to represent percentages 0.92857142857143 0.071428571428571 1.0 Thanks Joe Harman http://www.HarmanMedia.com So we went to Atari and said, `Hey, we've got this amazing thing, even built wit

[PHP] Are left joins more efficient?

2003-07-25 Thread anachronism
Hello, I program for a website that gets massive loads of traffic. Optimisation has become an important issue lately. At the moment, all queries on the website follow the same format when joining tables: SELECT * FROM table1,table2 WHERE table1.id=table2.id; My question is, would this format be

Re: [PHP] incrementing string value

2003-07-25 Thread Curt Zirzow
* Thus wrote Jeremy ([EMAIL PROTECTED]): > let me make sure I understand... > > $var = 'a'; > $var++ > print($var); > > would print "b" to the screen? um.. ignore my post ealier.. yes it does print 'b' Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailin

Re: [PHP] incrementing string value

2003-07-25 Thread Curt Zirzow
* Thus wrote Jeremy ([EMAIL PROTECTED]): > writing some client side javascript with some dynamic php, and I need to be > able to print a dynamic number of variables to the javascript. > > I need to print: > var a=""; > var b=""; > ...etc. > > Is there a way to increment a php $var much like $var+

Re: [PHP] incrementing string value

2003-07-25 Thread Jeremy
let me make sure I understand... $var = 'a'; $var++ print($var); would print "b" to the screen? Jeremy "Carl Furst" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yep that should work as does $var-- > > > -Original Message- > From: Jeremy [mailto:[EMAIL PROTECTED] > Sent:

[PHP] default_charset: problem

2003-07-25 Thread Richard Gennaro
I've got a problem with settings of default_charset: I'd like to view correctly both special chars (àèìòù...) and htmlentitities (à è ...) I got my .htaccess file with the following line: php_value default_charset ISO-8859-1 In this way it displays correctly htmlentities but not special chars,

Re: [PHP] create pop account via fsockopen...

2003-07-25 Thread Marek Kilimajer
Brian McGarvie wrote: All, I'm having trouble creating an pop account usaign fsockopen(), here is whaty I have... is connects ok but does not seem to execite the GET. $fp = fsockopen ($host, 2082,$errno,$errstr); if (!$fp) { echo "$errstr ($errno)\n"; } else { $auth

RE: [PHP] mysqldump

2003-07-25 Thread Marios Adamantopoulos
Thanks for the replies guys but the main reason I'm doing this is because most times I don't have access to the servers, or not enough preveleges to install myadmin or any other tools. I wish we had our own server but I'm trying for a solution where you can't upload any tools and cannot access sys

Re: [PHP] Sending POST-data

2003-07-25 Thread John Hicks
Simon-- Why not follow the KISS approach? Generate the GET or POST directly from the client. No PHP or server-side processing needed. --John On Friday 25 July 2003 10:09 am, Simon Fredriksson wrote: > I'm making a search-engine script for my site that > redirects users to other search engines

RE: [PHP] incrementing string value

2003-07-25 Thread Carl Furst
Yep that should work as does $var-- -Original Message- From: Jeremy [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 12:28 PM To: [EMAIL PROTECTED] Subject: [PHP] incrementing string value writing some client side javascript with some dynamic php, and I need to be able to print a dy

Re: [PHP] create pop account via fsockopen...

2003-07-25 Thread Curt Zirzow
* Thus wrote Brian McGarvie ([EMAIL PROTECTED]): > All, > > I'm having trouble creating an pop account usaign fsockopen(), here is whaty > I have... is connects ok but does not seem to execite the GET. > >$fp = fsockopen ($host, 2082,$errno,$errstr); is this the right port? > if (!$fp)

[PHP] incrementing string value

2003-07-25 Thread Jeremy
writing some client side javascript with some dynamic php, and I need to be able to print a dynamic number of variables to the javascript. I need to print: var a=""; var b=""; ...etc. Is there a way to increment a php $var much like $var++ would work? Jeremy -- PHP General Mailing List (http

[PHP] create pop account via fsockopen...

2003-07-25 Thread Brian McGarvie
All, I'm having trouble creating an pop account usaign fsockopen(), here is whaty I have... is connects ok but does not seem to execite the GET. $fp = fsockopen ($host, 2082,$errno,$errstr); if (!$fp) { echo "$errstr ($errno)\n"; } else { $authstr = "$cpaneluser:$cpan

Re: [PHP] PHP should know my data!

2003-07-25 Thread Bobby Patel
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Unfortunately I don't think some people "got" the joke. Next thing you > know their going to complain that PHP should have told them the > punchline ;) > I guess I got burned on that. I honselty though I could save one

[PHP] Re: Search question ..

2003-07-25 Thread James Hatridge
Hi all... On Wednesday 23 July 2003 22:16, CPT John W. Holmes wrote: > From: "Curt Zirzow" <[EMAIL PROTECTED]> > > > preg_match('#\(.*)\#im', $text, $matches): > > Also, if there's ever a case where could have > > > My Title > > > i.e. things spread over multiple lines, then you'll need: > > pre

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
Okay, I got it to work. I just put the "id" parameter in the submit button tag and it works fine now. Thanks for all your help guys... >= Original Message From [EMAIL PROTECTED] = >Why do you have a submit button and a link to submit the form. Dont u >want them to use the submit button

RE: [PHP] mysqldump

2003-07-25 Thread David Smith
I agree with Curt, why reinvent the wheel. I mean even if you are like me and cannot access the command-line on your web server (which really really sucks) then there are still other tools that can do this very same thing. If you just want to click on a link and backup the db why not use the load d

Re: [PHP] Some SESSION Vars not Registering

2003-07-25 Thread Jeff Stillwall
John and Curt; Thank you both very much for your help (and persistence) in this matter. Ultimately, I used John's suggestion: creating $_SESSION['userArray'][vars]. It works. I get to keep my vars named what I want. In some ways, it's more elegant than what I was doing in that it compartmentaliz

[PHP] Re: Freeze Pane

2003-07-25 Thread Al
Inline frames http://www.cs.tut.fi/~jkorpela/html/iframe.html Jason Martyn wrote: This is probably under the category of javascript, however I would like ot know if it is possible to be done with php. Let's say I have a table that is 30 columns wide and so the entire table doesn't fit on the scr

[PHP] Re: Freeze Pane

2003-07-25 Thread Rob Adams
I recently had to do something similar, except with the first row, instead of the the first columns. The way I did it was by creating two different tables, and putting the second table inside a tag something like follows: Here is an example I found on MS website about how to use this: http://

Re: [PHP] mysqldump

2003-07-25 Thread Curt Zirzow
* Thus wrote Marios Adamantopoulos ([EMAIL PROTECTED]): > This is an attempt to create an backup script for my online databases. There > are few things to sort out and the coding is not the most effiecient out > there yet!!! > > I just wanted to check on what you guys think, am I going the right w

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-25 Thread Rob Adams
"Police Trainee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Warning: main(http://143.43.222.103/sga) > [function.main]: failed to create stream: Invalid > argument in > /hsphere/local/home/domain/mydomain.com/includesite.php > on line 2 > > Warning: main() [function.main]: Failed

  1   2   >