[PHP] Reading Text file by line

2003-02-24 Thread Anthony
I need to read a text file by line, if I open the file and use fgets() then it doesn't pick up the EOL corretly. So I was planning on reading the whole file in with fread() and then breaking it up by EOL characters. My question is, how do I do it? What character do I search for in the string? A

[PHP] OT? Dynamic Page Setup in IE please help

2003-03-14 Thread Anthony
s what causes the page title and page number to print on the top of printed web pages, and the URL to print in the footer. Thanks for any help you could give, or if you could point me to a better place to discuss this I'd appreciate it. Thanks :) - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Quick ? ... how come this doesn't work?

2003-07-02 Thread Anthony
-date("w") to -1 or anything else that stays within the current month, it works. What do you think? Is there a better way to do this? - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php my sql question

2003-07-03 Thread Anthony
) and PHP on your local machine, that way you can test your scripts without uploading them to the webserver. - Anthony "Jerome A. Jackson/Ac/Vcu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a web site that has my sql installed. The web server is 1

[PHP] Re: Calculating Largest Member of Array

2003-07-03 Thread Anthony
[3] => 53.27 [4] => 87.34 ) [Feb-99] => Array ( [0] => 5754.72 [1] => 3964.93 [2] => 6145.98 [3] => 693.32 [4] => 23.80 ) ) That would make it much easier. I thin

[PHP] Re: dynamic form display??

2003-07-03 Thread Anthony
rver side language. I've seen things like this done in JavaScript before and seen really cool ones that are IE, vbs only. Look in that dirrection. - Anthony "Micah Montoy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On the form that I am creating I allow

[PHP] Re: PHP + Linux: Configuration?

2003-07-03 Thread Anthony
Not 100% sure, but isn't $HTTP_POST_VARS depricated?... to lazy to look in the manual right now. You should use $_POST instead. I have no idea if that's causing your problem though :-P - Anthony "Luiz Morte" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

Re: [PHP] Get Rid of this Crook

2003-07-03 Thread Anthony
pathetic isn't it :-/ - Anthony "Doug Essinger-Hileman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 3 Jul 2003 at 9:06, Adam Voigt wrote: > > > Well spamming doesn't get them any money. I believe > > I read they use this info

[PHP] Re: web based mail client

2003-07-03 Thread Anthony
cts/netmail/ Don't know how customiseable it is or if you could use PHP to extend it, but its worth a look. - Anthony "Pete Morganic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > There's loads of email clients here > > http://www.hotscripts.com/

[PHP] Re: Please Help !

2003-07-08 Thread Anthony
27;])) where $_POST['date'] is whatever variable you used. - Anthony "Sean O'Reilly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I know this is really basic but i have a form for users to enter the > date of an event that i w

[PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
dress bar. Can I do this by sending certain headers? (I have both domains pointing to the same server) ... should/could I do something like this through PHP or is there something I can set in Apache to do the same thing? Simply confused, - Anthony -- PHP General Mailing List (http://www.php.

[PHP] Re: Strange Problem

2003-07-14 Thread Anthony
page1.php file. So you'd expect to get a 404 error. but IIS gives you the CGI error instead. Kinda sucks, I just use Apache now anyway, so I never spent the time to figure out why. - Anthony "Haseeb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
te and weberver. It's simply that one is the old address, and I want users to see teh new address, even if they type in the old one. - Anthony "Ryan Gibson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Headers have nothing to do with the tag, th

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
issing something. If I can do this through Apache. it would probably be much simpler. - Anthony Apache 2.0.45 by the way :) "Taylor York" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Cant you edit the httpd.conf? > I know there might be plenty of reason

[PHP] Re: Recovering from a time out

2003-07-18 Thread Anthony
basic HTML page on timeout. That would be pretty cool though, anyone know? - Anthony "Gerard Samuel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it possible to *gracefully* recover from php timing out? > For example, uploading a large file, and php tim

[PHP] Best PHP CMS

2003-08-05 Thread Anthony
mySQL backend. Some of the features that I'd like are an easy template implementation, blog features, media gallery and something that's easy to build custom modules to add features. So far I'm looking at about 6 CMS systems, I like certain things in each of them. so what&#x

[PHP] Re: Repopulating forms

2003-08-10 Thread Anthony
Opp... forgot this use htmlspecialchars( ) to fix it. It will convert your " to " for you. So you code should look like this: "; echo ''; ?> and it will work :) - Anthony Gerard L Petersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Re: Repopulating forms

2003-08-14 Thread Anthony
becasue your $test string contains double quotes. This is casuing you to end the value element in the input tag. - Anthony "Gerard L Petersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > My code looks like this. > > $test = "gerard

[PHP] PDF Thumbnail with PHP?

2003-08-14 Thread Anthony
Does anyone know if there is a way to generate a thumbnail of the 1st page of a PDF document using PHP. I have an application that archives PDF files, beeing able to generate small preview images of the documents would be really cool :) - Anthony -- PHP General Mailing List (http

Re: [PHP] PDF Thumbnail with PHP?

2003-08-14 Thread Anthony
Unfortunatly, that's not what I'm trying to do. That function will add an image to a PDF file as a thumbnail. What I want to do, is read a PDF file, and generate a thumbnail in the form of a gif or jpg and have it display in the browser. Thanks for the thought though. - Anth

[PHP] Need help with HTML2Pdf

2003-03-21 Thread Anthony
I need a lot of help trying to get HTML 2pdf to work. If anyone here has done it before, please drop me a line and help me out. I have some questions about capability and I simply can't seem to get it working. Thanks. - Anthony -- PHP General Mailing List (http://www.php.net

[PHP] Re: Session Data

2003-03-21 Thread Anthony
site and loose the cookie with the session ID. HTH :) - Anthony "Tony Bibbs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm wrapping up an MVC implementation for PHP. Everything is working > splendidly except that redirects seem to be loosing session da

[PHP] Quick Sessions ?

2003-04-04 Thread Anthony
er to ../index.html <- in this file there is php that check to see if the session data is there and. no longer there!!! So what gives? Can I not pass session info from pages in folders? I'm not changing the domain, so I shouldn't loose the cookie I'm lost Please he

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Anthony
yes, it parses PHP in html files. The php code works. I just loose the session data when going from files in different folders. - Anthony "Mark Douglas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Let's ask the dumb questions first: > > Is your

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Anthony
session.cookie_path = /, ../ but that doesn't work. Any other ideas? - Anthony "Jennifer Goodie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Your cookie path is "" not "/" so your cookie is only readble by the > directory it was s

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Anthony
nope, same host I actually call the file by sending this : header("Location: ../index.htm"); and I loose the session. - Anthony "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 22:18 04.04.2003, Anthony said

[PHP] easy conversion to a date?

2003-05-30 Thread Anthony
do this work already right? Thanks for your help - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] easy conversion to a date?

2003-05-30 Thread Anthony
exactly what I'm looking for. Thanks! - Anthony "Jordan S. Jones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anthony, > > I believe that what you are looking for is the following: > http://www.php.net/strtotime > > Jordan > > Ant

[PHP] Error reporting at runtime

2003-06-25 Thread Anthony
out it. So what gives? What am I doing wrong? Basicaly I want the same effect as if I had error_reporting = E_ALL set in php.ini. - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error reporting at runtime

2003-06-25 Thread Anthony
Thanks. That did the trick. According to a post from Mike Ford, it was ini_set( 'display_errors', 1 ); that was messing me up. I have display_error turrned off in php.ini too, so even though my reporting was on, nothing was sent to the browser. Thanks for the help guys :) - Anthony

Re: [PHP] Javascript and forms in PHP

2003-06-25 Thread Anthony
is all off you javascript making it to the browser? check the source. You probably forgot to escape a quote somplace. PHP really has noting to do with javascript. - Anthony "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I understand perf

Re: [PHP] php.ini

2003-06-25 Thread Anthony
x27;ll fine a _path_ to where PHP is > expecting to find php.ini listed on the phpinfo() page. If a path to an > actual php.ini file is listed, then that's the one it's using. > > ---John Holmes... > This is a good tip. Having more than one php.ini file can mess you up whe

[PHP] Re: quotes

2003-06-25 Thread Anthony
tough to tell... but it looks like you have the " and ' mixed up before the > in the end :-P - Anthony "Lso ." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ok i see why i didnt work but i dont know why. > > can anyone tell me why th

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread Anthony
what webserver are you using? If it's IIS, then use the installer... If it's Apache, teh installer doesn;t work, you have to do it manualy. - Anthony "Mark McCulligh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am building a Windows 2000/PHP p

[PHP] Where'd my session go??

2003-12-17 Thread Anthony
o the application. I checked session.cookie_lifetime and it's set to 0. The client side is IE 5.5 or 6. What could be causing the session to be lost? Thanks for your help :) - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Where'd my session go??

2003-12-19 Thread Anthony
That was it! ... Thanks a lot bro. - Anthony "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's the garbage collector - session.gc_maxlifetime setting. The setting > is server wide, unless you use your own session storage f

[PHP] Hi all & Help :D

2002-05-30 Thread Anthony
Hi all, this is my first post on the php news groups, and im sure it wont be my last so I will first introduce my self, because im sure there are some regualar posters ;) My name is Anthony.. Im 14 years old and live in england, anything else you want to know ask :) Im working on a FTP uploader

Re: [PHP] Hi all & Help :D

2002-06-01 Thread Anthony
tion", switch > them to say "mylocation" then "remotelocation". Just > a thought. > > Adam Voigt > [EMAIL PROTECTED] > > On Thu, 2002-05-30 at 22:26, Anthony wrote: > > Hi all, this is my first post on the php news groups, and im sure it wont be &

[PHP] what does -1.#IND mean?

2001-10-31 Thread Anthony
ever sure if I'm overloading the floating point or what? Please help me out here, I have a huge project that is totally done except for this bug and its driving me NUTZ!!! Thanks in advance for any help. - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Text Editor with Highlighting

2001-11-01 Thread Anthony
For Windows, hands down Homesite is the best Td - Sales International Holland B.V. wrote: > Hey there, > > I looked on the site for this but couldn't find anything about it. I'd like a > list of your favorite text editors (preferable for Linux/XFree) with > highlighting. I'm using beaver now,

[PHP] Error with Netscape 6.2

2001-11-14 Thread Anthony
on this? The app works perfectly under IE, but not Netscape. - Anthony -- 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: [EMAIL PROTECTED]

[PHP] sessions

2001-12-11 Thread Anthony
I'm confused as hell and can't find a working example anywhere. Help! - Anthony -- 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: [EMAIL PROTECTED]

Re: [PHP] sessions

2001-12-11 Thread Anthony
> You need to have > > session_start(); > > at the top of each page that needs to use the session vars, also check that > session.use_trans_sid is set to 1 in your ini file > hope this helps! > > -Original Message- > From: Anthony [mailto:[EMAIL PROTECTED]] > Se

Re: [PHP] sessions

2001-12-11 Thread Anthony
Thank you very much, I got it to work. What I didn't understand was that when registering the session var I was not registering the var's value, only the pointer. This makes all kinds of sence now. Thanks! - Anthony Steffan Packer wrote: > You need to have > > sessi

[PHP] Running Programs.....

2001-09-25 Thread Anthony
actually opens a program that the user can use. Thanks Anthony -- 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: [EMAIL PROTECTED]

[PHP] Re: Calendar math .... how to count in week days....?

2004-05-14 Thread Anthony
The PEAR functions didn't seem to do what I was looking for. I built this function based on an idea given to me by Daryl Meese. After much trial and error, it actualy does what I need. My function is bassed on hours but you can easily change that. It will add or subtract days. - An

[PHP] Calendar math .... how to count in week days....?

2004-05-06 Thread Anthony
e is a better way to do it? Anyone have a really efficient function to do this, I need to figure out a LOT of dates in this app. - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: odbc functions - not binary safe?

2004-01-27 Thread Anthony
ut, but works for me. :) - Anthony "C C" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm trying to insert binary data into a MS SQL Server > database. Text files are added fine, but binary files > with null bytes are not. The field I'm ad

[PHP] limit run time of a function?

2004-02-11 Thread Anthony
. The user gets all confused and then I get help desk calls. There has got to be another way. Any ideas? - Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] eregi_replace() function in a script

2002-12-01 Thread Anthony Ritter
Hi, The following appliaction for the following html form and php script was taken from Larry Ullman's book on PHP on page 130 - 131. What it does is this: 1. the user is presented with a form with a few textboxes and a textarea box. 2. the user fills in the boxes with a URL and a descripttion o

Re: [PHP] eregi_replace() function in a script

2002-12-01 Thread Anthony Ritter
John W. Holmes: > Yes, that's correct. That piece of the pattern matches anything that's > not a space, one or more times. > > > I tried the script by putting a space before the URL and the PHP still > > processes the data with no error. > > A space before everything is fine, as the pattern will m

Re: [PHP] eregi_replace() function in a script

2002-12-01 Thread Anthony Ritter
> Well, whether it causes an error not depends on your code. That's just > the pattern you showed. It may not match anything, so nothing gets > replaced with eregi_replace() and hence no "active link" is created, but > it may not necessarily cause an error. > > Can you show me some of the code in c

Re: [PHP] eregi_replace() function in a script

2002-12-01 Thread Anthony Ritter
Holmes: >That's just the pattern you showed. It may not match anything, so nothing gets > replaced with eregi_replace() and hence no "active link" is created, but > it may not necessarily cause an error. . Right. The pattern does not match anything in the input string of $Arra

[PHP] mail function() with MS

2002-12-06 Thread Anthony Ritter
Hi, I'm using MS Win 98 and my ISP has PHP installed on a MS server. I'd like to display a HTML form box on my site for users to type in a message utilizing the PHP mail() function. I've tested this using Apache on my drive with a html form and a php script to receive the data and it works fine -

Re: [PHP] mail function() with MS

2002-12-06 Thread Anthony Ritter
- Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Anthony Ritter" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, December 06, 2002 8:47 AM Subject: Re: [PHP] mail function() with MS > Hi Anthony...{snipped] .

[PHP] mail() problems...

2002-12-06 Thread Anthony Ritter
I'm using MS Win98 and Apache and getting the following after submitting the mail form: .. Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 14 The html and php scripts follow along with my php.ini settings. Any help would b

Re: [PHP] mail() problems...

2002-12-06 Thread Anthony Ritter
uot;failed to connect". Please advise. I'm using MS OE5. Thank you. TR .. - Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Anthony Ritter" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

Re: [PHP] mail() problems...

2002-12-06 Thread Anthony Ritter
Gentlemen, Thank you for your assistance. The PHP mail scripts were taken from Julie Meloni's book on PHP called "Fast and East" on pp. 116-117. (PrimaTech). In fact, she writes: "If you're using PHP4 on Windows, look for the following lines in your php.ini file: [mail function] SMTP =; for

Re: [PHP] mail() problems...

2002-12-06 Thread Anthony Ritter
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 14 Thanks again for your time. TR -- PHP General Mailing List (http://www.

Re: [PHP] mail() problems...

2002-12-06 Thread Anthony Ritter
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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() problems...

2002-12-07 Thread Anthony Ritter
Jason Wong wrote: > Would you mind disclosing what you did to make it work? Those searching the > archives in generations to come would appreciate what the conclusion was. . Sure. 1. I put it the _correct _name of my ISP's mailserver. No more errros. However...that sent out the

[PHP] Undefined Variable

2002-12-14 Thread Anthony Ritter
Using MS Win 98 / Apache Server: I'm trying to test a form box using the php mail() function. All is well when I fill in the text boxes and hit submit. I receive the e-mail. The form action in the html page is: http://localhost/getform.php"; METHOD="POST"> _Now_ when I copy both of those fi

Re: [PHP] Undefined Variable

2002-12-14 Thread Anthony Ritter
>"Marco Tabini <[EMAIL PROTECTED]> wrote in message: > Best guess, your local server has register_globals on and your ISP > doesn't. However, without seeing your code it's going to be difficult to > tell for sure! :-) > > > Marco Thanks for the

Re: [PHP] Undefined Variable

2002-12-14 Thread Anthony Ritter
Marco Tabini <[EMAIL PROTECTED]> wrote in message: > Hey Anthony-- > > It's definitely a register_globals problem. Your ISP has turned it off > because it's generally considered a significant security risk. > > The best way to solve it is to use the superglobal

Re: [PHP] Mail Server Setup

2002-12-24 Thread Anthony Abby
ostfix is extremely stable, fast, and easy to configure. Read all the documentation available on the site, and if you want, purchase Blum's Postfix book through Amazon.com or BN.com. Regards, Anthony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Load Data Infile

2002-12-29 Thread Anthony Ritter
Off topic but I hope somebody can help. Using MS Win98 / mySQL. I'm trying to use LOAD DATA INFILE and coming up empty. My text file is named: test.txt .. and is stored in C:\TextFiles on the command line I type: .. mysql> LOAD

Re: [PHP] Load Data Infile

2002-12-29 Thread Anthony Ritter
"Marco Tabini" <[EMAIL PROTECTED]> wrote in message: > I'm not sure how MySQL works under Windows, but you should either use > double backslashes (\\) instead of single backslashes or use forward > slashes (/) instead. MySQL is trying to escape your string. > > Cheers, > Marco

[PHP] Repeats of values

2002-12-31 Thread Anthony Ritter
I'm running the following sql query which outputs a repeat value for each field in the html cell box. Like this: .. 3.3 3.3 78 78 2002-06-11 2002-06-11 ... which is not what I would like. I was trying to get: . 3.3 78 2002-06-11 ...

[PHP] PHP vs. ASP

2003-01-04 Thread Anthony Rodriguez
Hi! How does PHP differs from ASP? Are there any advantages in using PHP over ASP? Or the other way around? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] counter problem

2003-01-04 Thread Anthony Ritter
The following script is found in Matt Zandstra's book on PHP (Sams) on page 160. He's explaining forms with PHP and has hard coded a value - 42. He also is explaining a hidden fleld where the user can submit the number and each time the user hits submit in the formbox, the counter will register t

Re: [PHP] counter problem

2003-01-04 Thread Anthony Ritter
Michael J. Pawlowsky wrote in message: > This also works with the ternary operator... . No dice Michael. I treid both your scripts. The formbox comes up. I enter a number. I hit submit. The box clears out the entered number without any mes

Re: [PHP] counter problem

2003-01-05 Thread Anthony Ritter
Hi Mike, I tried the first script you posted on the NG. This is what happens when I copy and paste your script: The formbox appears. I insert a number. I click submit. The number reverts back to 0. The URL script that you sent me works fine. I'm using MS Win 98/ Apache / PHP 4 Please advise if

[PHP] form box question

2003-01-13 Thread Anthony Ritter
Hi, I'm testing the following form on: MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine. However...when I publish the .php file and the data.txt file on the ISP's MS IIS server, I get undeclared variables and indexes when the form page loads. The script follows. Any help would be grea

Re: [PHP] form box question

2003-01-13 Thread Anthony Ritter
Thanks. Any ideas after looking at the code why I'm having difficulty publishing the file to a MS IIS server with undeclared indexes and variables if it works on Apache server? TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] permission denied

2003-01-13 Thread Anthony Ritter
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

[PHP] Re: permission denied

2003-01-14 Thread Anthony Ritter
Lars, I use Win98 and Apache to test the .php script. My ISP has IIS. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Disable pic copy/save?

2003-01-23 Thread Anthony Rodriguez
Hi! A client wants to test market two versions of an advertising but wants to disable the users' ability to copy/save the ads (right click, copy/save). How can this be done in PHP? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net

[PHP] php question - query string

2003-01-30 Thread Anthony Ritter
The following script is from Kevin Yank's book on page 59-60. (Sitepoint) I'd like to get some clarification about the line: (almost next to last line in the script) ... echo("Add a Joke!"); He has a link called "Add a Joke!". When the user clicks on the link,

[PHP] php/mysql connection

2003-02-02 Thread Anthony Ritter
Newbie question and OT. Sorry. I am able to conncet to a mysql server with the following call to mysql_connect(). $connect=@mysql_connect("","",""); There are no parameters in the function call. Why can I connect if there are no parameters? However, if I give mysqladmin the password of: goodpa

[PHP] mysql/php query - wrox

2003-02-02 Thread Anthony Ritter
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

Re: [PHP] php/mysql connection

2003-02-03 Thread Anthony Ritter
John W. Holmes wrote in message : > Because a default install of MySQL includes an anonymous user, one with > no username or password. There is also a root user with no password. > Read the MySQL manual on Installation and the GRANT command on how to > fix this. > > ---John W. Holmes... ..

Re: [PHP] mysql/php query - wrox

2003-02-03 Thread Anthony Ritter
Chris Shiflett" wrote in message: > Your query returns two rows because you have two rows in > the database that match the condition: > > host='localhost' > > -- > Chris .. Chris, I was under the impression that the mysql database had as default user when instal

[PHP] undefined function - crypt()

2003-02-12 Thread Anthony Ritter
Using MS Win98 / PHP /Apache I'm getting a undefined function error - crypt() The following scripts were taken from Larry Ullman's book on PHP on page 60-61. Any advice would be helpful. Thank you. Tony Ritter .. //ullmanform.html HTML Form

[PHP] Re: undefined function - crypt()

2003-02-12 Thread Anthony Ritter
Greg wrote in message: > I believe you need to have mcrypt installed. > -Greg . Not sure what mcrypt is. Please advise. In Ullman's textbook, it says that decrypt() and encrypt(0 fuctions will not work if PHP is not installed as a module. However, in his example in the boo

[PHP] geek fishing stuff

2003-02-14 Thread Anthony Ritter
My guiding season begins in April. Anybody out there know where I can purchase a nice mysql dolphin t-shirt? Thank you. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] geek fishing stuff

2003-02-14 Thread Anthony Ritter
Jason Wong wrote in message: > Try the mysql website or the mysql list? . Yep. I went to the mysql site and they didn't have any promo material like t-shirts, visors, etc. My news server doesn't have any mysql newsgroups. SQL - yes - but not mysql. There was a shop

[PHP] syntax question

2003-02-19 Thread Anthony Ritter
Greetings... The following is the _third_ part of a script found in Julie Meloni's book "PHP Essentials" on page 118. The script dynmically generates a form box of field names, field types and field sizes for a mysql table depending on what the user chooses. My question is about syntax or logic i

Re: [PHP] syntax question

2003-02-19 Thread Anthony Ritter
This is what I was getting at. The following is correct mysql syntax in which a comma must be added after each field - except for the last field - in this case price: i.e., . CREATE TABLE chairs( id int(5), item varchar(50), desc text, price float ); . Ho

Re: [PHP] syntax question

2003-02-19 Thread Anthony Ritter
Many thanks Jason. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Downloading files

2003-02-23 Thread Anthony Rodriguez
Hi! In PHP, is there a way to allow the user to download a file (e.g.: sample.txt) to their computer? And, then, automatically return to the PHP-generated Web page. How can the file be stored in C:\sample.txt, for example? Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To

[PHP] Downloading files - Plz hlp

2003-02-23 Thread Anthony Rodriguez
Hi! In PHP, is there a way to allow the user to download a demo file (e.g.: sample.exe) to their computer? And, then, automatically return to the Web site? Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] resizing .jpg file in php

2003-02-26 Thread Anthony Ritter
I'd like to use (with permission) .jpg files from a webcam from another URL. Once that URL is opened and read via PHP as a file into my site is it possible to resize that image? It measures 640 x 480 pixels and I would like to reduce the image size by 25%. Thank you. Tony Ritter -- PHP Gen

[PHP] newbie: installing gd in php4

2003-02-26 Thread Anthony Ritter
Using MS Win 98 / PHP 4 and Apache. I tried running the following script but got an undefined call to: ImageCreate() The following copy is located in my php.ini file...one of which is: .. ;extension=php_gd.dll .. I tried uncommenting this line to no avail. What is

[PHP] Re: resizing .jpg file in php

2003-02-26 Thread Anthony Ritter
-- Steve Magruder wrote in message : > To reduce its display size in an img tag, specify 640 * .75 for the width > (assuming 640 is for width) and 480 * .75 for the height. If you actually > want to reduce the size of the image, then look at PHP's image-related > functions (and the GD librar

Re: [PHP] newbie: installing gd in php4

2003-02-26 Thread Anthony Ritter
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 Many thanks, TR -- PHP General Mailing List (http://www.php.net

[PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
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 I ru

Re: [PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
Yes Adam. Any ideas? TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
Fine Chris. Maybe you'd be kind enough to explain how I can get that function to work. I've uncommented the line in the php.ini file. In "Mastering PHP" (Sybex) on page 559 - Chapter 18, the authors of the textbook - Allen and Hornberger - say when using Win to: ... "uncommen

Re: [PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
Chris, The function I'm trying to get...it's: imagecreate() I am using MS Win 98 / PHP 4 and Apache. I tried running the following script but got an undefined call to imagecreate() The following copy is located in my php.ini file...one of which is: .. ;extension=php_gd.dll ...

[PHP] =at wit's end with GD Libraries=

2003-02-27 Thread Anthony Ritter
I want to thank those who tried to help with my questions about using the GD libraries. I still have not gotten them to function using PHP. I've put two screenhots of the phpinfo() page at: www.gonefishingguideservice.com/php_page.htm If you care to take a look at those images, you'll see that

  1   2   3   4   >