IRIran.net'Remove page referrer' was my first question from PHP.net mailing
lists,
that's great :) , php have a good support ,
I think all php lovers gather here :) ,
I love this place ,
Thanks to all
Look up readfile();
Make sure you read the comments.
On 9/11/07, Angelo Zanetti <[EMAIL PROTECTED]> wrote:
> 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 wonderin
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 downlo
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 downl
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.
N
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. S
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.
N
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 s
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 coul
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
t
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'
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 (WebDevelop
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 seems
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 mod_re
[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
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 throug
On Sep 11, 2007, at 3:59 PM, Jay Blanchard wrote:
[snip]
Edit 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 "";
Do you know where the closing form tag is for this? Line
[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 Genera
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 m
[snip]
> Edit 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 "";
Do you know where the closing form tag is for this? Line 288. If you
look at your source with the search form i
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! M
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 fig
[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 with
On Tue, 2007-09-11 at 15:20 -0400, Jason Pruim wrote:
>
> echo "Export to Excel A>LogoutAdd
> Record";
> echo "Total Records: $num_rows";
While you're trying to clean up your security approach you might also
spend a little time cleaning up your HTML. Your lack of a consistent
discipline for tag
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 to
[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 whe
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 b
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 l
[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 disp
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 avai
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 empt
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
On 9/11/07, NOSPAM plz 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
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 emp
[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 redire
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 $_GET["sea
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 logging
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
loc
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 logge
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 valid
[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 Genera
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 '%$q
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 '%$
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
edit.p
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 t
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 fi
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 host
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:
header('Content-Disposition: attachment;
filename="../File/norEnglish.sis"');
?>
So bas
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.
[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 impor
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 t
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 b
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,
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
[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 = opendir('./bp_c
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 TM)
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 of
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 :
>
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 p
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
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 ex
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, Je
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
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 th
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 d
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
o
> 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
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
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 checkin
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) ca
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, otherw
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
location
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, si
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...
- Screent
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 desc
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
if ( $socket =
@stream_socket_server('udp://'.LISTEN_IP.':'.LISTEN_PORT, $errno,
$errst
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
77 matches
Mail list logo