Hi
Here is a small php script to create sepia images from a jpeg, put it in
the same place as your images and call it sepiaphp
Uselike this:
img src=/images/sepiaphp/filenamejpg
?
$filename = ereg_replace(/,,$PATH_INFO);
if($filename != ):
$im
Greg Breland wrote:
I recently upgraded my site from PHP 406 to PHP 412 The following
bit of code quit working:
static $navigationLinks = array (
indexphp3 = News,
downloadphp3 = Download,
linksphp3 = Links,
archived_newsphp3 = News
php-general Digest 3 Mar 2002 09:24:55 - Issue 1204
Topics (messages 86918 through 86964):
Re: Where can I learn?
86918 by: Boaz Yahav
Re: BBEdit
86919 by: Boaz Yahav
Re: regex
86920 by: Boaz Yahav
Returning error code from a function
86921 by: Anas
On Sun, 3 Mar 2002, andy thomas wrote:
On Sat, 2 Mar 2002, Andrey Hristov wrote:
check you php.ini if you need to change sendmail -t -i to something other.
We are still having problems with this. Doing another mailshot, the script
crawled at 1 message every 75 seconds. After starting
Olev Rumm wrote:
Mime problem.
I have my web form here www.toolmecindustries.com/submform.php
Now my email recieves all the contens thruogh [EMAIL PROTECTED] (fields
what customer filles out)
but attachment (picture fail) is shown like encrypted
here:
I'm trying to create a single dynamic header for a wide range of web
pages which I'll just include as I need it There are a few things that
change per web page in the header, but I've settled all the issues
except a good way of how to modify a single image that changes based on
the web page
Hi - I'm a major newbie
- I have a file that pulls an include into a textarea for a user to edit
- before pulling the include, I'd like to open it and check it's value
- if the include's value is exactly equal to the string:
div style='color: #eee; font: bold 80px Georgia, serif'Hello
Hi Tim,
I'm a major newbie.
I was in the navy so never made it to major!?
I'm only going to comment on your syntax and ignore the
wide/Unix-related issues:
$noting = ;
$checkval = div style='color: #F00; font: bold 80px Georgia,
serif'Hello
World/div;
$filename = thefile.inc;
$fd =
Hi,
I'm contacting you because I'm encountering a bug in recent Apache
1323 and relevant mod_ssl version when compiled with PHP 412 This
might be connected directly to PHP (or to MySQL too), but maybe it is
I've compiled Apache, mod_ssl and PHP 412 two days ago, and since then
the error log is
is it possible to use levenshtein as part of a mysql select ?
i have been experimenting but seem to return no results
I would like to be able to select a row based on how near my search
text is to the contents
ie if the table is mysql_mail and it's fields are 'to' 'sender'
'subject' and 'body'
After your reply I did some more tests with the following conclusions.
1. I was wrong about perl. IE behaves the same with the perl equivalent
script,
but requires the user to cancel 2 times. After the second time, you cannot
try anymore.
2. The source of the problem seems to be Internet
And the answer came from Mircrosoft which describes this situation as a bug
in the article
Q266305 - BUG: Canceling Multiple File Downloads on Large File Causes
Internet Explorer to Stop Responding
John Chronakis
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit:
I'm using PHP on the command line Is there any way to exit, whilst setting
the exit status, without having it print out? For example, exit(2) will
print 2
Thanks in advance,
David Apthorpe
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
I am not running Javascript, just PHP/HTML...
THe particular script I am having problems with has several decision points
and includes which I think is confusing the placement of the cursor
Gaylen Fraley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED];
This is not a php question. It
yeah, but what you want to do can only be accomplished with JavaScript.
PHP is a serverside language and you need a clientside-lang like JS.
Thomas
Ralph Jarvis wrote:
I am not running Javascript, just PHP/HTML...
THe particular script I am having problems with has several decision points
Hi Rasmus and Others,
Thanks for your info I will look into those link you have provided.
How do you think yahoo is able to do it so beautifully. When i click web
cam in Yahoo Chat it opens a pop up window and says connecting to the server
and then it shows up web cam picture and it is
Hi Everybody,
In my somename.cgi file there are few hidden fields like this with the form tag:
form action=somename.php method=post
input type=text name=somename size=15br
input type=submit
input type=hidden name=order value=somevalue1
input type=hidden name=order
Well, unless you've disabled JavaScript in your browser, you are running it.
--
Gaylen
PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/
Ralph Jarvis [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED];
I am not running Javascript, just PHP/HTML...
THe particular
Hi Everybody,
In my somename.cgi file there are few hidden fields like this with the form tag:
form action=somename.php method=post
input type=text name=somename size=15br
input type=submit
input type=hidden name=order value=somevalue1
input type=hidden name=order
On Sun, 3 Mar 2002, jtjohnston wrote:
No one seems to be home at my favourite apache newsgroup :) so I'll ask
here
I'm trying to reconfigure my PHPMyAdmin
What do I add to my conf file so as in http://phpmyadminsomeherecom/
points
to a specific directory on my (windows) drive?
For example, how
On Sun, 3 Mar 2002, Jon Feldhammer wrote:
I'm trying to create a single dynamic header for a wide range of web
pages which I'll just include as I need it There are a few things that
change per web page in the header, but I've settled all the issues
except a good way of how to modify a single
Yes, well, PHP supports that a little bit differently
If you append '[]' to the name, an array will be returned after submit
with the values of the checked checkboxes
INPUT TYPE=TEXT NAME=test[] VALUE=1 CHECKED
INPUT TYPE=TEXT NAME=test[] VALUE=2
INPUT TYPE=TEXT NAME=test[] VALUE=3 CHECKED
hi
I have a host with ignore_user_abort turned off in php ini.
the man says
int ignore_user_abort ( [int setting])
so far i have tried 1 and true for the int setting but nothing changed, it still
aborted.
I want it so the script finishes even the browser conection is lost.
anyone know what
hm,
well i allready tried it, but it didnt work, so i chose to add it as a module.
...but the problem is, that i cannot make php. I allways get this error:
php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static
gd.c:92: conflicting types for `gdIOCtx'
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Steven Walker declared
Nick,
If I understand the problem correctly, the form reset button doesn't
work when the form is prefilled with POST data
To overcome this, I created reset button of type='submit' value='Reset'
When loading
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi everyone
I've been working on a program to help me (and others) knock out contact
forms quickly
I'm looking for some help translating a few error msg's and field titles
into different languages Currently I have English and Danish
If you're
Greg Donald wrote:
On Sun, 3 Mar 2002, Jon Feldhammer wrote:
I'm trying to create a single dynamic header for a wide range of web
pages which I'll just include as I need it There are a few things that
change per web page in the header, but I've settled all the issues
except a good way of
Which version of PHP? I just tested it and it works just fine for me.
How exactly do you know the script is not finishing? Try a test like
this:
?
ignore_user_abort(1);
$fp = fopen('/tmp/test','w');
for($i=0; $i30; $i++) {
echo Line $ibr\n;
flush();
Hai
I am very new to PHP develope Can any one please help
me to use session variables
I am able to register an variable
My probelm is how to get the values of that registered
variable in the successive pages?
Thanx
__
Do You Yahoo!?
Yahoo!
I have often looked at problems and immediately thought that PHP is not
capable of the solution, but then some discovery sheds light and
suddenly many new things are possible. This fell into that category for
me too :)
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Sun, 3 Mar 2002, Ramesh Nagendra Pillai wrote:
I am very new to PHP develope Can any one please help
me to use session variables
I am able to register an variable
My probelm is how to get the values of that registered
variable in the successive pages?
You probably need to pass the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Ramesh Nagendra Pillai declared
I am very new to PHP develope Can any one please help
me to use session variables
I am able to register an variable
My probelm is how to get the values of that registered
variable in the successive
To all who responded: Thank You!
I realized something after I posted the message- I did a little
research to clarify what I really need, and it boils down to this: I
need a php installation that supports the GIF and JPEG-related
functions (like ImageCreateFromGif), and it would also be nice
On Fri, 2002-03-01 at 20:03, michael kimsal wrote:
Diana Castillo wrote:
Is there any way tomake a page that cannot be printed??
GZIP the page and force the end user to use Netscape. ???
No, still wouldn't work. If the data ever gets displayed, then it
is present on the viewer's
On Sun, 2002-03-03 at 04:16, David Apthorpe wrote:
I'm using PHP on the command line. Is there any way to exit, whilst setting
the exit status, without having it print out? For example, exit(2) will
print 2.
Thanks in advance,
David Apthorpe
This will be in PHP 4.2.0.
--
Torben
Hi, PHP will do NOTHING with cursor position in your page, because it's
running on server. Perhaps what you've read is generating some Javascript
(which actually places the cursor) with PHP...
Hmmm, if you are not running Javascript, maybe an attribute TABINDEX, which
almost every html tag has,
This jaust what I wanted to say but while reading this I got to question:
Is it possible to count active sessions, if the one uses php's sessions
without writing any handler functions, just what php4 provides by default?
I have a site with logins, etc I was wondering if there's any way to
see
Hi
I'm looking for the fastest way to fetch multiple pages from php
Currently I'm trying the curl-lib and it works fine - I just don't
understand how to use curl that it stores multiple requests in multiple
files
I'll try to explain my problem more detailed:
Somewhere are the pages
$SQLString = INSERT INTO Movies (Title, Actors, Review, Reviewer, Short)
VALUES ('$Title','$Actors','$Review','$Reviewer','$Short');
As the manual says: Note: Unlike the two other syntaxes, variables will not
be expanded when they occur in single quoted strings. ... So maybe some your
fiels
Lars Torben Wilson wrote:
On Fri, 2002-03-01 at 20:03, michael kimsal wrote:
Diana Castillo wrote:
Is there any way tomake a page that cannot be printed??
GZIP the page and force the end user to use Netscape ???
No, still wouldn't work If the data ever gets displayed, then it
is
Hi
First, thanks for reading my postI tried to post this yesterday but it
disappeared - so if you've seen this before, please ignore it
I am needing to change the permissions on a folder that is owned by 'usr'
However, as I am trying to do this from a browser through php, I am browsing
as user
I'm getting loads of undefined variable errors with this script any1 know
why?
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
Hi there, i created 3 tables in mysql, which is college.students,
college.classes, and college,student_in_class. After that, I made a web
form (page) that lists all the current students, and lists all the
current classes (each with a radio button). As a user, you can click on
a student radio
php-general Digest 3 Mar 2002 21:33:10 - Issue 1205
Topics (messages 86965 through 87004):
Re: Bizarre mail() problem
86965 by: andy thomas
Re: Ok Gurus Shake your nudels !!!
86966 by: Jon Feldhammer
header generation problem
86967 by: Jon Feldhammer
86982
I just download the 6.1 beta of phpAdsNew off sourceforge and installed it
on my localhost. I set everything right but when I login to admin I get a
undefined variable, $zoneid error from config.inc
So I just added a global $zoneid; line and I half got into the admin page.
But I'm still getting
Georgie,
I'm getting loads of undefined variable errors with this script.
any1 know
why?
You're using a recent release of PHP aren't you? Check out
http://www.php.net/manual/en/security.registerglobals.php for an
explanation of changes in 4.1.n.
Regards,
=dn
--
PHP General Mailing List
If you -could- use Javascript, it looks something like this:
document.formName.textfieldName.focus()
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Sunday, March 3, 2002, at 12:55 PM, Markas wrote:
Hi, PHP will do NOTHING with cursor position in your page,
how do i escape the % character to appear in a sprintf
statement?
it doesn't mention that in the sprintf php manual
page
job
__
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sportsyahoocom
--
PHP General Mailing List
try %%
-Original Message-
From: Job Miller [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 10:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] % character in sprintf
how do i escape the % character to appear in a sprintf
statement?
it doesn't mention that in the sprintf php manual
Job Miller writes:
how do i escape the % character to appear in a sprintf
statement?
it doesn't mention that in the sprintf php manual
page.
job
Yeah it does--it's the first item in the list. :)
--
Torben Wilson [EMAIL PROTECTED]
http://www.thebuttlesschaps.com
Hi,
I need to have php called from sendmail. I have set up an address to be
aliased to |/usr/local/bin/proc-mail but I get an error saying service
unavailable. All permissions correct. See php code below. This is just a
test mechanism, right now, to send the email to a mysql database for a
Hi,
I need to have php called from sendmail. I have set up an address to be
aliased to |/usr/local/bin/proc-mail but I get an error saying service
unavailable. All permissions correct. See php code below. This is just a
test mechanism, right now, to send the email to a mysql database for a
no, registerglobals has nothing to do with it
Dl Neil [EMAIL PROTECTED] wrote in message
158e01c1c2fc$57b0db80$c200a8c0@jrbrown..">news:158e01c1c2fc$57b0db80$c200a8c0@jrbrown..;
Georgie,
I'm getting loads of undefined variable errors with this script.
any1 know
why?
You're using a
Search the archive on PostToHost, or see this link:
http://www.zend.com/zend/spotlight/mimocsumissions.php#Heading6
Kirk
-Original Message-
From: Quentin Bennett [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] HTTP Post to
Ignoring the issues of executing untrustworthy code can someone tell me why
this won't work and how I can achieve this?
Basically there is a remote php file on another web server that has a
function in it I want to execute this function in my own code
I'm guessing this probably won't work but
I don't think this will work, because if it is configured correctly, that
file will be parsed by PHP before(as) apache gets it, meaning the only part
apache gives you is the result of all the code executing in that page.
Exactly like a web browser, php sees ?php echo Hello, World!;? and then
Hello,
Is there a way to convert Bold text in word to Bold text in HTML using PHP?
Thank you,
Julian
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
curl_setopt($ch, CURLOPT_URL, http://foobarcom/page1html;);
curl_setopt($ch, CURLOPT_FILE, $fh1);
curl_exec($ch); //exec1
curl_setopt($ch, CURLOPT_URL, http://foobarcom/page2html;);
curl_setopt($ch, CURLOPT_FILE, $fh2);
curl_exec($ch); //exec2
curl_setopt($ch, CURLOPT_URL,
?php
if($a == 0 || $a == null) LogOn();
else if($a==1) CPMain();
function Authorize() {
$username = $HTTP_POST_VARS['username'];
$password = $HTTP_POST_VARS['password'];
echo T$username$password;
}
function CPMain() {
Authorize();
}
function LogOn() {
echo Please log on:;
echo form
echo T.$username.$password;
is PHP 2 and earlier proper syntax for PHP 3+ is
echo T+$username+$password;
or
echo T$username$password;
Doug
Php [EMAIL PROTECTED] wrote:
function Authorize() {
global $HTTP_POST_VARS;
$username = $HTTP_POST_VARS['username'];
$password = $HTTP_POST_VARS['password'];
echo T.$username.$password;
}
(insert the line above.)
jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I have a question or two regarding the IMAP, POP3 and NNTP functions
Is there *any* way to use imap_fetchstructure() using an actually message
string instead of an imap_stream and messgae number Basicly, I am storing
mail onto a MySQL DB I want to be able to parse out the attatchments and
data
?php
if($a == 0 || $a == null) LogOn();
else if($a==1) CPMain();
function Authorize() {
$username = $HTTP_POST_VARS['username'];
$password = $HTTP_POST_VARS['password'];
echo T$username$password;
}
function CPMain() {
Authorize();
}
function LogOn() {
echo Please log on:;
echo form
Hai
I am having two forms in one php page I want to submit
it to second page My query is
1) Is it possible to submit 2 forms using single
submit button
2) If so, how to get both form details in the secon
page?
Thanx
__
Do You Yahoo!?
Yahoo!
1) not unless you have them opening up a new window for each form
2) combine them into one form
Martin
-Original Message-
From: Ramesh Nagendra Pillai [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:27 PM
To: Php Mailing list
Subject: [PHP] Multiple Forms
Hai
I am having
On Sun, 2002-03-03 at 20:31, Martin Towell wrote:
1) not unless you have them opening up a new window for each form
2) combine them into one form
Also, this topic is covered quite often on this list Check the
list archives for the various solutions people have used
What var is the piped data placed in?
Php 41 executable rhlinux 2417
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
On Sun, 2002-03-03 at 19:32, Ken Tossell wrote:
What var is the piped data placed in?
Php 4.1 executable rhlinux 2.4.17
I'm gonna assume that you mean that you're doing something like this:
% cat somefile.txt | script.php
In which case, you'd need to fopen() the file 'php://stdin' and read
I can't believe I just sent this. For those who care it's the other way
around.
-Original Message-
From: Douglas Maclaine-cross
Sent: Monday, March 04, 2002 14:08
To: 'PHP'; [EMAIL PROTECTED]
Subject: RE: [PHP] Need help with a PHP script
echo T.$username.$password;
is PHP 2 and
instead of $HTTP_POST_VARS, try $_POST
-Original Message-
From: PHP [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Need help with a PHP script
?php
if($a == 0 || $a == null) LogOn();
else if($a==1) CPMain();
function Authorize() {
Is it possible to store the contents of a PHP file within a field in a MySQL
table?
When the contents are retrieved, can they be executed by the PHP parser as
if it were part of the actual PHP file?
ie: have the following stored in the DB;
-- snip --
?
echo This is a testbr\n;
?
-- snip --
store it as text
when you get it back, do an exec() on it
-Original Message-
From: David Redmond [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 3:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Storing Script information in MySQL
Is it possible to store the contents of a PHP file
What is the code to remove everything but numbers and letters from a string?
$output = str_replace(,,$output);
Regards,
Joseph A Bannon
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
$output = ereg_replace([^a-zA-Z0-9], , $output);
(not tested - but should work)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 4:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] remove everything
What is the code to remove everything but
I couldn't seem to get this working. Contents of the Text field in the DB
are;
-- snip --
?
for ($i = 0; $i 100; $i++) {
echo $i .br\n;
}
?
-- snip --
contents of the field are being stored in a variable, $strTest, running
below produces nothing;
-- snip --
?
exec($strTest);
?
-- snip --
Hello,
I have a web form that allows someone to fdisc there drive C:\ but how to I
make the PHP script to run that?
By the way, I'm not using this to make someone real mad, I'm just curious and I
will NOT put this script on the net, just on my local machine Thanks,
-GENESiS DESiGNS
-Sean
sorry - it's eval()
-Original Message-
From: David Redmond [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 4:09 PM
To: 'Martin Towell'; [EMAIL PROTECTED]
Subject: RE: [PHP] Storing Script information in MySQL
I couldn't seem to get this working. Contents of the Text field in
Hi
Here is a better script to create sepia images from a jpeg, put it in the
same place as your images and call it sepiaphp
Uselike this:
img src=/images/sepiaphp/filenamejpg
?
$filename = ereg_replace(/,,$PATH_INFO);
if($filename != ):
$start_red = 2;
Under PHP3 I was able to do the following within an .htaccess file:
php3_magic_quotes_runtime off
php3_magic_quotes_gpc on
How do I achieve the same thing under PHP4?
--
H | Life is the art of drawing without an eraser. - John Gardner
Hey All,
I want PHP to print out the value of a number in a variable as something
like 01
However whenever I try to I only get 1
Is there a way around this?
Phillip
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
Ive just found a rather weird bug that im experiencing Im running PHP 412
with Apache 1323 on Linux Redhat 7 When ever I try and use variable $id
it always has a value of 1 no matter what It only does it if its in a get,
think a post too I can hard code it in a script and itll have a correct
printf(%02i, $num); should work
-Original Message-
From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 4:39 PM
To: PHP Email List
Subject: [PHP] Displaying Number values
Hey All,
I want PHP to print out the value of a number in a variable as something
like
What is the code to make a string into lower case?
Regards,
Joseph A Bannon
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
strtolower()
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 4:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] convert to lowercase
What is the code to make a string into lower case?
Regards,
Joseph A. Bannon
--
PHP General
What is the code to make a string into lower case?
Could you please check the manual before you ask like this?
It's strToLower().
http://www.php.net/strtolower
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List
Hi,
I recently upgraded my development web server from PHP 406 to PHP 412 in
the wake of the security alert
Details:
SCO Openserver 506
Apache 1320 with SSL
PHP 412
Libxml 2416
Mysql 32348
PHP configure:
/configure \
--with-apache=/u/apps/apache_1320_wssl \
Hi,
You can achieve this by using the printf or sprintf statements.
?
$numberval = 1;
printf(My number = %02d, $numberval);
?
This will print 01
If numberval = 20 - it will only print 20.
The %02d is the key. %02 means - print 2 characters with leading zero's if
there aren't 2 characters.
I'm sorry boss, I didn't know it was added to the manual
Regards,
Joseph A Bannon
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
Another backtrace that gives a bit more information :
#gdb /usr/local/bin/php core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Hey,
I came across this interesting problem somebody was having. I couldnt find a
solution. Hope one of you can :
I have a mysql table which stores the IP Address of my site visitors. When I
try to sort these Ip address in the ascending or descending order the order
is completely out of order. I
Do a phpinfo() and check to see if you perhaps have a cookie with the
name id set with the value 1 If your look at variables_order in your
phpini file, you will see that cookie data will override get-method data
To force a read from the GET data, use $_GET['id'] instead of $id
-Rasmus
On Sun,
Hi. I want to run a php script without leaving the php that calls that
script.
Let's say I have a script called mypage.php which displays html. There is a
link to link.php, which makes some database maintenance and has no output. I
want to be able to run link.php from mypage.php, but don't want
92 matches
Mail list logo