That one doesn't work either.
Scott
""Scott Fletcher"" [EMAIL PROTECTED] wrote in message
9a2sdc$6t0$[EMAIL PROTECTED]">news:9a2sdc$6t0$[EMAIL PROTECTED]...
When I use this script
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s")
Hello,
I have been searching for a "printer friendly script"... does anyone know
of a good one to use? I have tried the one from V. Satheesh Babu and it
works some times and it is slow on my machine (my server is fast for
everything else).
Any suggestions will help or if there is a tutorial out
you may find that your expiry of four hours may be less then the time difference
between your server and your client. are the tims on the two boxes set different ? on
another note, I wouldnt bother with cookies, sessions are easier and simpler. you can
use sessions in php3 with phplib. on yet
"McShen" [EMAIL PROTECTED] wrote:
how do i duplicate a table?
i tried
create table refer2 select * from refer;
create table refer2 as select * from refer;
they didn't work.
my mysql version is mysql 3.22.28,
This has nothing to do with PHP - you should post to the MySQL list instead.
im to lazy to figure out the mysql commands, just copy the files.
cp sometable.MYI sometable2.MYI
cp sometable.MYD sometable.MYD
cp sometable.frm sometable.frm
mysqladmin flush-tables
easier.
--
Chris Lee
[EMAIL PROTECTED]
""McShen"" [EMAIL PROTECTED] wrote in message
You're not alone in this problem. I have the same problem some of the time.
I don't know why is that, so someone wrote the script to provide a way
around it. If it is for the login, it can be done by terminating hte
session_register and all stale session then create a new one once the person
While trying to print A-Z...
This spews A-Z, then AA-YZ, then stops, most likely from a timeout.
?php
for ($x = 'A'; $x = 'Z'; $x++)
{
echo "$x\n";
}
?
This works as expected.
?php
for ($y = 0, $x = 'A'; $x = 'Z', $y 26; $y++, $x++)
{
echo "$x\n";
}
?
Most likely the first
While trying to print A-Z...
This spews A-Z, then AA-YZ, then stops, most likely from a timeout.
?php
for ($x = 'A'; $x = 'Z'; $x++)
{
echo "$x\n";
}
?
This very issue was raised earlier today. Check out the thread:
"Why does it work this way".
Chris
I don't like appearing rude, but I think you need to reevaluate your
request some. What you're asking for is not a 'code snippet' - it's
an application. A fairly customized application, I'd think too.
Write down exactly the features and functionality you'd want.
Search around the web for
I apologize and I understand where you are coming from. My point was that
www.ileaguemanager.com was a service you paid for hosted by them coded by
them. I do not mind paying for code, I've done it before and I will do it
again. But I don't want to buy a service.
At 04:12 PM 4/2/2001 -0400,
Hi,
Somebody knows any PHP secure routine to insert a new FreeBSB user, via WEB?
Thank you,
Carlos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Folks,
I'm looking for a function that will convert all HTML special characters
(ie, everything converted by htmlspecialchars()) but leave HTML alone.
Consider the following example:
Perhaps their greatest release is "Times amp; Changes," which sold over
3,000,000 copies, according to A
Hey all,
I am an applications programmer for a mid-sized ASP. Recently, I have
been given the task to take our existing e-commerce application written
in ASP, and re-write it in PHP. We did a risk analysis study of the pros
and cons of using PHP for this application, and everyone agrees that PHP
Is there anybody here that would like to help me how to install php with
pgsql support ???
I've tried for last five days
Hmmm, it keeps you busy.. checkout www.devshed.com they've got a nice
tutorial on this.
Bye,
B.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
If you are wanting to use pregenerated FLASH scripts ( and not build them on
the fly with libswf or ming) then what you want to do, without having to buy
Generator for your server is...
In the beginning of you falsh file, do a load variables from a PHP page,
that queries a database or whatever,
The thing that will make PHP look the best right now is to get the
application running in it as soon as possible. If it's quickest to move
the variables to $variables and leave all the business logic how it was
under ASP, then that will help your PHP case the most. Once the code is
simply
-Original Message-
From: Diego Fulgueira [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 11:37 AM
To: Php-General
Subject: [PHP] phpInfo() displays Local and Master
configuration values.
Does anyone knows why phpInfo() displays a Local and a Master
value for every
OK, here's my problem
I wrote a simple upload script:
?
print_r($HTTP_POST_FILES);
?
FORM ENCTYPE="multipart/form-data" ACTION="" METHOD=POST
INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="10"
File: INPUT TYPE=file name=filename size=30
INPUT TYPE="submit" VALUE="submit"
/FORM
Josh,
Thanks, but still no luck.. Same problems
Yev
--- Josh [EMAIL PROTECTED] wrote:
Change upload_max_filesize in php.ini to 2048000 (which is 2 megs).
PHP
does not understand 2M.
Josh
-Original Message-
From: Yev [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001
Looking into Database Abstraction, and I was recommended to Metabase. I
have looked over it, and found that I like it. However, I was looking to
gain further insight as to other people using Metabase, and their
experiences with it, good, bad, problems, no problems, etc.
Thank you
Jason Lotito
Can PHP change the size of an image (gif or jpg)?
J
Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
Hello,
I don't relly get this... can sonmeone try and explain.
I have a mysql database and phtml form.
I can insert information intodatabase from the form, no problem.
UNTIL
I have a few items I want to insert multiples of ie DATE, DESCRIPTION
My table is...
photoid
photono
photodesc
photodate
The imlib2 extension does a very nice job of this.
On Mon, 2 Apr 2001, Joseph Bannon wrote:
Can PHP change the size of an image (gif or jpg)?
J
Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Don't know. Code looks good, what version of PHP are you using? Module or
cgi? What version of windows? These are the things the PHP/Zend guys
probably need to know.
On 4/2/01 4:59 PM, "Richard Kurth" [EMAIL PROTECTED] wrote:
What is causing this error
Warning: 1 is not a valid
Just a suggestion, but it seems like it would be helpful if there were
a --make-cgi or some other flag that I could use so that when I compile
PHP4, it generates me both the Apache module and also the stand alone cgi.
I use both frequently, PHP4 for the web interface things, and then also the
Hi,
I am just learning PHP (I was a ASP developer but I switched over) and I need a
host that is free and lets me use PHP4 and MySQL? Does anyone know of such a host? If
you do please tell me!
Thanks,
-Frank
Why does one variable gets registered and the other don't (the order
doesn't alter anything.. I've tried)...
snip
$script_total_time=(float)$total_time;
session_register("script_total_time");
$step_times_array[$step]=$total_time;
$step_times=serialize($step_times_array);
//echo
Why does system() - or any of its cousins, I've tried them all: exec(),
passthru(), backtick operator, etc - doesn't output anything when running
on a Win2k/IIS5 machine?
I ran the exact same script on a WinME/Apache, and the output was perfect
. Christian
Now i get a error window saying: "Document contained no data"
That usually means PHP crashed.
Check your web-server error logs.
Also, try adding some debug output before each statement to pinpoint the
crash line.
--code-
$noaa =
Check out http://php.net/fopen and PHP's FTP support.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: [EMAIL PROTECTED]
I think you want strip_tags($fp, "!");
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: "David Balatero" [EMAIL PROTECTED]
Wild Guess:
Your OS has a limited number of files that can be opened at any one time.
Perhaps during heavy activity, you are hitting that limit.
I believe "root" can set something somewhere to increase this limit.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like
Those quotes in the php.ini file matter.
sendmail_path = "/usr/sbin/sendmail -t -i"
Without the quotes, everything after the space is ignored.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
See manual reference on fopen() and fsockopen()
Fopen() can take http://... Or ftp://... As filenames. Therefore, you can do
an ftp login and upload and download files from a remote server, or use
http:// and read files from a server.
On 4/2/01 4:27 PM, "Richard Lynch" [EMAIL PROTECTED] wrote:
It seems PHP used to allow "+" for string concatenation according to php.ini
warn_plus_overloading = off ; my php.ini entry
If you turn on this warring, you may see warning for that.
I guess PHP is doing this
$str = "a";
$str++;
as
$str = "a";
$str = $str + $str; // $str now stores "aa"
cox Mon Apr 2 17:23:46 2001 EDT
Modified files:
/php4/pear/DB odbc.php sybase.php
Log:
odbc.php
- spaces idents
- new temporary fetchInto()
- removed extra checks in connect()
Note:
in fetchRow this line looks very strange (isn't 3
Daevid,
You shouldn't need iodbc.h, just odbc.h - until I can compare what is each
SDK distribution, just create a symbolic link of iodbc.h pointing to odbc.h
udbcext.h is in our iODBC SDK - you should have that. Here is the linux
glibc2.1.1 version:
Okay, don't ask me how, but for whatever reason, this "partially worked":
"./configure --with-openlink=/usr/local/openlink/odbcsdk --with-mysql=/usr/l
ocal --with-apache=../apache"
however, now I get a different error:
In file included from internal_functions.c:38:
Ok,
Here is the code I am using to insert values from a form into a mysql
database...
(Given to me by Lindsay Adams,, thank you!)
This is just a phantom form and database, there are several things you
could look at
right off the bat and ask "Why is this fool doing this"
Don't bother I already
I am using the newest ver of PHP and newest ver of apache on win98
just installed new php and apache yesterday set php up as a module
Don't know. Code looks good, what version of PHP are you using? Module or
cgi? What version of windows? These are the things the PHP/Zend guys
probably need
I think many users are confusing about PHP4 session.
I thought this info might be useful for someone.
There are 3 ways to start PHP4 session. (as far as I know)
1) Using php.ini: "session.auto_start = 1" to automatically start session for
any request.
2) Using session_start(): Explicitly start
hello,
does anyone know if set_nonblock() works, what paramaters it takes and
what it returns?
there is only one mention of it in the manual under accept_connect, and
I can not seem to set the socket to non block??
also has anybody successfully written a way to time out a read with the
new
Hello Guys,
I have a (very simple?) SQL question. I'm more then sure the answer to it is
whether "just do this..." or "It's impossible man, how could you even get
that into your mind..."
I have this database design: (it's more complex of course, but you get an
idea)
Table
"Maxim Maletsky" [EMAIL PROTECTED] wrote:
As you can see, the main data is in 'accounts', the 'addresses.ID' is
UNIQUE
and corresponds to 'accounts.ID'. The fact is that not every account has
an
address registered with it.
snip
FROM
accounts,
addresses
You're doing a straight join. You
This is best done with a LEFT JOIN. Please read up the manual about it.
- Original Message -
From: "Maxim Maletsky" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "'PHP General List. (E-mail)'"
[EMAIL PROTECTED]
Sent: Tuesday, April 03, 2001 9:41
Subject: SQL : multiple SELECT and missing
I've tried this with both PHP4.0.4 and PHP4.0.4pl1 as a module (it's for a
daily script eventually).
[root=pts/1]7:29pm@content:{/www/html/private/TattooShop}
./odbc-test2.phtml
#!/bin/php -q
Segmentation fault
the relevant part of phpinfo(); is below, so I'm assuming that I finally got
odbc
Hi Experts,
It seems to me that, the topic is not attractive or challenging that makes
nobody come to problem. But I really hope those experts or experiance ppl
can give me ur hands. Please Help!
I'm planning to build a template but failed to do so
Here is the code:
?
include
In a message dated 03/04/2001 03:52:47 GMT Daylight Time,
[EMAIL PROTECTED] writes:
include "class.FastTemplate.php";
Just for a start, I didn`t notice anything else in the code...
include ("class.FastTemplate.php");
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
"E K L" [EMAIL PROTECTED] wrote:
$tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl");
According to the error, the path above is incorrect. Looking at it, my
guess is that the path might really be:
"/usr/local/apache/htdocs/toplevel.tpl"
--
Steve Werby
President, Befriend
I ran into this problem last week. I finally punted. My configuration
is: RH7, Apache 1.3.19, MySQL 3.23.36, mod_auth_mysql 2.20. The strange
thing is that I did not have any problems with RH6.0, Apache1.3.12, MySQL
3.22.x, and mod_auth_mysql 2.20.
If you run into a fix, please copy me as
my solution was actually kinda simple if you think about it...
make a symbolic link. It sure would have been nice if Zeev would just
release a new .tarball liek v2.21 that fixes this little annoyance. It
seemed that no matter how often I changed the makefile in mod_auth_apache,
it still reverted
$fp2=fopen ("userdata","r")or die("unable to open file ($userdata)");
$fp2 is getting a value 1 or 0
if ($fp2=fopen ("userdata","r") ) {
lock file
write some stuff
}
else {
echo ("file would not open");
}
wk
""Richard Kurth"" [EMAIL PROTECTED] wrote in message
[EMAIL
""WK"" [EMAIL PROTECTED] wrote in message
9abfvp$v4$[EMAIL PROTECTED]">news:9abfvp$v4$[EMAIL PROTECTED]...
$fp2=fopen ("userdata","r")or die("unable to open file ($userdata)");
$fp2 is getting a value 1 or 0
if ($fp2=fopen ("userdata","r") ) {
lock file
write some stuff
unlock file
jon Mon Apr 2 20:12:49 2001 EDT
Modified files:
/php4/pear PEAR.php.in
Log:
Cleaner (and probably safer) condition handling.
Index: php4/pear/PEAR.php.in
diff -u php4/pear/PEAR.php.in:1.17 php4/pear/PEAR.php.in:1.18
--- php4/pear/PEAR.php.in:1.17 Thu
jon Mon Apr 2 20:27:46 2001 EDT
Modified files:
/php4/pear/DB pgsql.php
Log:
Make the 'protocol' DSN element optional.
Index: php4/pear/DB/pgsql.php
diff -u php4/pear/DB/pgsql.php:1.34 php4/pear/DB/pgsql.php:1.35
--- php4/pear/DB/pgsql.php:1.34
Ok so i've got a nice little game site and some folks want to start hosting their
websites on my machine. I let a few here and a couple there and now my machine has
more folks on it doing more things than I've got a handle on. Yes I did a bad thing.
Most of them are there because of the PHP
jon Mon Apr 2 20:33:58 2001 EDT
Modified files:
/php4/pear/DB pgsql.php
Log:
Style and whitespace.
Index: php4/pear/DB/pgsql.php
diff -u php4/pear/DB/pgsql.php:1.35 php4/pear/DB/pgsql.php:1.36
--- php4/pear/DB/pgsql.php:1.35 Mon Apr 2 20:27:46
can anyone help me in making a webpage (php) that shows the results of a
MySQL database search?
the search must be made using a form...
thank you very much
Joao Monteiro
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Okay, with all that code, I can answer your question.
The problem here is that you only have on form field with a date. Therefore
it should not be an array.
You also have only one photono, so it too should not be an array.
When the loop iterates to create the query, there is only a value for
Not test your code with GIF yet (I not have GIF support).
In your book they have a result picture of this code ?
I try this by change imagegif($image) to imagepng($image)
and return blank image with specify width.
--
-Tuna-
""Thalis A. Kalfigopoulos"" [EMAIL PROTECTED] wrote in message
[EMAIL
G'Day,
You need to have an auto_incrementing field in your database. Then all lines
that are displayed need to be in the form of fieldname[] so that PHP builds
an array.
Then you need a hidden field to represent the unique record number to be
updated.
Here is some code that I use to print out
Daevid,
connection script snipped (looked fine)
$dsn="DSN=OpenLink"; // this is a valid DSN set up in the above odbc.ini
//$conn_id = odbc_connect("DSN=OpenLink;UID=daevid;PWD=secret","","");
?
--
[OpenLink]
Driver = /usr/local/openlink/lib/oplodbc.so.1
Richard Lynch writes:
function do_each($passed_array) {
global ${$tmp_var_name};
Move this:
if (substr($passed_array[0],-5) == "_post") {
$tmp_var_name = substr($passed_array[0],0,-5);
${$tmp_var_name} = $passed_array[1];
down here.
Hey you guys!
I'm a new girl at this, and wondering on a question that might be simple for
you.
Yesturday I started to learn PHP and proud I showed it to a friend of mine,
what I had learned.
The first thing he did was check the safity of it and very easy he found the
list over all the users of
Not much to go on here. Basically don't do whatever it was you did. And
yes, understanding the environment you are working in, both the OS and PHP
and whatever 3rd party stuff you hook PHP up to is the first step to
making stuff secure.
-Rasmus
On Tue, 3 Apr 2001, Marthe Kristiansen wrote:
Hey Marthe,
Do you know what he did? The problem may not have been a "PHP" problem
as much as a design or security issue...if you could include some code,
or tell us what he actually did, we might be able to explain a) why its
a problem or b) why its not a PHP issue...
best regards,
jack
Marthe
Well, since I'm a newbie and also Norwegian it ain't that easy to explain
very simple.
What he did was that he entered a file that showed all the users of the
server, as I said, and he told me this was kindof insecure.
To prevent it he showed me a code that would help a bit.
So you wrote a script that took a filename as an argument somehow and did
something with it? That's always going to be insecure unless you do a lot
of error checking on it.
-Rasmus
On Tue, 3 Apr 2001, Marthe Kristiansen wrote:
Well, since I'm a newbie and also Norwegian it ain't that easy to
Of course, you can always disable certain functions, etc, that you deem to
insecure. PHP is as secure as you make it.
~Nuff said
Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL
Is there an easy way to do this when I'm so new at this that I don't quite
understand what I'm doing wrong and how to prevent all those mistakes in the
beginning?
/Marthe
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 7:54 AM
To: Marthe
If you could post the actual thing that he did, the actual script, that
would be helpful.
Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.
-Original Message-
From: Marthe Kristiansen [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001
@ 1:54:08 AM on 4/3/2001, Rasmus Lerdorf wrote:
RL So you wrote a script that took a filename as an argument somehow and did
RL something with it? That's always going to be insecure unless you do a lot
RL of error checking on it.
...
RL On Tue, 3 Apr 2001, Marthe Kristiansen wrote:
...
101 - 172 of 172 matches
Mail list logo