RE: [PHP] Feelin' dumb...

2002-05-17 Thread Craig Vincent
ich I believe is what you are looking for). Note the parenthesis in the $number line are not needed however I typically code with them as it makes it easier to understand the code with less though =) Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for web based email

2002-05-17 Thread Craig
gurable. Its open source > and developing at a rate of knotts. > Its very easy to install, although it does currently require cookies... > but Im urging them to shy away from that ;) > - Dan > > > http://nocc.sourceforge.net/ > > -Jared > > > > -Original Me

RE: [PHP] PHP and MySQL

2002-05-17 Thread Craig Vincent
ly abuse her MySQL server due to her post =) Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for web based email

2002-05-17 Thread Craig
I am in the process of developing a website with a webmail system similar in functions to hotmail Does anyone have any suggestions for where to start? thanks craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and MySQL

2002-05-16 Thread Craig Vincent
our problem as well. I think you were aiming for something like if ($booktitle AND $quantity) { or how I do it (although it looks a bit messier) if (($booktitle) && ($quantity)) { Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and MySQL

2002-05-16 Thread Craig Vincent
k-quantity' WHERE booktitle='$booktitle' AND quantity=quantity"; mysql_query($sql); } Should do the trick. Or even cleaner if( $booktitle AND "quantity" ){ mysql_query("UPDATE Book2 SET stock ='$stock-quantity' WHERE booktitle='$booktitle' AND quantity=quantity"); } Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Craig Vincent
ng you can do is temporarily record the IPs of connections to your script, and then block IPs that connect to the script too often directly from your routing table. It doesn't necessarily stop those using proxies but definately is more reliable than an HTTP_REFERER protection scheme. Sinc

RE: [PHP] newbie bigtime

2002-05-15 Thread Craig Vincent
browser. There are advantages and disadvantages to both but neither of which have the advantage of security. IMO POST is better to use generally since it presents much cleaner URLs to the end user, but I find the GET method much better when debugging a script designed to process a form submission.

RE: [PHP] PHP and mySQL

2002-05-14 Thread Craig Vincent
, just the MySQL server trying to execute the query). Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and mySQL

2002-05-14 Thread Craig Vincent
uspect you meant quantity=$quantity (again if it's not an integer you need single quotesheck put single quotes around it anyways...it doesn't hurt) $sql = "UPDATE Book2 SET stock ='$stock-quantity' WHERE booktitle='$booktitle' AND quantity='$quantity'&

[PHP] Re: Getting only 255 chars from SQL Server

2002-05-13 Thread Craig
Varchar can only be set to a maximum of 255 Try setting the column to long text "Unknown Sender" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have an SQL Server database running on a server on the internet. I > need to have php connecting to the db and ret

RE: [PHP] Self Destruct code

2002-05-07 Thread Craig Vincent
gly urge you to get a deposit for any projects you're going to work on. Such a retainer is perfectly acceptable in a circumstance like thisand it protects you from companies deciding to terminate a project mid-development (or if they don't pay you, you at least get somethin

RE: [PHP] file_exists

2002-05-06 Thread Craig Westerman
I found my problem. >From manual: "file_exists() will not work on remote files; the file to be examined must be accessible via the server's filesystem. " File is on another server. Is there a way to check if file exists on another server? Craig ><> [EMAIL PROTECT

[PHP] file_exists

2002-05-06 Thread Craig Westerman
What am I doing wrong? I get parse error between first echo statement and else. Thanks Craig ><> [EMAIL PROTECTED] "; else echo ""; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Linux and permissions

2002-05-06 Thread Craig Vincent
php directory *and* copy the files. It means that DirectoryIndexing is enabled in apache =) you can either disable that (recommended) or as a quick fix put a blank index.htm (or .html file) in that directory so when someone calls up just the directory they get that blank page. Sincerely, Craig Vincent --

RE: [PHP] arithimetic

2002-05-02 Thread Craig Vincent
please? It may help shed some light on your situation. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stupid question

2002-05-02 Thread Craig Vincent
ints use the round() function. However if you don't want to round and instead just want to truncate the number, the number_format() function would be what you need. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Opinions Wanted

2002-05-02 Thread Craig Vincent
it if a person refreshes the page or returns to that page using the forward/back navigation buttons on their browser. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] variables over 2 pages w/ a table.

2002-05-01 Thread Craig Vincent
ile on your system. There's an exact example of this on http://www.php.net/manual/en/function.include.php example 11-5. Basically you need the include to be an http link...not a local link ex. include("http://www.foobar.com/index.php?lext=php?start=8";); Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Kinda HTML and PHP question....

2002-05-01 Thread Craig Vincent
t; tables get wight bigger..they are set to wight=100% . thanks for > any help or any suggestion what should i do. http://www.php.net/manual/en/function.wordwrap.php This I think is exactly what you're looking for. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
n name goesyou actually don't need to specify oneby default the session name is PHPSESSION and really unless you have a real reason for using a different session name there is no real benefit to specifying another session name (afaik). Sincerely, Craig Vincent -- PHP General Mailing List

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
MOTE_USER to equal the apache authentication username easiest method (for me anyways) is: $REMOTE_USER = getenv('REMOTE_USER'); Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
are created so say you create the cookie on page A, until the user refreshes page A or goes to page B the cookie won't actually be in effect. A snippet of your code would be helpful as well Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] getting a function name of the calling function

2002-05-01 Thread Craig Vincent
pass the name of a parent function to a child function. However you could always pass the parent function's name to the child function as a normal parameter. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Query > Close

2002-05-01 Thread Craig Vincent
7;ll sleep better at night using mysql_close() =) Really the question to ask is why shouldn't you use mysql_close()? Overall it is better for your system and relieves you of worrying about any potential memory hogging or MySQL connection rejections. Sincerely, Craig Vincent -- PHP General

RE: [PHP] PHP Editors

2002-05-01 Thread Craig Vincent
now I'm hooked on TextPad. Let us know if you have any > experience using Dreamweaver MX. I don't know about thatI've used Dreamweaver Ultradev for years and it worked great for my PHP/HTML coding. I haven't tried MX but am curious as to how it may work. S

RE: [PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread Craig Vincent
rkto have a checkbox autochecked the HTML must be similar to So a sample coding might be > Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] odd behavior

2002-04-30 Thread Craig Westerman
number 30. Is $file somehow retaining value of 30 and not getting new value of 45 when script runs second time? What is it called when this happens? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Page Numbers

2002-04-30 Thread Craig
Any one know how to display, go to page number on a record list page eg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] If value is divisible by 2

2002-04-30 Thread Craig
I am trying to write an if statement that says if the value $foo is divisible by 2 then echo "text" i have tried mod but it isnt recognised any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Removing empty elements from an array

2002-04-28 Thread Craig Westerman
] => 23/Mar/02 [12] => [13] => 24/Mar/02 [14] => 25/Mar/02 [15] =>) Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sessions not staying a session...

2002-04-25 Thread Craig Donnelly
You should use session_start(); on every page that u want to pass session information.. Craig "Jeff Lewis" <[EMAIL PROTECTED]> wrote in message 00d601c1ec72$072a63d0$76a1a8c0@LEWISJCIT">news:00d601c1ec72$072a63d0$76a1a8c0@LEWISJCIT... > I am storing session informati

[PHP] Session Registering

2002-04-25 Thread Craig Donnelly
Im using session in my form, there are 6 pages to the form, It all works fine, until You work your way back through the form, to ammend the filled in details. e.g - If I go to page 1, and fill out my name, and post to the next page, heres the code Im using: PHP:

[PHP] Re: Need help with File Upload

2002-04-25 Thread Craig
have you included the MAX_FILE_SIZE hidden field? If yes try increasng the value to above the image size "Walter Enzenhofer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi there, > > i´m sorry to post that stupid message, but i really need help in finding th

[PHP] Displaying dates

2002-04-25 Thread Craig
How can i display a dynamic page showing last month and next month and the month before eg this moth is how do i add 1 to the month or -1 to the month? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] remove last character in a string

2002-04-22 Thread Craig Westerman
Wouldn't it be better to check to see if charicater is indeed a comma before removing it? I was guessing eregi_replace would be the way to go. Am I thinking wrong? Craig ><> [EMAIL PROTECTED] First, you'll need to get the length of the str with the str_len() function.

[PHP] remove last character in a string

2002-04-22 Thread Craig Westerman
I have a string that ends in a comma. What is best method to remove the comma? Craig ><> [EMAIL PROTECTED]

[PHP] adding numbers to a file

2002-04-22 Thread Craig Westerman
to do this once a day to correct a poor count. Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP editor for windows

2002-04-22 Thread Craig
the new ultradev (MX) contains what you need there is a trial download on the macromedia site "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > www.phpide.de > > It's called PHP Coder. Don't get the versions by Maguma (last time I u

[PHP] adding numbers in a text file

2002-04-21 Thread Craig Westerman
x27;m doing this a counter script will be reading this file, but NOT writing to it. Will the file need to be locked while adding $newnumber to it? Thanks Craig ><> [EMAIL PROTECTED]

[PHP] grab a number

2002-04-20 Thread Craig Westerman
d to grab the 19/Apr/02 count of 181756. But the date will change daily. So it would need to always grab last number from second to last line. Any suggestions? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] $PHP_AUTH_USER

2002-04-20 Thread Craig Vincent
#x27;t find my notes so I can't give you an exact answerhowever if I remember correctly by sending a 401 error header to the user when they log out it will force the browser to re-request authentication Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php permissions

2002-04-19 Thread Craig Vincent
io if your admin has done his job properly is one could manage to erase all the other php uploaded files if they found an exploit. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] creating table help

2002-04-19 Thread Craig Vincent
elping to resolve your issues. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problem when my php forum tries to send a mail

2002-04-19 Thread Craig Vincent
forums here for phpBB. You may want to search here to see if there have been others with a similar problem. My guess would be that you don't have an smtp setup on win 98. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] some problems about gd in php

2002-04-19 Thread Craig Vincent
sr/local/mysql > --with-apache=../apache_1.3.24 --enable-track-vars > --with-gd=../gd-1.8.4 --with-png-dir=../libpng --with-zlib-dir=../zlib What version of PHP are you using? Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Tagi It!

2002-04-19 Thread Craig Donnelly
Have a look here... http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=8&txtCodeId =585 Craig "Jason Whitaker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am looking for a pre-wrote script thats does the sa

[PHP] PHP and if statement if a page isnt there using iframes

2002-04-18 Thread Craig
i am using iframes to display a page within a page the iframe is named and the page is dynamic the iframe displays a page using generated php. is there a way of using php to redirect to "nopage.php" if the page does not exist? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Pass variables via URL

2002-04-11 Thread Craig Westerman
hanks Craig ><> [EMAIL PROTECTED]

[PHP] counter for HIGH traffic site

2002-04-06 Thread Craig Westerman
HIGH traffic with little added server load? Would using MySQL to store count be of any benifit? Thanks Craig ><> [EMAIL PROTECTED]

RE: [PHP] php - copy problem

2002-04-03 Thread Craig Westerman
I did that first thing. Also tried chmod g+rwx I can copy manually via Telnet, but something is wrong with my PHP script. Thanks Craig ><> [EMAIL PROTECTED] -Original Message- From: Julian [mailto:[EMAIL PROTECTED]] Hi! You must to set the folder where you want to save th

[PHP] php - copy problem

2002-04-03 Thread Craig Westerman
ive.php:Error failed to copy the file www.html It appears to be a permission problem. How do I set permissions to allow me to do this? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Including Files

2002-04-03 Thread Craig Donnelly
Is there a way to setup either the apache/php directives to produce a custom 404 if an include file "fails to be included" ?? Or is this a job for .HTACCESS?? Regards, ~Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: newbie question: how to recompile PHP?

2002-04-03 Thread Craig Donnelly
Strange..U sure you got the Win32 version?? Heres a mirror where u can get the installer: http://www.evilwalrus.com/downloads/php/4.1.2/php-4.1.2-installer.exe All the best, Craig "Bogdan Popescu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL P

[PHP] Re: Connecting to a DB using PHP and mysql...

2002-04-02 Thread Craig Donnelly
Try this for your connection: - - Hope it helps ya, Craig "Anthony Ritter" <[EMAIL PROTECT

[PHP] 404 error triggered by Include error??

2002-04-02 Thread Craig Donnelly
Is there a way to setup either the apache/php directives to produce a custom 404 if a file "fails to be included" ?? Or is this a job for .HTACCESS?? Regards, ~Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Custom 404

2002-04-02 Thread Craig Donnelly
Custom 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $HTTP_USER_AGENT

2002-04-02 Thread Craig Donnelly
Have a look here: http://www.evilwalrus.com/viewcode.php?codeEx=313 Craig Donnelly "Eric Coleman" <[EMAIL PROTECTED]> wrote in message 000b01c1d845$55158020$0201a8c0@zaireweb">news:000b01c1d845$55158020$0201a8c0@zaireweb... > Why not echo $HTTP_USER_AGENT and f

Re: [PHP] Another ?

2002-04-02 Thread Craig Donnelly
Have a look here: http://www.evilwalrus.com/viewcode.php?codeEx=313 Craig "Eric Coleman" <[EMAIL PROTECTED]> wrote in message 001501c1d84e$42a4f480$0201a8c0@zaireweb">news:001501c1d84e$42a4f480$0201a8c0@zaireweb... > Probably Opera > > - Original Me

[PHP] Re: which php book 2 buy ?

2002-03-26 Thread Craig
php and mysql web development ISBN 0-672-31784-2 Its got a good example of a php shopping cart system in it too "Septic Flesh" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I wanna buy a book from amazon . . .but don't know which one.. > Do you know where I

[PHP] File Upload

2002-03-26 Thread Craig
I have developed a file upload facility that allows a user to upload a html file to a site. Is there a way to also upload images within the page without creating several file uploads. The images vary between 0 and x . Any help would be grateful Craig -- PHP General Mailing List (http

RE: [PHP] Retreiving website contents

2002-03-24 Thread Craig Westerman
http://curl.haxx.se/libcurl/php/examples/ -Original Message- From: Liam [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 23, 2002 9:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Retreiving website contents Hi, I've asked this before but I'm still ost. How can I receive the contents of a

[PHP] PHP Developer's Cookbook, Second Edition

2002-03-23 Thread Craig Westerman
Is the second edition much different from the 1st? If one has 1st Edition, is it worth $39.95 to get the second? Thanks Craig ><> [EMAIL PROTECTED]

[PHP] email password and username

2002-03-20 Thread Craig
I am trying to create a system where a user can retreive there user name and password details. The problem is that the user name /password is in one table and the contact details are in another. The contact details are refrenced to the username. I want to acheive the following: 1. A user enters

[PHP] data to multi-dimensional array

2002-03-07 Thread Craig Westerman
commas get turned into pluses. The multiple ticker URL for above tickers is thus: http://finance.yahoo.com/d/quotes.csv?s=msft+rhat+^dji&f=sl1d1t1c1ohgv&e=.cs v If I change $symbol = msft+rhat+^dji How could I save all to a multi-dimensional array? Thanks Craig ><> [EMAIL P

RE: [PHP] image creation to file

2002-03-06 Thread Craig Westerman
Hi Tom, At first it didn't work. I had to create a blank png image in Photoshop and uploaded it. I then changed file permissions and then the image creation worked. Is there a way to write to test.png when it doesn't already exist and file permissions are set? Thanks for your he

[PHP] image creation to file

2002-03-06 Thread Craig Westerman
The following creates a red rectangle png image This sends created image to browser ImagePNG($im); How would I save this image as test.png to file to be hard coded in static web pages? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To un

RE: [PHP] data from service into array

2002-03-06 Thread Craig Westerman
Thanks Jim. Works like a charm. Real sweet. Would you explain what this line does? $out[$m[1]] = $m[2]; Learning is a real blast. Wish I would have jumped in a couple of years ago. Thanks again. Craig ><> [EMAIL PROTECTED] -Original Message- From: Jim Winstead [mail

RE: [PHP] data from service into array

2002-03-06 Thread Craig Westerman
to do it with PHP. I'll hunt up your post on XML in the archives after I get a XML book. Thanks Craig ><> [EMAIL PROTECTED] http://www.PAIDDATAPROVIDER.com/services/quote.cgi?quote=".$symbol; if (!($fp = fopen($url, "r"))) { echo "Could not open URL&qu

[PHP] data from service into array

2002-03-05 Thread Craig Westerman
I'm retrieving data from a data service. This is the ENTIRE source code of the URL they let me receive: RHAT 6.82 3/4/2002 3:59pm 0.32 6.59 6.99 6.53 932400 How can I insert the data values into an array ? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mail

[PHP] data into an array

2002-03-04 Thread Craig Westerman
I'm retrieving data from a service. The data is in the following format. RHAT 6.82 3/4/2002 3:59pm 0.32 6.59 6.99 6.53 932400 How can I insert the data values into an array? Thanks Craig ><> [EMAIL PROTECTED]

RE: [PHP] form variables

2002-03-04 Thread Craig Westerman
quote=RHAT&submitquote=Get+Quote How do I get rid of the extra&submitquote=Get+Quote in the URL? Why is enter and submit acting differently? Thanks Craig ><> [EMAIL PROTECTED] -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002

RE: [PHP] form variables

2002-03-04 Thread Craig Westerman
Thanks Donald, I tried that before and this is URL returnedquotestest.php?quote= Craig ><> [EMAIL PROTECTED] -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 7:17 PM To: Craig Westerman Cc: php-general-list Subject: Re: [

[PHP] form variables

2002-03-04 Thread Craig Westerman
The above form passes $quote to the page quotestest.php How can I also pass the $quote to the URL so that the page with variable can be bookmarked? Do I have to modify both pages or just the input form? Thanks Craig ><> [EMAIL PROTECTED]

RE: [PHP] Real world regex

2002-03-04 Thread Craig Westerman
-Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 8:55 AM To: Craig Westerman; php-general-list Subject: Re: [PHP] Real world regex > For another I need to get the 3rd opening table row tag after the 7th > opening tag. not tested: &quo

[PHP] Real world regex

2002-03-04 Thread Craig Westerman
I'm trying to understand how to write a regex when the only pattern is table tags. For one I need to figure out how to match the opening tag of the 4th html table on a page. For another I need to get the 3rd opening table row tag after the 7th opening tag. Thanks Craig >&

RE: [PHP] PHP - Tutorial

2002-03-02 Thread Craig Westerman
://www.devshed.com/Server_Side/PHP/PHP101/PHP101_5/print Best regards, Craig ><> [EMAIL PROTECTED] -Original Message- From: Josiah Wallingford [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 02, 2002 7:16 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP - Tutorial Hello all, I am a be

[PHP] fopen

2002-03-02 Thread Craig Westerman
How can I use fopen to retrieve just one html table out of a whole web page. I need to extract just this table (shown below) from this web page: http://quotes.nasdaq.com/quote.dll?page=multi&mode=stock&symbol=drooy Than

[PHP] excluding files

2002-02-28 Thread Craig Westerman
while ($file_name = readdir($dir)) if (($file_name != ".") && ($file_name != "..")) $file_list .= "$file_name"; } This excludes . and .. files. How would I exclude files that contained pv. Thus filenamepv.html would be excluded, but filename.htm

RE: [PHP] mysql php - while loops

2002-02-27 Thread Craig Westerman
Thanks for the reply. This is what I came up with and it appears to work. Thoughts? Craig ><> [EMAIL PROTECTED] $count = 1; while ($data = mysql_fetch_array($results)) { ?> - - - mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 6:51 P

[PHP] PHP on Pocket PC

2002-02-27 Thread Craig Westerman
Is it possible to run PHP on a Pocket PC? Thanks CW

[PHP] mysql php - while loops

2002-02-26 Thread Craig Westerman
The following lists 12 items from a fruits table. $results = mysql_query("SELECT ID, date, appleprice, orangeprice, pearprice FROM fruits"); while ($data = mysql_fetch_array($results)) { ?> - - - <> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: php - assigning date variables

2002-02-25 Thread Craig Westerman
Joe, I don't want to change the query itself like you show. I want to use this query $query = "" mysql_query("SELECT * FROM table WHERE date LIKE '%". $query ."%'"); and change only the variable $query = "" I use $query throug

[PHP] php - assigning date variables

2002-02-25 Thread Craig Westerman
ariable to include all dates between 1995-01-01 and 1998-12-31? $query = "???" Everything I tried gives me a error. This has to be simple, but I must be overlooking something. Where would I find the answer? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables Limit

2002-01-26 Thread Craig Vincent
s. Sincerely, Craig Vincent -- 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] database question

2001-11-29 Thread Craig Vincent
> what does \S means? http://www.php.net/manual/en/pcre.pattern.syntax.php This page gives a good description of many of the regex metacharacters and their meanings. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-26 Thread Craig Vincent
code at all. What version of PHP are you using? Sincerely, Craig Vincent -- 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] Selecting databases

2001-11-26 Thread Craig Vincent
ppropriate database...of course this format is assuming that all the table names will be identical, although if you do have different table names for each database it's very easy to change that dynamically as well. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Which 'make' is needed for linux to install php?

2001-11-26 Thread Craig Vincent
make (Linux slackware and redhat) and have never had a problem with any version of PHP (3.x or 4.x) Sincerely, Craig Vincent -- 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 admin

[PHP] Wide Image Scroller

2001-08-26 Thread Craig Westerman
I have a very wide panoramic image I want to display on a page. I don't want to side scroll the page, only the image. Is there a way to make a image side scrollable using PHP? Thanks Craig ><> [EMAIL PROTECTED]

[PHP] Need Regex Help

2001-08-18 Thread Craig Westerman
o prices to the right into a new html table? I think the answers will help me understand better. Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

[PHP] problem with a hacker

2001-08-16 Thread craig henderson
en thanks to my hosting company. My question is, is there anything that I can do so that only PHP scripts on the server are able to access the file? Or am I going to have to contact my hosting company and see if they can figure out how to set the permissions properly? Thanks in advance. --craig h

[PHP] Regular Expression ? from newbie

2001-08-16 Thread Craig Westerman
tml table? I think the answers will help me understand better. Thanks Craig ><> [EMAIL PROTECTED]

RE: [PHP] Uptime script

2001-08-06 Thread Craig Westerman
you are running php as a cgi ;-) nice uptime btw... -- Andreas D Landmark / noXtension I'm running FreeBSD. I'll see if if I can find source as you suggest. Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

RE: [PHP] Uptime script

2001-08-06 Thread Craig Westerman
, 3 user, load averages: 0.19, 0.24, 0.22 Craig ><> [EMAIL PROTECTED] -- 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] Uptime script

2001-08-06 Thread Craig Westerman
Does anyone here have a script to run uptime every ten minutes or so, log output, then display daily output in a nice friendly chart? Thanks Craig ><> [EMAIL PROTECTED]

[PHP] Parsing question from newbie

2001-08-05 Thread Craig Westerman
;', $lines_array); eregi("(.*)", $lines_string, $head); echo $head[0]; ?> It prints out: PHP: Hypertext Preprocessor How do I modify this to get what is between the TITLE tags and not include the TITLE tags? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www

RE: [PHP] ? about PHP includes

2001-08-03 Thread Craig Westerman
ed in notepad. Include Abbreviated File Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] not null

2001-08-01 Thread Craig Vincent
hing in $value. Are you referring to the (INT, NOT NULL, PRIMARY) field being in a database? Sincerely, Craig Vincent -- 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] check if user exists

2001-08-01 Thread Craig Vincent
if (mysql_num_rows(mysql_query("SELECT uname FROM users WHERE uname = '$username@$domain'")) > 0) { return("Username already exists.\n"; } That should work for you. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

<    1   2   3   4   >