[PHP] remove page referrer

2007-09-11 Thread Shahrzad
Hi all, I have 2 page ,when I go from first page to second page , I don't want the user can back to first page where it come from. is there any way to do this in php ? to remove or disactive $_SERVER[HTTP_REFERER] in php? Thanks

[PHP] mandriva and gd problem

2007-09-11 Thread marc serra
Hi all, I have php 5 and gd install on a mandriva and i'm working with it since a long time. Now i want to use functions like imagepstext that require gd with t1lib enable. I work with a mandriva server so i use urpmi to install php extensions and other programs. I've successfully installed

Re: [PHP] upd sockets

2007-09-11 Thread Jim Lucas
dwa wrote: Hey, i have got a problem and cannot find answer. I have got an process which sends real time data per udp. i can catch this packets and write to a site with php and sockets. CODE ?php define('LISTEN_IP','0.0.0.0'); define('LISTEN_PORT',52700);

Re: [PHP] Public Announcement

2007-09-11 Thread Stut
Sascha Braun - CEO @ Braun Networks wrote: hi stut, thank you for your advices. Ok, just so it's perfectly clear to you... I'm taking the piss. Still, since you provided apparently serious answers I'm going to continue to enjoy myself... - Screentexts are texts shown as link texts or

Re: [PHP] Public Announcement

2007-09-11 Thread Aleksandar Vojnovic
Hahaha oh wow. -Xander Stut wrote: Sascha Braun - CEO @ Braun Networks wrote: hi stut, thank you for your advices. Ok, just so it's perfectly clear to you... I'm taking the piss. Still, since you provided apparently serious answers I'm going to continue to enjoy myself... -

Re: [PHP] Public Announcement

2007-09-11 Thread Sudheer Satyanarayana
I'm still waiting for the URL where I can see the product in action. Aleksandar Vojnovic wrote: Hahaha oh wow. -Xander Stut wrote: Sascha Braun - CEO @ Braun Networks wrote: hi stut, thank you for your advices. Ok, just so it's perfectly clear to you... I'm taking the piss. Still,

Re: [PHP] remove page referrer

2007-09-11 Thread Aleksandar Vojnovic
You can not control this, but you might be able to control the page where the user is going back through the third page :) like this: page 1: submit to page 2 page 2: header('Location: /page 3'); page 3: the final page if the user clicks back he is going to end up on page 2 which has

Re: [PHP] Public Announcement

2007-09-11 Thread Sascha Braun - CEO @ Braun Networks
The pages are all delivered by one single kind of page parser. Its consisting of round about 5 lines of code. But for different reasons there have to get written parsers, especially for the content to show. The longest parser is consisting of 11 lines of code. But I don't want to say more,

Re: [PHP] remove page referrer

2007-09-11 Thread Stut
Shahrzad wrote: I have 2 page ,when I go from first page to second page , I don't want the user can back to first page where it come from. is there any way to do this in php ? to remove or disactive $_SERVER[HTTP_REFERER] in php? No, this is not something the server (where PHP lives) can

Re: [PHP] Public Announcement

2007-09-11 Thread Sascha Braun - CEO @ Braun Networks
If you take 30 seconds for the startpage to load, you can check out http://www.fit-o-matic.com again. The english translation is not finished yet. But for checking the behavior you can check out the german page as well. I gave allready demo user account informtations, it might be best for

Re: Fw: [PHP] remove page referrer

2007-09-11 Thread Daniel Bächtle
my problem is for the 'Back' button of Internet Explorer,.. You cannot disable the back buttom of any browser with php ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Public Announcement

2007-09-11 Thread Stut
Sascha Braun - CEO @ Braun Networks wrote: The pages are all delivered by one single kind of page parser. Its consisting of round about 5 lines of code. But for different reasons there have to get written parsers, especially for the content to show. The longest parser is consisting of 11 lines

Fw: [PHP] remove page referrer

2007-09-11 Thread Shahrzad
my problem is for the 'Back' button of Internet Explorer,.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remove page referrer

2007-09-11 Thread Stut
Please include the list when replying. Shahrzad wrote: Mercyyy Stut for your reply, No problem. For the reason of sessions I want no one can back to previous page,if somebody temptates to do that, either this error occur : HTTP/1.0 404 Not Found or that page reload again . Can I do

Re: [PHP] Public Announcement

2007-09-11 Thread Sascha Braun - CEO @ Braun Networks
Hi Stut, if you check out http://getvanilla.com/ this is a forum software which uses mod_rewrite to show everything in fine ass written urls, like my system does allready in a better way. As I know from the google indexing threads running over my websites, the robot indexes all pathes as long

Re: [PHP] Public Announcement

2007-09-11 Thread Sascha Braun - CEO @ Braun Networks
One of the main causes, why I don't make the application frame work or however you call it is, the lack of security. As soon as an application becomes open source, hackers and frauders can take time, to check out billing processes user management and many other things. Spectral is loading before

Re: [PHP] Fwd: 403 Forbiden

2007-09-11 Thread Daniel Brown
On 9/11/07, Jesús de Diego Alarcón [EMAIL PROTECTED] wrote: Daniel Wo... Yes. This solved the problem... Thank you; many , many thanks.. I'm really surprised with the very goog PHP people Jesús de Diego 2007/9/11, Daniel Brown [EMAIL PROTECTED]: On 9/10/07, Jesús de Diego

Re: [PHP] mandriva and gd problem

2007-09-11 Thread Daniel Brown
On 9/11/07, marc serra [EMAIL PROTECTED] wrote: Hi all, I have php 5 and gd install on a mandriva and i'm working with it since a long time. Now i want to use functions like imagepstext that require gd with t1lib enable. I work with a mandriva server so i use urpmi to install php extensions

Re: [PHP] Public Announcement

2007-09-11 Thread Stut
Tedd: Very sorry, should have listened to you! Sascha: http://de.wikipedia.org/wiki/Sarkasmus (here's hoping it doesn't get lost in translation) I'm done with this thread now. -Stut Sascha Braun - CEO @ Braun Networks wrote: Hi Stut, if you check out http://getvanilla.com/ this is a forum

Re: [PHP] remove page referrer

2007-09-11 Thread brian
Shahrzad wrote: Hi all, I have 2 page ,when I go from first page to second page , I don't want the user can back to first page where it come from. is there any way to do this in php ? to remove or disactive $_SERVER[HTTP_REFERER] in php? Shahrzad, i'm assuming that you want to do this to

Re: [PHP] remove page referrer

2007-09-11 Thread Daniel Brown
On 9/11/07, Stut [EMAIL PROTECTED] wrote: Please include the list when replying. Shahrzad wrote: Mercyyy Stut for your reply, No problem. For the reason of sessions I want no one can back to previous page,if somebody temptates to do that, either this error occur : HTTP/1.0 404

[PHP] look at all files, then go elsewhere

2007-09-11 Thread Wolf
All, I'm trying to figure out the logic piece, and I'm pretty sure I am missing something simple. I have a script that I want to check all files in a directory for information, if it doesn't find it when all done, I want it to go elsewhere, however if it does find it, I want it to break out

Re: [PHP] Public Announcement

2007-09-11 Thread tedd
At 11:24 AM +0200 9/11/07, Sascha Braun - CEO @ Braun Networks wrote: If you take 30 seconds for the startpage to load, you can check out http://www.fit-o-matic.com again. While the link takes forever to load and fails validation, I do like the use of registration trademarks (the R not the

RE: [PHP] look at all files, then go elsewhere

2007-09-11 Thread Jay Blanchard
[snip] I have a script that I want to check all files in a directory for information, if it doesn't find it when all done, I want it to go elsewhere, however if it does find it, I want it to break out of the search and perform a function. CODE: if ($userinfo == ) { if ($handle =

Re: [PHP] remove page referrer

2007-09-11 Thread tedd
At 10:04 AM +0430 9/12/07, Shahrzad wrote: Hi all, I have 2 page ,when I go from first page to second page , I don't want the user can back to first page where it come from. is there any way to do this in php ? to remove or disactive $_SERVER[HTTP_REFERER] in php? Thanks Didn't someone

[PHP] MySQL upload problem

2007-09-11 Thread tedd
Hi gang: I know that this is not a php question, but all of you are so smart I thought would ask anyway. I need to upload a 5 Meg sql file to a client's database. However, his site's phpMyAdmin shows a maximum file size limit of 2 Meg. Now, is this something that is controlled by his host,

Re: [PHP] look at all files, then go elsewhere

2007-09-11 Thread brian
Wolf wrote: All, I'm trying to figure out the logic piece, and I'm pretty sure I am missing something simple. I have a script that I want to check all files in a directory for information, if it doesn't find it when all done, I want it to go elsewhere, however if it does find it, I want it to

Re: [PHP] look at all files, then go elsewhere

2007-09-11 Thread Jim Lucas
Wolf wrote: All, I'm trying to figure out the logic piece, and I'm pretty sure I am missing something simple. I have a script that I want to check all files in a directory for information, if it doesn't find it when all done, I want it to go elsewhere, however if it does find it, I want it

RE: [PHP] Public Announcement

2007-09-11 Thread Jay Blanchard
[snip] At 11:24 AM +0200 9/11/07, Sascha Braun - CEO @ Braun Networks wrote: If you take 30 seconds for the startpage to load, you can check out http://www.fit-o-matic.com again. [/snip] That is awful. Not only does it take a long time for the start page to load (and there is nothing of any

[PHP] Re: mandriva and gd problem

2007-09-11 Thread Colin Guthrie
marc serra wrote: Hi all, I have php 5 and gd install on a mandriva and i'm working with it since a long time. Now i want to use functions like imagepstext that require gd with t1lib enable. I work with a mandriva server so i use urpmi to install php extensions and other programs. I've

[PHP] MIME type

2007-09-11 Thread Angelo Zanetti
Hi guys. I am linking to a file on a WAP site. the backend is written in PHP. However I need to link to a file but set the content type. I've done the following and am wondering if this is correct: ? // We'll be outputting a PDF header('Content-type: application/vnd.symbian.install');

Re: [PHP] MySQL upload problem

2007-09-11 Thread Stut
tedd wrote: I know that this is not a php question, but all of you are so smart I thought would ask anyway. I need to upload a 5 Meg sql file to a client's database. However, his site's phpMyAdmin shows a maximum file size limit of 2 Meg. Now, is this something that is controlled by his

[PHP] Using a variable for include statement

2007-09-11 Thread Jeff Benetti
Sorry if this is a noob question, I have used PERL, TCL and VB but I am just getting into PHP. If there is a better place to ask noobie questions then let me know. I want to use the include statement but I want to pass the name of the file rather than hard code it. It seems that PHP needs the

Re: [PHP] Using a variable for include statement

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 14:00 -0300, Jeff Benetti wrote: Sorry if this is a noob question, I have used PERL, TCL and VB but I am just getting into PHP. If there is a better place to ask noobie questions then let me know. I want to use the include statement but I want to pass the name of the

[PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
Hi Everyone :) I am attempting to add the ability to search a online database, and I thought that I have the code right, but apparently it's not... Here's the problem, when I type jason in the search box and hit go it brings me to edit.php?search=jason which displays nothing since

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Instruct ICC
From: Jason Pruim [EMAIL PROTECTED] Here is the relevant code (I think...) $search = $_GET[search]; $self = $_SERVER['PHP_SELF']; $qstring = SELECT * FROM current WHERE FName like '%$qstring%' or LName like '%$qstring%' or Add1 like '%$qstring%' or Add2 like '% $qstring%' or City like

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: From: Jason Pruim [EMAIL PROTECTED] Here is the relevant code (I think...) $search = $_GET[search]; $self = $_SERVER['PHP_SELF']; $qstring = SELECT * FROM current WHERE FName like '%$qstring%' or LName like '%$qstring%' or Add1 like

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] I fixed that but the problem still remains... When I preform the search I get redirected from index.php to edit.php and can't see where that would happen. [/snip] echo $qstring; $search is not NULL because $search is equal to $_GET[search]. $search may be empty though. -- PHP General

Re: [PHP] Public Announcement

2007-09-11 Thread Børge Holen
On Tuesday 11 September 2007 10:17, tedd wrote: At 11:24 AM +0200 9/11/07, Sascha Braun - CEO @ Braun Networks wrote: If you take 30 seconds for the startpage to load, you can check out http://www.fit-o-matic.com again. While the link takes forever and ever to load and fails validation,

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Stut
Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data before searching but the search is only available after logging into the system. No one who isn't

Re: [PHP] remove page referrer

2007-09-11 Thread Ludovic André
Hi, You can not control this, but you might be able to control the page where the user is going back through the third page :) like this: page 1: submit to page 2 page 2: header('Location: /page 3'); page 3: the final page if the user clicks back he is going to end up on page 2 which has

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:10 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data before searching but the search is only available after

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 1:58 PM, Jay Blanchard wrote: [snip] I fixed that but the problem still remains... When I preform the search I get redirected from index.php to edit.php and can't see where that would happen. [/snip] echo $qstring; $search is not NULL because $search is equal to

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] echo $qstring; produces: SELECT * FROM current WHERE FName like '%%' or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '% %' or State like '%%' or Zip like '%%' or XCode like '%%' Which is correct except for it being empty. I tried to echo $search, but since it

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:32 PM, Jay Blanchard wrote: [snip] echo $qstring; produces: SELECT * FROM current WHERE FName like '%%' or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '% %' or State like '%%' or Zip like '%%' or XCode like '%%' Which is correct except for it being

Re: [PHP] remove page referrer

2007-09-11 Thread Daniel Brown
On 9/11/07, NOSPAM plz bla wrote: I think you have to put the exit(); function in the code to prevent hacks. if($_SESSION['already_submitted'] == True) { header(Location: page2.php); *exit();* } Good call. I forgot to type that in there, but you're right. ;-) -- Daniel P.

Re: [PHP] Using a variable for include statement

2007-09-11 Thread mike
you can definately use variables for filenames. i do it all the time. it's not like XSLT or other languages where it has to be included at the start or you're screwed. On 9/11/07, Jeff Benetti [EMAIL PROTECTED] wrote: Sorry if this is a noob question, I have used PERL, TCL and VB but I am just

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread mike
On 9/11/07, Jason Pruim [EMAIL PROTECTED] wrote: echo $qstring; produces: SELECT * FROM current WHERE FName like '%%' or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '% %' or State like '%%' or Zip like '%%' or XCode like '%%' Which is correct except for it being empty.

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Stut
Jason Pruim wrote: On Sep 11, 2007, at 2:10 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data before searching but the search is only

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] The problem is there's not... At least there's not supposed to be. The end result that I want is for the search results to end up on the same page if possible... edit.php is a script I use for editing records. Maybe I should just do it on a separate page... It might be easier for

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:57 PM, Jay Blanchard wrote: There is no redirection to edit.php? You're calling PHP_SELF so it should not go anywhere else. Is there any mention of edit.php in the code? Correct. PHP_SELF refers to index.php which is the page that the search is happening on. a few

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:59 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 2:10 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Correct. PHP_SELF refers to index.php which is the page that the search is happening on. a few lines above that there is a reference to edit.php and here is the code for it: Sorry for the long cut/paste, but I thought it was important to try and provide it in context, and the line

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 3:37 PM, Jay Blanchard wrote: [snip] Correct. PHP_SELF refers to index.php which is the page that the search is happening on. a few lines above that there is a reference to edit.php and here is the code for it: Sorry for the long cut/paste, but I thought it was important

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:20 -0400, Jason Pruim wrote: echo div class=\nav\A Href=\excelexport.php\Export to Excel/ ABRA href=\logout.php\Logout/ABRa href=\add.shtml\Add Record/A; echo P class=\total\Total Records: $num_rows/P/div; While you're trying to clean up your security approach you

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Total length is 293 lines. It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I know it repeats it's self, but I couldn't figure out how to get it to log in and stay logged in right

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: Total length is 293 lines. It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I know it repeats it's self, but I couldn't figure out

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I took a look and now I can't get my eyes to stop bleeding. The horror, the horror!

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] tda href='edit.php?Record={$row['Record']}'Edit/a/td is the ONLY reference to edit.php in the entire code of that page. [/snip] No it isn't. edit.php shows up a couple of times, not the least of which is row 218; echo form method='GET' action='edit.php'; Do you know where the closing

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 3:58 PM, Robert Cummings wrote: On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I took a look and now I can't get

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] I took a look and now I can't get my eyes to stop bleeding. The horror, the horror! Mixed PHP/HTML is yucky :) [/snip] 8^{)} Undoubtedly things could be organized better. Jason did you just sit down and code or did you walk it through with paper and pencil (or notepad even)? -- PHP

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 3:59 PM, Jay Blanchard wrote: [snip] tda href='edit.php?Record={$row['Record']}'Edit/a/td is the ONLY reference to edit.php in the entire code of that page. [/snip] No it isn't. edit.php shows up a couple of times, not the least of which is row 218; echo form

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 4:02 PM, Jay Blanchard wrote: [snip] I took a look and now I can't get my eyes to stop bleeding. The horror, the horror! Mixed PHP/HTML is yucky :) [/snip] 8^{)} Undoubtedly things could be organized better. Jason did you just sit down and code or did you walk it

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Son of a Bitch... Soon as I closed that down at line 265 the search now isn't redirecting to edit.php Do you debug by hand? Or do you have something that helps you to do that? I've been tearing my hair out for hours trying to find that and I couldn't see it... [/snip] Debugged by

Re: [PHP] Public Announcement

2007-09-11 Thread Greg Donald
On Tue, 11 Sep 2007, Stut wrote: You didn't say what you have against mod_rewrite. I'll bet you mod_rewrite can parse a request and send it to the right script faster than your PHP implementation. Has anyone tried Nginx? The rewrite rules are a bit more clear than those of the Apache

Re: [PHP] Using a variable for include statement

2007-09-11 Thread Tom Ray [Lists]
Jeff Benetti wrote: Sorry if this is a noob question, I have used PERL, TCL and VB but I am just getting into PHP. If there is a better place to ask noobie questions then let me know. I want to use the include statement but I want to pass the name of the file rather than hard code it. It

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread brian
Jay Blanchard wrote: So Jason you learned three valuable lessons today. a. plan your code (use paper and pencil or something like it) b. always account for security c. comment properly I'll add two more: d: Check the source that your script outputs. Send it to the W3C validator

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread mike
On 9/11/07, brian [EMAIL PROTECTED] wrote: e: (my personal opinion) Using echo() to spit out HTML will lead to *much* heartache and gnashing of teeth. Put a closing PHP tag (?) in there and let the parser spit out the markup without echo(). i think this is quite opposite. i prefer echo'ing

Re: [PHP] Public Announcement

2007-09-11 Thread Tom Ray [Lists]
Greg Donald wrote: On Tue, 11 Sep 2007, Stut wrote: You didn't say what you have against mod_rewrite. I'll bet you mod_rewrite can parse a request and send it to the right script faster than your PHP implementation. Has anyone tried Nginx? The rewrite rules are a bit more clear than

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread tedd
At 4:01 PM -0400 9/11/07, Jason Pruim wrote: Son of a Bitch... Soon as I closed that down at line 265 the search now isn't redirecting to edit.php Do you debug by hand? Or do you have something that helps you to do that? I've been tearing my hair out for hours trying to find that and I

Re: [PHP] MySQL upload problem

2007-09-11 Thread tedd
At 4:46 PM +0100 9/11/07, Stut wrote: tedd wrote: I know that this is not a php question, but all of you are so smart I thought would ask anyway. I need to upload a 5 Meg sql file to a client's database. However, his site's phpMyAdmin shows a maximum file size limit of 2 Meg. Now, is this

Re: [PHP] MySQL upload problem

2007-09-11 Thread Chris
tedd wrote: At 4:46 PM +0100 9/11/07, Stut wrote: tedd wrote: I know that this is not a php question, but all of you are so smart I thought would ask anyway. I need to upload a 5 Meg sql file to a client's database. However, his site's phpMyAdmin shows a maximum file size limit of 2 Meg.

Re: [PHP] MySQL upload problem

2007-09-11 Thread brian
tedd wrote: I was thinking that I could ftp the sql file to the clients server and then run a php script on his server, something like: $sql = mysql -h$dbhost -u$dbuser -p$dbpass $dbname $filename; system($sql); But, that didn't work -- however -- using mysqldump did download the file. So,

Re: [PHP] MySQL upload problem

2007-09-11 Thread Chris
tedd wrote: At 4:46 PM +0100 9/11/07, Stut wrote: tedd wrote: I know that this is not a php question, but all of you are so smart I thought would ask anyway. I need to upload a 5 Meg sql file to a client's database. However, his site's phpMyAdmin shows a maximum file size limit of 2 Meg.

Re: [PHP] MySQL upload problem

2007-09-11 Thread brian
Chris wrote: tedd wrote: I was thinking that I could ftp the sql file to the clients server and then run a php script on his server, something like: $sql = mysql -h$dbhost -u$dbuser -p$dbpass $dbname $filename; system($sql); But, that didn't work -- however -- using mysqldump did

Re: [PHP] MySQL upload problem

2007-09-11 Thread brian
brian wrote: tedd wrote: I was thinking that I could ftp the sql file to the clients server and then run a php script on his server, something like: $sql = mysql -h$dbhost -u$dbuser -p$dbpass $dbname $filename; system($sql); But, that didn't work -- however -- using mysqldump did download