Greets,
The following code snippet receives data from a textbox named searchtext if
the user types in a word.
It then tries to match that word from the mysql database using:
$searchtext = $_POST['searchtext'];
if ($searchtext != '') { // Some search text was specified
$where .= " AND blurb LIKE
In the following snippet, which uploads binary files to a mySQL database it
works fine when Register Globals are set to ON.
.
mysql_connect("localhost","root","pass");
mysql_select_db("adatabase");
$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
$result=my
If you get a chance please run the following script _without_ entering a
name in the textbox.
Does the same page load after you hit submit or does a different page load?
Thank you.
TR
...
Sample Page
Please enter your name:
Your name:
This para
The following script is from Kevin Yank's book (Sitepoint).
When I test it _without_ entering a name in the text box and hit submit, the
_next_ page
loads - however the same page should load beacuse of the conditional
if (!isset($name) ):
.
If I replace
!isset()
with
empty()
li
test
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
test
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ript locally on Apache server without any
errors.
The site where I do not get warnnings has php 4.1.1 installed - wheras the
other site where I get php_hostcoonect() warnings is php 4.2.3
Any help will be greatly appreciated.
Thank you.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
From: "Mike Brum" <[EMAIL PROTECTED]>
> It's very possible that they're not letting you relay through them since
> you're not providing any authentication for that mail server but just
trying
> to send (as far as it can tell) "random mail from an unknown
sender"...[snipped]
Thanks
ervers and that is
why I am not receiving an e-mail when testing on Apache Server?
Thank you for any help.
Best...
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings all,
I'm looking for a tutorial or some assistance in explaning how store and
then open and read a binary file using php/mysql.
I've got a few tutorial about storing the binary data within a mysql table
from Kevin Yank, phpbuilder, etc. but I've heard that it's sometime better
to keep yo
Using mysql, php, apache on win98
The following code is from "PHP, mySQL and Apache" (SAMS) by Julie Meloni.
Page 338-339 (hour 16).
After choosing my selections in the form box and hitting submit I get:
...
Warning: Invalid argument supplied for foreach() in
c:\apache\htdocs\listin
Hi...
I'm trying to output a table with alternate background color rows.
The following snippet outputs a table after connecting to a mySQL database
with posts but all of the rows have the same bgcolor.
Any help with the syntax will be greatly appreciated.
Thank you.
Tony R
sers email address and $secret_variable to be concentated and
then passed to a md5 function call to be stored in the $confirmation_ID
variable. That isn't happening.
Any assistance will be greatly appreciated. Here's the code...
Thank you.
Tony Ritter
...
Is it possible that .gifs are currently _not_ supported in php 4.2+ at
php_gd2.dll - however .png files would be due to copyright expiration of
.gif patent at Unisys?
TR
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nished with the textbook - maybe you've got a
library in your town that you'll donate it to?
Kindest regards,
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ded."
The illustration shows the .jpg file _within_ the browser screen on the
upper left hand side.
When I follow those steps and hit file / open, my paint program takes over
and opens the uploaded .jpg file and the browser interface of MS IE 5.5 is
gone.
Any advice would be appreciated.
Thank yo
help.
Thank you.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
alled php_gd.dll on their server but I
get that error.
I have run php scripts on this site _without_ the gd libraries.
Could somebody please advise how they should be installing the .dll file so
I can utlize the gd_libraries with php?
Many thanks,
Tony R
Tony Ritter
The following is the php cropping script (with author credit):
http://obala.net/en
//
// Yes the proses could be executed with imagecopyresized build-in function
// but with this function you get the idea of how an image color s
Many thanks Warren.
TR
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How can I incorporate the text - "This is a square" - under the .jpg file?
The following php script outputs the reduced square but no copy.
Thank you.
Tony Ritter
..
--
PHP Windows Mailing List (http://www.php.net/)
To u
hanks,
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Christoph Grottolo wrote in message:
> The manual says that you have to check if creation from url works.
> Maybe you check first if your script works with a local jpg, then if
> you can include a remote url (include ("http://www.nytimes.com";);).
> To send the image you must use:
> header("Con
g the string of the URL into a variable like:
$theoldimage="http://www.blah.com/foo.jpg";;
and then calling this function of:
$thenewimage=imagecreatefromjpeg ($theoldimage);
but it did not return a value when I echo'ed
$thenewimage
Many
ction call
and GD showed up without the page hanging up.
In that version, there is no php_gd2.dll - just php_gd.dll.
Again...my sincerest thanks to all.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sven,
I've got five screenshots at this URL:
www.gonefishingguideservice.com/php1.htm
If you get a chance please take a look.
I got php_gd2.dll from the zipfile (see photo) and the "extensions"
sub-directory were not there when I installed.
I don't have any other extension working.
Many thanks
P.S.
If you get a moment, maybe you could send me a .txt file of your php.ini
file along with you php_gd2.dll setup.
That way I could check line for line.
Many thanks,
TR
---
[This E-mail scanned for viruses by gonefishingguideservice.com]
--
PHP Windows Mailing List (http://www.php.net/)
To
Sven,
I've checked my php.ini files on my drive and all I've got is one.
The php_gd2.dll file is in:
C:/PHP/extensions
There was no default folder called extensions when I installed PHP so I made
a directory called extensions under PHP.
Everytime I take out the semicolon in the .ini file, the p
I did.
The php.ini file is below:
Everytime I take out the semi-colon in the php.ini file, the page won't
load, the server hangs up and I have to shut down the Apache monitor
manually.
When I insert the semicolon back in to the .ini file , the page then loads -
but that doesn't help if I want to
Say I wanted to use:
php_gd.dll
after uncommenting the line in the php.ini file - where exactly would that
file - php_gd.dll - reside?
Many thanks.
TR
---
[This E-mail scanned for viruses by gonefishingguideservice.com]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit
them.
enable_dl = On
extension=php_gd2.dll
...
Any advice on how I can install GD libraries greatly appreciated.
Thank you.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Would that be:
php-4.3.1-Win32.zip
and
php-4.2.3-installer.exe
Please advise.
Thank you.
TR
---
[This E-mail scanned for viruses by gonefishingguideservice.com]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
p_gd.dll //semi-colon taken out
..
the page - or any page with a file extension.php will _not_load at all using
Apache.
However, when I _reinsert_ the semi-colon in the php.ini file, the .php page
then loads.
Any advice on how I can get the GD libaries to work will be greatly
appreciated.
At wit&
Rich,
On MS Win 98 / Apache / PHP 4
If somebody out there using Win can check my php.ini file and advise me what
I'm doing wrong.
I have uncommented:
..
extension=php_gd.dll
..
and have included:
..
extension_dir = C:\php4\extensions
...
In my php.ini file, this is what it looks like:
..
extension_dir = C:\php4\extensions\; directory in which the loadable
extensions (modules) reside
extension=php_gd.dll
...
Thank you,
TR
--
PHP Windows Mailing List (http://www.php.net/)
To
the best way to install php_gd.dll so that I can make use of the
image library.
Many thanks.
Tony Ritter
;;
; Dynamic Extensions ;
;;
; if you wish to have an extension loaded automaticly, use the
; following syntax: extension=modulename.extension
; for
My guiding season begins in April.
Anybody out there know where I can purchase a nice mysql dolphin t-shirt?
Thank you.
TR
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Working on:
Win 98 / mysql 3.23.55 / php 4
I installed mysql 3.23.55 and wanted to check the user table in the mysql
db.
The query was:
SELECT User FROM user WHERE host='localhost';
The output was:
xx
user |
xx
||
||
root
The file has been uploaded and resides on my ISP's IIS server.
TR
...
- Original Message -
From: "Sean Malloy" <[EMAIL PROTECTED]>
To: "Anthony Ritter" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sen
Using MS Win98 / php 4:
Any ideas on how I can change my permssion settings on a file called
data.txt so it can be read to and written to or do I have to take that up
with my ISP.
I get the following after I submit a form:
Warning: fopen("data.txt", "a+") - Permission denied
Joseph,
Thanks for the reply.
My ISP has a MS IIS server.
I am testing the following script on Apache Server / MS Win 98 / IE 5.5 and
it works fine.
When I publish the script to their server and try the formpage, I get:
"inetpub...Undefined index 1...
"inetpub...Undefinded index 2...
"inetpub..
p would be greatly appreciated.
Thank you.
Tony Ritter
.
// form.php
body {background-color:beige;
body
{
scrollbar-base-color: #FCF6DC;
scrollbar-face-color: #E3DBB5;
scrollbar-track-color: #FCF6DC;
scrollbar-arrow-color: #000;
Dl Neil wrote: in message:
> OK Anthony you've got it...(snipped)
>
> The wave is building under you, all you have to figure out now, is which
way
> to stand on the board!
> =dn
> (sorry, that's surfing not fishing, and salt water not fresh...)
..
Thanks again f
To all who assisted me today.
I finally managed to get the mail () funtion to work.
Thank you and happy holidays to you all...
TR
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
O.K. DL...
Thanks for the reply.
And your time. :-{}
Yes. I restarted Apache - it came up the same.
It would seem that Apache works along with php4 since I get the
enviromental variables, etc. page when
I go to:
http://localhost/phpinfo.php
which was saved as:
This is exactly what the lin
DL,
Sorry to be a pain... but using either:
the address of my outgoing mail server
or
localhost
still gives me:
Warning: Failed to Connect in c:\program files\apache
group\apache\htdocs\send_simpleform.php on line 19
Thanks again for your time.
TR
---
[This E-mail scanned for viruses by g
DL,
I have quoted her exactly from her book where it says:
Windows Users:
**Check your php.ini File**
She then writes what I previously posted.
That's it. She offers no alternatives.
Regards,
TR
---
[This E-mail scanned for viruses by gonefishingguideservice.com]
--
PHP Windows Mailing L
!1AQ"aq2B'¡ÑðáÿÚ
?óz_Yª_§L{M2Iý©Ô3¡q£!
etc. etc...
I would like to insert additional text copy with this map - is this
possible?
Thanking all in advance.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
510");
array_pop($content);
$current = array_pop($content);
print("");
print("USGSStationDateTimeHeight
CFSTemperature");
print($current);
print("");
?>
.
Any help would
I have a question about the PHP function file_exists():
This is taken from a textbook entitled "PHP Professional Projects" by
Wilfred, Gupta, Bhatnagar (Premier Press 2002 - ISBN1-931841-53-5) on page
261 under the chapter titled "Handling Files".
The authors write...
"Consider the following co
Is there any way to extract *specific* data off a page - like text within
one table (if there were four separate html tables on that page) - while
leaving the balance of the text and the other tables alone?
Thank you.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To
does the variable
$quote
represent in the script?
I cannot find what the variable -or array - $quote has been assigned to.
Please see:
echo $quote[1];
below
Thanking all in advance.
Tony Ritter
..
Stock Quote from NYSE
Stock Qu
out the steps one takes in going from the process of
having this reside on my harddrive - localhost - in development - to my
ISP's server when it goes live.
Thanking all in advance.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
d
and published to my ISP's server?
Is this possible?
Thanking all in advance.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Using the script below, I was able to connect to the database named
"contacts" for
output.
*However*, when I insert a [username] and [password] in place of the "" "",
I get:
"Couldn't connect to the database" - eventhough I am able to connect to
mysql.
How do I go about replacing the "" and "
please assist.
Many thanks.
Tony Ritter
The script follows...
.
Set Test Cookie
Cookie has been set
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
hp
>
> Sorry if I'm not understanding your question...
Thanks for the reply Michael. You've answered my question.
A happy and healthy new year to you and yours.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
variable to 2000 from 2500 because of
the ampersand symbol.
function tax(&$Salary)
Thanking all in advance,
Tony Ritter
Michael Sims <[EMAIL PROTECTED]> wrote in message:
> That particular snippet of code *should* echo 2
u *add* an ampersand to the
front variable that you are passing.
Any help would be appreciated.
Happy new year to all,
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list admi
need of publishing the file every time there
was an update.
Any advice or URL's would be greatly appreciated.
Thanking all in advance.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
mysqladmin | more
It works.
Thank you!
Tony Ritter
--
PHP Windows 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: [EMAIL PROTECTED]
t
and how do I save it to a folder - or how do I go about viewing it?
TIA,
Tony Ritter
--
PHP Windows 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: [EMAIL PROTECTED]
e commands that zip by before the monitor command line
appears. Or, how can I scroll up the page to read the literature -
appearing *above* the "Welcome to the mysq monitor..." line?
Thank you and happy holidays!
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To un
have listed the three scripts below.
If anybody can assist me that would be great. Please note that her username
and password in the mysql_connect function are taken from the book.
Many thanks,
Tony Ritter
...
// #1 script
Create a Da
Thanks Ross.
It works fine.
TR
--
PHP Windows 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: [EMAIL PROTECTED]
Got it to work using the code below.
I forgot the to put in the fclose ()function before the closing brace in my
first post.
Thank you D.
Creating a new file
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
elow would work.
Any advice would be greatly appreciated.
Tony Ritter
...
File Exists!";
}
else
{
$newfile=fopen($filename, "w+")or die("Couldn't create the file!");
}
?>
--
PHP Windows Mail
If anybody has a chance could they take a look a the following code:
Thanking all in advance.
Tony Ritter
(allinone_form.php) Works fine.
All-In-One Feedback Form
Your Name:
Your E-Mail Address:
Message:
$message
";
if (
nk but the value from the variable is
not printed.
Any help would be greatly appreciated.
The code is below.
Tony Ritter
...
file://TonyForm.html//
Name:
.
file://Tony1.php//
Link
...
file://Tony2.php//
Hello
f the code so that I
can understand and breakdown the steps in how a BB program works.
Any URL's will be helpful.
Thanking all in advance.
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
ecked the php.net doc...under mail() step 4:
$recipient .= "Mary <[EMAIL PROTECTED]>" . ", " ; file://note the comma
and that doesn't work.
I'm using MS Windows 98 w/ Apache
Anybody want to share their php script with two
in between quotes. Then ended it with a semicolon.
Any other suggestions?
If you have a script with two e-mail addresses which can be received by two
different people please post the complete script.
Many thanks,
Tony Ritter
...
- Original Message --
.
And after using *that* script neither of us receive an e-mail except that it
gets bounced back as:
[EMAIL PROTECTED]
So, it seems that somewhere the string in
$to
is getting fouled up.
Any ideas?
Many thanks for your time and help.
Kindest regards,
Tony Ritter
--
PHP Windows
:
...
- Original Message -
From: Daniel Parsons <[EMAIL PROTECTED]>
To: Anthony Ritter <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, November 18, 2001 8:55 PM
Subject: RE: [PHP-WIN] Adding a cc to a PHP mail script...
> If you want to add additional email
Is there any way to add an *additional* e-mail address - a cc - besides the
one that is already in the $to variable below using the following PHP
script?
Thanking all in advance.
Tony Ritter
..
\n";
$mailheaders.="Reply to: $sender_email\n\n&
Thank you Julie.
It works fine now.
Regards,
Tony Ritter
--
PHP Windows 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: [EMAIL PROTECTED]
ailed to connect in C:\Program Files\Apache
Group\Apache\htdocs\send_simpleform.php
in line 10.
I have made the corrections in my php.ini file in the [mail function]
to read as follows:
SMTP=localhost
[EMAIL PROTECTED]
Please advise if anyone knows what I am doing wrong.
Thanking all in adv
77 matches
Mail list logo