*Always* validate your data. If you validate your data and never trust
anything which comes from the client side of the connection, your
problem goes away. I mean, you wouldn't pass user data to exec()
or fopen() without some serious checking, would you? ;)
Sure, PHP could try to prevent
Scott,
I am seeking some thoughts on if this is the way I should tackle this
problem. I have two files, both of them tab delimited text files that I
need to combine and then output a new file.
My idea was to put both files in an array, calling the fields I need,
i.e. $field[0], $field[1]
Help!
I have attached the code with which I am having difficulty (I have also attached the
php configuration of my host provider).
What is happening is that I can call up a jpeg file from ./maps and see that it makes
it through to the next page, and I can then call the next jpeg file in the
Hi,
does anyone has an idea and example how to get the value of a js variable
into a
PHP variable, preferably working with sessionvariables or a hiddenform?
thank you!
Simon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi friends,
I would like to get or extract the IP address from the URL in to a
variable.
How can I do that?
Any help very appreciable.
Thanks in advance
-Balaji
**Disclaimer
Information contained
Hello, I'd like to send prints from a PHP program but I see there are Printer
Functions only for Windows (http://www.php.net/manual/en/ref.printer.php). I'm running
on Linux and would like to stay in that environment.
Any suggestions on automated printing under Linux?
Dennis
I remeber a while ago there was a question asking if you could make
standalone applications but written in PHP rather than VisualBasic or C etc
and somebody replied with a website which could help.
Could someone re-post the message please! I can't find it in the archives!
I think GTK might be
How to pass the current URL to this function?
parse_url (string url)
This function call is in calling file ...
say some http://10.145.2.68/auto/test.php
test.php contains the parse_url funcction. I want to pass the same URL to
this function.
Because IP address changes every time.
No Renze,
what I really want is in the calling php file itself I want to get the IP
address.
Say some test.php..I call this file like
http://10.145.2.23/test.php
I want to get 10.145.2.23 in test.php file itself.
I think parse_url will help me. But I don't know how to pass the current
Hi!
I need a free php/mysql host with no ads!
Thanks for your answer!
__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Okay, you're looking for somewhere to try out your PHP and MySQL skills,
correct?
I can host these for you on my server, I'm preparing to be a proper host for
these things, but not yet ready, therefore there may be some problems. Send
me an email back (make sure it doesn't go to the PHP mailing
Ok, I don't need a server, as I have plenty. But I just had to say that
we need more people like you in our world. You're a very nice guy, Liam.
Take it easy... :)
-Original Message-
From: Liam MacKenzie [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 4:19 AM
To: Balazs
Hi all,
Perhaps some one can help me.
If I send a cookie like
setcookie(+ACI-cookie+AF8-agtpasswd+ACI-,+ACQ-form+AF8-agent+AF8-pass, time()+-1200,
+ACI-/+ACI-)+ADs-
it does not work on the terminal which has a new version of windows 2000 and with IE6.
The browser does not store the cookie.
I´m using [EMAIL PROTECTED] since php-install seems dead :-)
Hi,
I am using:
* SunOS wcsw707 5.6 Generic_105181-26 sun4u sparc SUNW,Ultra-60
* php-4.1.1.tar.gz
* apache_1.3.23
I am trying to use DSO in apache. I have done:
./configure --prefix=/home/eraonel/apache_1.3.23
Hy,
I have install this weekend PHP 4.10 and
Microsoft SQL Server Developper on Windows XP professionnal. I use IIS for the
web server.
When I test the Web Site I have this
message:
FATAL_ERROR unientify command
mssql_connect();
Anyone know what does it means.
Thanks
--
PHP General
Hi
$HTTP_SERVER_VARS[SERVER_ADDR]
?
Girish
--
www.girishnath.co.uk
- Original Message -
From: Balaji Ankem [EMAIL PROTECTED]
To: * RzE: [EMAIL PROTECTED]
Cc: Php-General [EMAIL PROTECTED]
Sent: Monday, February 11, 2002 10:00 AM
Subject: [PHP] IP - URL
No Renze,
what I really want
Salut, olivier, ca va ???
bon, tiens, une adresse qui m'est arrivé ce matin :
http://interactif.lemonde.fr/article/0,5611,2861-7110-261386-0,FF.html
Dis, une idée pour les cours de Linux que tu donne aux AMI's : Fais leur donc
installer LFS (Linux From Scratch, http://linuxfromscratch.org )
Ay!
Me no speak no French!
- Original Message -
From: Nicolas Costes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 11, 2002 9:36 PM
Subject: [PHP] Libre
Salut, olivier, ca va ???
bon, tiens, une adresse qui m'est arrivé ce matin :
Ok guys,
I've been pondering over setting up a free PHP/SQL
hosting service for some time now, but never really
actually done it.
It looks like just the mention of it got some seriously
positive feedback, so I'm keen to actually do it
properly. But...
I need some help with security. With a
Hi there! Is there any mean to tell PHP to use ereg etc. greedy?
Thanx,
Kiko
-
It's not a bug, it's a feature.
[.nfq]
christoph starkmann
tel.: 0821 / 56 97 94 34
fax.: 0821 / 56 97 94 38
http://www.fh-augsburg.de/~kiko
ICQ: 100601600
-
--
PHP General Mailing List
You can add hidden field in form and before posting set it value to js
variable value that can be easily used by PHP script
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
Laserjetter said something on 11 Feb 2002, in php.general:
I remeber a while ago there was a question asking if you could make
standalone applications but written in PHP rather than VisualBasic or C
etc and somebody replied with a website which could help.
Could someone re-post the message
this should work
$contents = str_replace(?xml version=\1.0\?, , $contents);
btw. a welformed xml documented uses a space between 1.0 and ?
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 10, 2002 11:07 PM
To: 'Steven Jarvis'; [EMAIL
Someone please help me of how I could get the client IP using PHP, when i use
$remote_addr it gives me the server IP, Kindly help how I could get the IP of clients
who are connected to my server or website.
Regards
Kris
$remote_addr returns exactly client ip; but if user is behind proxy then
$remote_addr will return you proxy ip and you can do nothing with it
Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List
I am getting the following error after upgrading from PHP4.0.3 to PHP4.1.1
on Apache 1.3.9 and RedHat Linux 6.1. Complied as a dynamic module.
Cannot load /usr/modules/libphp4.so into server: /usr/modules/libphp4.so:
undefined symbol: ssl_onceonlyinit
Could anyone indicate why I may possibly be
This may be slightly off the topic, but I imagine there may be someone
interested here. I've just put together an SQL table from the data of a
little more than 8000 airports around the world. It has most of the stuff
you'd find useful, including the three-letter airport codes, two-letter
country
At 12:34 PM 2/11/2002 -0600, news.php.net wrote:
My post values have backslashes added to them (such as to protect a
double-quote).
All the magic_quote_* settings are turned off in php.ini.
Any ideas why this is happening?
As someone else has already mentioned, this setting could be coming from
At 06:34 PM 2/11/2002 +0200, val petruchek wrote:
Hello, list!
I'm looking for analog of Mysql password() func in MsSQL. My goal is not to
store certain field (i.e. user passwords) as a clear text.
I don't know the equivalent off the top of my head, but a coworker of mine
has used it before.
In that case, forget what I said ';)
But since you can't say this enough, here is it once more:
*** Always remember to keep those includes *out of* your document root;
This prevents accidental displaying of source code or
(which I heard on this list could even be worse) out-of-context
This is too much for a text file. You should definitely use MySQL for
this.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Georgie Casey [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] A
At 09:41 AM 2/11/2002 -0600, cyberskydive wrote:
$user = getenv('REMOTE_ADDR');
[...]
It works great on windows running apache php 4.0.1
but on solaris php 4.06 if I add a
print($first);
it returns the servers IP address, but everywhere else it returns the users
IP address.
On the Solaris
Hello, I am running only php with apache on a OSX 10.1.2 machine, in my
apache error log, I have some odd lines in there
statfs failed because: No such file or directory
Here is a summarization of where I am at now
First I did a grep -r 'statfs\ failed' /
To see if any files on the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Christian Blichmann) wrote:
Anybody got some code how to access the first part of
a URI (the string just before the @)? I don't want to use
HTTP-authentication and I'm using Win2k with IIS as CGI...
Example:
http:[EMAIL
Hi,
With mod_perl I can set a handler to handle any documents so it's
quite easy to dump a database where each select output is saved
to a file. I can have my handler take any file in the output directory
and create the html page on the fly (where the contents of the file
can be manipulated,
At 04:46 PM 2/11/2002 -0600, Peter J. Schoenster wrote:
How can I do this with PHP?
I want the urls to be like:
http:://www.mydomain.com/page.html
http:://www.mydomain.com/page2.html
http:://www.mydomain.com/page3.html
etc. One motive is to be sure that no search engines are
discouraged from
use str_replace() instead of ereg_replace() ...in the same way described
- Original Message -
From: brendan conroy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 11, 2002 9:15 PM
Subject: [PHP] Novice question - please help
Hi,
THANK YOU for reading this.I would
Hi,
I'm using the code in the manual to draw text on a png.
but Its not working - ImageString() works but not ImageTTFText()
I uploaded arial.ttf from windows to fonts/ folder
Any Ideas:
as a side note: PNG's - any real disadvantage to using them
instead of gifs - not withstanding the
we're using a Windows 2000 server here...
So after we install PHPTriad, what configurations do we need to make?
//mm fernandez
From: Rick Emery [EMAIL PROTECTED]
To: 'mm fernandez' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] configuring webhost
Date: Mon, 11 Feb 2002 08:38:28 -0600
Hi gang:
In my constant effort to improve my perl conversion project, I have a
question regarding file reading. I am taking two files and combining
them in an array and then writing out a new file. Is there a way to:
a)strip out the first line of the second file
b)test for conditions based on
http://www.e-gineer.com/instructions/index.phtml
Follow this man's instructions carefully
and you'll have your system set up in no time!
It's an extremely good tutorial.
Good luck,
- Liam
- Original Message -
From: mm fernandez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL
when you say it doesn't work, do you mean that you get an error message or
it just doesn't write the text to the image?
-Original Message-
From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] image generation issues
Adrian,
If you're using the code displayed, you need to use $im before you destroy
it.
If you want to deal with it as a .png then use:
ImagePNG($im,some_name.png,100);
and then pick up the file anytime using
img src=some_name.png
You can later remove it from the server using:
Hi everyone,
I know this is a relatively simple question, but what would be the most efficient way
of entering the contents of a large form (nearly 400 fields) into a MySQL database?
Every day the form must be able
Please provide an example script that I can use to refer to if you have time.
i get 'Could not read font in..'
i set permissions to 777 on both file and folder
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Adrian Murphy' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 2:36 AM
Subject: RE: [PHP] image generation issues
when
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says...
Hello, I am running only php with apache on a OSX 10.1.2 machine, in my
apache error log, I have some odd lines in there
statfs failed because: No such file or directory
Here is a summarization of where I am at now
First I
In article 00ce01c1b36b$46c0d640$02646464@ade,
[EMAIL PROTECTED] says...
Hi,
I'm using the code in the manual to draw text on a png.
but Its not working - ImageString() works but not ImageTTFText()
I uploaded arial.ttf from windows to fonts/ folder
Any Ideas:
as a side note: PNG's - any
unfortunately, the unix php version I've got access to doesn't have support
for TTFs :( but the Windows box does - I have to specify the full path to
the font - try that and see if that helps.
-Original Message-
From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12,
tried everything suggested and still get 'could not read font' oh well
thanx.
- Original Message -
From: hugh danaher [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 3:00 AM
Subject: Re: [PHP] image generation issues
Adrian,
If you're using the code
Hi,
I'm having some problems with form data disappearing and wondered if
anyone has experience with this.
On a secure server I'm using PHP to handle form data to collect personal
information. If data is missing or incorrect, the user is alerted to 'go
back'... but upon going back in history,
Thanx for all the help.I discovered the STUPID
little problem.my ftp software was set so it uploded .ttf
in ascii instead of binary.all works now.
thanks again
- Original Message -
From: Tom Rogers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 3:38 AM
Subject:
I have a text box on my page and a submit button. The text box value is whatever it
grabs from the database. If the user deletes what is in the text box and puts in his
own text, then hits submit, the script updates that field with whatever the user
inputs.
Problem is, after the user hits
Howdy Steven:
Steven Walker wrote:
If data is missing or incorrect, the user is alerted to 'go
back'... but upon going back in history, all the data that was in the
form is lost. This did not occur on my regular not-secure web server.
Page caching. You can alter that through the header()
Hi phpeople. Can anyone tell me why my php just stops working
periodically?
I have a win32/apache/php4.1/mysql set up. I can do things here for
about an hour or so and then all of a sudden I get nothing but html
remains. I need to take down apache and restart it for the php
parsing to
I'd be willing to bet that it's a M$ thing!
As it says in all the documentation, neither apache, mysql
nor php were designed for M$ systems.
Other than bag M$, I can't help you, sorry!
;-)
- Original Message -
From: Floyd Baker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday,
I will try to call with the other meythodds you suggested and see what
happens.
I may have not been really clear.
on windows everythings working fine
on solaris it logs the IP address as the users/visitors (on a nother page)
but when using the code I included in my first post to check for
On 11 Feb 2002, at 19:30, Michael Sims wrote:
I'm not sure I really know what you're asking, but if you are asking
if you can use PHP code within HTML files (with *.html extensions)
then the answer is yes. If you're running Apache, add the following
to your httpd.conf:
Please disregard if
Is there a way to set a variable or is there a function that takes the
information between the title tags and prints to the screen where you
command?
ei:
//head
//title
// ?php
// echo ?witakr home?
// ?
//
//LINK REL=stylesheet HREF=css/sCSS.css TYPE=text/css
///title
///head
where as i would
Nevermind everyone. I was just being an idiot and fetching from the database
BEFORE updating it. Well maybe this will at least help some people not make
the same stupid mistake.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 11, 2002 8:19 PM
I just saw something with my code there.. i have my link tag inside the
title tag.. i will have to fix that :)
--
Jason Whitaker
Jason Whitaker [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
: Is there a way to set a variable or is there a function that takes
Hello there,
I have a task to modify a quite problematic calendar that wasn't created
by me -- currently only weeks and months are shown (for that, all days
of the week/month are looped through). For every day, 7 queries are done
-- one for each table (there are different tables for weekly,
On Tue, 12 Feb 2002 14:25:17 +1000, you wrote:
I'd be willing to bet that it's a M$ thing!
As it says in all the documentation, neither apache, mysql
nor php were designed for M$ systems.
Other than bag M$, I can't help you, sorry!
;-)
I have better docs... Mine say cross platform. g
Can you be more specific? I am just guessing here but is this what you want:
? $title = home; ?
html
head
title
? echo $title; ?
/title
/head
body
? echo $title; ?
/body
/html
Perhaps, I am not getting what you are asking for.
On 11 Feb 2002 at 23:34, Jason Whitaker wrote:
I just saw
Jason,
If I understand your question, you want to display the contents of a
variable to screen? Try this:
html
head
title/title
/head
body
?
$test_variable = this is a test;
echo Here is what it says: $test_variable;
?
/body
/html
Also note that you do not need
Found this on the php.net, querying the PHP mailing list:
test.php
--
$blah=10;
include whatever.php;
whatever.php
-
echo The value of blah is: {$blah};
It just keeps the variable since it's global..
When ur using a function. It can be
Hi all,
If I have the following code,
?php
global $some_var
FORM action=next_page.php method=post
type=submit name=submit value=foobar
/FORM
?
When the user hits the submit button, the value in some_var disappears? Is
there a way of perserving the value in $some_var.
thanks
You could do it a number of ways.
1. Use a hidden input field in your form,. input type=hidden name=some_var
value=? echo $some_var; ?
2. Put $some_var in a session variable.
3. Pass the value of some_var in the url.
Each has it's advantages/disadvantages. Just remember that just because you
On Tuesday 12 February 2002 14:22, Tehn Yit Chin wrote:
Hi all,
If I have the following code,
?php
global $some_var
FORM action=next_page.php method=post
type=submit name=submit value=foobar
/FORM
?
When the user hits the submit button, the value in some_var disappears?
On Tuesday 12 February 2002 07:11, Matthew Darcy wrote:
spotted 1 error already missing the starting after the printf statment.
Any more ?
-Original Message-
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: 11 February 2002 23:09
To: Roy Cabaniss; php
Subject: RE: [PHP] a
My current project runs on Win2k, MsSQL 2k, and PHP 4.0.6
My problem is that i can not enable md5 extension because of
Unable to load dynamic library 'c:\windows\php\extensions/php_mcrypt.dll' -
The specified procedure could not be found. in Unknown on line 0
So,...
Valentin Petruchek (aki
70 matches
Mail list logo