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] 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] 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] 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-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

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] Feelin' dumb...

2002-05-17 Thread Craig Vincent
se two statements was that the loop would be indefinate. Without the third option $i is never incremented (unless you manually increment it from within the loop). So with your examples $i would always be 1 and would therefore always be <= $num_pages unless $num_pages was zero or negativ

RE: [PHP] Feelin' dumb...

2002-05-17 Thread Craig Vincent
pages by 20 as well before the for loop was called which was redundantand probably would have caused problems with getting the proper results from the database depending on how you coded it. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Feelin' dumb...

2002-05-17 Thread Craig Vincent
21, 41. Almost there I think, unfortunately, I need to > jet. I'll > be thinkin' on this one while DJing, definitely! Easy fix =) Put the $number = ($i * 20) + 1; at the end of your for loop so it is the last thing done prior to starting a new loop. Sincerely, Craig Vincent -- P

RE: [PHP] PHP,Apache disabled FTP?

2002-05-18 Thread Craig Vincent
why the server isn't working. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to select a file on a random basis?

2002-05-20 Thread Craig Vincent
) I'll try explaining in better detail when I'm more awake hehe. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Baffled, line producing error

2002-06-01 Thread Craig Vincent
I was happily coding when I came across a mysterious error. I've traced it to this line if ($player_password != $player_password_verify) { $errmsg .= 'Password don't match. Please try again'; $error = 1; } commented out the script runs fine, if this line is active an error is produced. My eye

Re: [PHP] Baffled, line producing error

2002-06-01 Thread Craig Vincent
) It's a standard parsing error I'm getting Parse error: parse error in admin_add_player.php on line 15 Since this message does not arise when line 15 is removed I can only assume the error is actually on that line and not a missing quote or bracket somewhere else in the script.

Re: [PHP] Baffled, line producing error

2002-06-01 Thread Craig Vincent
re better than ours. Thank you for pointing out the mistake Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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] 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] 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:

[PHP] PHP on Pocket PC

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

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] 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

[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

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] 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] 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] 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] 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: [

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

[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]

[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

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

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

[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] 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] 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

[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]

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

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

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

[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

[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] 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] 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] 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] 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

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] 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]

[PHP] Pass variables via URL

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

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

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] 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] 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]

[PHP] shipping module

2001-03-29 Thread Craig Cameron
Hi, We are developing a shopping cart application are wondering if there are any modules available to integrate with the different shipping companies. An help would be greatly appreciated. Thanks, Craig

[PHP] SHOPPING CART SHIPPING MODULE ...ANYONE???

2001-03-29 Thread Craig Cameron
    555 W. University Suite 2, Mesa, Arizona 85205       Hi,   I’m looking for a shipping model that we can use to integrate into our shopping cart. Does anyone know of any?   Thanks         Craig Cameron - Apex Digital

[PHP] IMAGES IN NETSCAPE SSL NOT SHOWING UP

2001-03-29 Thread Craig Cameron
help would be appreciated. Thanks, Craig:

[PHP] HELP WITH SHIPPING MODULE

2001-03-30 Thread Craig Cameron
Hi, I’m wondering if anyone knows of a shipping module I can use to integrate with my shopping cart solution. Thanks, Craig

[PHP] Printing a string issue

2001-06-30 Thread Craig Simon
trying to figure out how to write this.  I have a statement like this:   print ("href=\"wtai://wp/mc;"$row["officenum"]"\">Office");   Although I can't get this to parse!   $row["officenum"] is a variable that will have the number that

[PHP] NEWBIE - How do you strip spaces?

2001-07-03 Thread Craig Simon
I am trying to figure out how to take a phone number as an array element, and strip out the spaces and parenthesis and just return the numerals. IE (555) 555-1212 to 551212. I would appreciate any assistance. Thanks Craig Craig Simon Senior Systems Engineer

RE: [PHP] Security and Cookies

2001-07-11 Thread Craig Vincent
e best solution is to move the admin files to an area a normal individual could access... (ie another domain or subfolder protected by username/password, or IP or both). Sincerely, Craig Vincent -Original Message- From: Steph [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 200

[PHP] Re: [PHP-DEV] Passing JavaScript variables to PHP

2001-08-01 Thread Craig Gardner
cause of the line breaks I added to the message. What can I do to get this working? Also, I don't have a perl script to do this for me... Thanks. Craig -- 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

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] ? 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,

[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

[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]

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]

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

[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]

[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] 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] 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] Re: Calling a function at a certain time of day.

2004-07-30 Thread Craig Donnelly
Have a look at Cron http://www.webmasters-central.com/t/cron.shtml HTH Craig "Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI, > > Im slightly in the dark as to do the following. What I need is a thread of > some sort that runs and w

[PHP] Re: Calling a function at a certain time of day.

2004-07-30 Thread Craig Donnelly
Sorry I meant to say, assuming your on Unix/Linux system, Otherwise if Windows use task scheduler Control Panel > Scheduled Tasks Cheers, Craig "Craig Donnelly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Have a look at Cron > > http://www.webmast

[PHP] Re: POST superglobal is empty

2004-08-04 Thread Craig Donnelly
Show the code you are using... Craig "Andy Loftus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have any ideas as to why $_POST would be empty when > submitting a form to php? > > I am running PHP5 as CGI in apache 1.3.22 on redhat linux

[PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
sically this checks if the form button "sendform" is set. HTH, Craig "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am trying to create some code to check whether a form has been submitted. > The following code seems to print e

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
Ok, in simple form - If the submit button was clicked, If some one hits enter this would be a problem, easy way to resolve this would be to have a hidden form element flagged and to terst for that instead of the submit button, wouldnt you agree Jason? Craig "Jason Wong" <[EMAIL PROT

[PHP] Re: Sessions nightmare continue...

2004-08-17 Thread Craig Donnelly
quot;session value: " . $_SESSION["login"]); ?> == Works fine now. HTH Craig "Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Still no luck with sessions. I have installed an older version: 4.3.1 > and have

Re: [PHP] Array?

2004-08-25 Thread Craig Brothers
how many elements are returned by the sql statement? If you want the 7th item returned in the sql statement would need to code $things[6] Just a hunch... -- Craig Brothers @utoRevenue [EMAIL PROTECTED] (413) 528-8000 x105 On Wed, 2004-08-25 at 14:17, Nathan Mealey wrote: > I cannot seem

[PHP] Re: Using & before a variable

2004-09-03 Thread Craig Donnelly
http://php.us.themoes.org/manual/en/language.references.pass.php Passing by reference instead of value. HTH Craig "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have noticed that some of the functions in a tutorial I am studying ha

[PHP] PHP5 DOM Problem

2008-12-05 Thread Craig Whitmore
Hi there. I don't kno id this is the correct place to post but... I am using the PHP5 DOM to make up RSS Feeds .. A Problem I have is I want to make this up for itunes.. http://www.itunes.com/dtds/podcast-1.0.dtd";> etc.. I use.. $p_dom = new DOMDocument('1.0','UTF-8'); $p_rss = $p_dom-

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Craig Whitmore
On Mon, 2009-01-12 at 11:02 +, Richard Heyes wrote: > > Is there something in PHP5 which can generate the RSS feed? > > You don't need an extension to help you generate an XML feed. You > dimply output XML data instead of HTML and send an appropriate content > type header, eg: > > header('Con

Re: [PHP] WHILE LOOP PROBLEM

2009-03-27 Thread Craig Whitmore
On Fri, 2009-03-27 at 08:11 +, Andrew Williams wrote: > can some tell why the below loop stop running after some time. > > $start=10; > const run=0; > while($start >run){ > > //do somthing > > } > max_execution_time -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Independent Contractor Suggestions

2010-10-20 Thread Kris Craig
Hi musicdev, There are a couple issues I think need to be addressed with what youd described.  First and foremost, $20/hr is considerably below the going rate for PHP work, especially for projects as large as the one you're talking about. I used to do freelance PHP work for about 5 years before I

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-21 Thread Kris Craig
teries not included. So there. Now that that's out of the way, I'll get those up either tomorrow or Monday then post a link here. I hope this helps. =) --Kris On Wed, Oct 20, 2010 at 6:47 PM, Jason Pruim wrote: > > On Oct 20, 2010, at 8:47 PM, Kris Craig wrote: >> >&

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-22 Thread Kris Craig
ch means you are free to do with it as you please. And, as always, use it at your own risk. Please feel free to let me know if you have any questions/feedback/etc. I hope this helps. =) --Kris On Thu, Oct 21, 2010 at 1:52 PM, Kris Craig wrote: > I've had a few emails from people m

[PHP] Detect timeout of stream_socket_client using STREAM_CLIENT_ASYNC_CONNECT ?

2010-11-06 Thread Craig Mason
(apologies if this sends twice - email verification issues) Is it possible to detect the timeout of a stream created with stream_socket_client() using the flag 'STREAM_CLIENT_ASYNC_CONNECT' ? As soon as this flag is used, it seems there is no way to detect a timeout situation. tcp://192.168

[PHP] The Cat Signal

2012-07-19 Thread Kris Craig
Hey guys, I just became aware of this: http://internetdefenseleague.org/ It's a site setup by Mozilla, Reddit, and others to defend internet freedom in the wake of recent legislative events in the U.S. and elsewhere (full members list here: http://www.internetdefenseleague.org/members). They'

[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 12:36 PM, Ferenc Kovacs wrote: > > 2012.07.19. 20:21, "Daniel Brown" ezt írta: > > > > > Forwarding to php-webmas...@lists.php.net, as it's not a "general > > user" issue where it pertains to php.net. > >

[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs wrote: > >> > Btw. we were asked by the to join the league as we were a big traffic >> > source on the black out day. >> > I don't know if Rasmus is on the webmaster list or not, but we should cc >> > him, as he was the driving force behind us joinin

[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 2:11 PM, Hannes Magnusson < hannes.magnus...@gmail.com> wrote: > On Thu, Jul 19, 2012 at 10:01 PM, Kris Craig wrote: > > > > > > On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs wrote: > >>> > >>> > >>>

[PHP] Migration from php4 to php 5 open_basedir directive.

2005-03-14 Thread Craig Lewis
Hello, I have just attempted to migrate for the first time from php4 to php5. The problem i am having is some sort of change in how the open_basedir directive works in php 5. I don't see much discussion about this, so I must be doing something stupid, otherwise, I would think there would be a

Re: [PHP] Migration from php4 to php 5 open_basedir directive.

2005-03-14 Thread Craig Lewis
The files in question are 'within' the open_basedir directive. To explain further/better within virtualhost, php_admin_value open_basedir /www/htdocs/midwifefinder.com/site and... /www/htdocs/midwifefinder.com/site/index.php contains === require_once("includes/app.php"); which is /ww

[PHP] Sessions - going back in browser

2005-04-19 Thread Craig Donnelly
any ideas? Regards, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re:^^

2005-04-19 Thread Craig Donnelly
So now the page "expires" Any help appreciated. "Craig Donnelly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I had an issue that I needed to be able to go back in the browser while in a > session without getting "page has

[PHP] SOAP function call

2004-04-21 Thread Craig Gardner
can't find either result in the array. What am I doing wrong? Thanks, Craig. Server: class validate { var $method_namespace = 'urn:validate'; function check($filename) { if(file_exists($filename)) {

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-10 Thread Craig Donnelly
If returning a floating point variable, cast it back to an (int) hth "Tristan Pretty" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Cheers for all ideas/suggetions so far.. > I've made a little progres... > Visit this URL: > http://www.risk.sungard.com/secure.php?secure=126807.7142

Re: [PHP] Re: WDDX

2004-05-17 Thread Craig Donnelly
You bet it is.. :-) Sorry Dave. - Original Message - From: "Sam Masiello" <[EMAIL PROTECTED]> To: "Craig" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 17, 2004 4:41 PM Subject: RE: [PHP] Re: WDDX > > Hehe must be t

[PHP] Re: SELECT

2004-06-02 Thread Craig Donnelly
SELECT * FROM foo_table WHERE field_foo <> some_value The above will select all from foo_table except where field_foo is equal to some value. HTH Craig "Phpu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, Is there any way to select all entries in t

[PHP] Re: how to insert form data

2004-06-02 Thread Craig Donnelly
HTH Craig "Bigmark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to learn how to take the value of $name and $quote from a form > and put it in the database -whosaid > but obviuosly i have it all wrong. Can anyone point out what im doing

[PHP] Re: Running a PHP script on an automated regular schedule

2004-06-10 Thread Craig Donnelly
Best way to achieve this would be cron/crontab http://www.webmasters-central.com/t/cron.shtml HTH Craig "I.A. Gray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. > > I am wanting to use a PHP script to check on an hourly/daily basis on a few >

[PHP] Re: MySQL QUERY Results Not Appearing

2004-06-30 Thread Craig Donnelly
#x27;YOUR_DB_FIELDNAME']; } change YOUR_DB_FIELDNAME' to whatever the fields are you are querying. you could also: HTH Craig "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all... > > Despite being able to make a connection to the server and ex

<    1   2   3   4   >