[PHP] Resolving a PHP Notice Error

2013-09-17 Thread Ron Piggott
: sort_by_preference in GIFI_codes.php on line 11- Line 11 is “if ( !is_set( $sort_by_preference ) ) {“What is the correct way to test this without triggering a Notice error?Ron Ron Piggott www.TheVerseOfTheDay.info

[PHP] include() Error

2013-05-29 Thread Ron Piggott
tell me why this is happening? Ron Piggott www.TheVerseOfTheDay.info

[PHP] Extremely slow cURL curl_exec execution/response with 5.4.13

2013-03-21 Thread Ron
When upgrading from 5.4.12 to 5.4.13, cURL curl_exec calls are taking something like 700ms to complete. (Even to a file on the same server.) If I replace php_curl.dll library with the version from 5.4.12 all works as expected. Anyone else having issues or have suggestions as to how to

[PHP] Re: Integer

2013-02-02 Thread Ron Piggott
Thank you for the help. Very much appreciate it. Ron Piggott www.TheVerseOfTheDay.info -Original Message- From: Shawn McKenzie Sent: Saturday, February 02, 2013 1:43 PM To: php-general@lists.php.net ; Ron Piggott Subject: Re: Integer On 02/01/2013 10:40 PM, Ron Piggott wrote

[PHP] Integer

2013-02-01 Thread Ron Piggott
? Ron Piggott www.TheVerseOfTheDay.info

[PHP] Variables with - in their name

2012-11-17 Thread Ron Piggott
: ?php echo $distributor-42-2; ? Only PHP is treating the hyphen as a minus sign --- which in turn is causing a syntax error. How do I retrieve the value of this variable and over come the “minus” sign that is really a hyphen? Ron Ron Piggott www.TheVerseOfTheDay.info

[PHP] Date manipulation

2012-10-25 Thread Ron Piggott
Is it possible for PHP to accept the following as a date: 04:11:22 Aug 21, 2011 PDT so I may output it as: gmdate(‘Y-m-d H:i:s’) - I want the time zone included Ron Ron Piggott www.TheVerseOfTheDay.info

[PHP] Array unset()

2012-09-23 Thread Ron Piggott
#. It is an auto_increment value in a mySQL table The “value” ( 17,14,0,1,0 ) represents their score. The application for this is a list of the top users. If someone has 0 points I don’t want to include them. Any thoughts? Any help is appreciated. Ron Ron Piggott

Re: [PHP] Way to test if variable contains valid date

2012-07-02 Thread Ron Piggott
On Mon, Jul 2, 2012 at 2:54 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is there a way to test a variable contains a valid date - 4 digits for the year - 2 digits for the month (including leading 0) - 2 digits for the day (including leading 0) OR - a function? You may want

[PHP] Variable representation

2012-06-21 Thread Ron Piggott
['Bible_knowledge_phrase_solver_game_question_topics_1'] = hello world; $i = 1; echo ${row['Bible_knowledge_phrase_solver_game_question_topics_$i']}; ? What needs to change? Ron Ron Piggott www.TheVerseOfTheDay.info

[PHP] function

2012-05-03 Thread Ron Piggott
echo name_of_a_different_function( $flag1 , $flag2 ); } === The error I am receiving is “Call to undefined function name_of_a_different_function” Thanks, Ron Ron Piggott www.TheVerseOfTheDay.info

[PHP] Variable Question

2012-04-19 Thread Ron Piggott
T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING Can anyone see what I have done wrong and help me correct it? Thank you. Ron Ron Piggott www.TheVerseOfTheDay.info

[PHP] Variable representation

2012-04-01 Thread Ron Piggott
-images/; . $image_{$i} . \ title=\Image . $i . \Image . $i . /a/li\r\n; } ++$i; } === How do I substitute $i for the # so I may use a WHILE loop to display the images? (Not all 4 variables have an image.) Ron Piggott www.TheVerseOfTheDay.info

[PHP] Parsing the From field

2011-11-19 Thread Ron Piggott
- If the person has included their middle name, middle initial or degrees (“Dr.”) - If last name has multiple words Also the formatting of the from field changes in various e-mail programs: From: Ron Piggott ron.pigg...@actsministries.org From: Ron Piggott ron.pigg...@actsministries.org From: ron.pigg

Re: [PHP] Parsing the From field

2011-11-19 Thread Ron Piggott
My web site is used by people from approximately of 90 countries. - I will use just name instead of first name / last name. - e-mail address Ron Piggott www.TheVerseOfTheDay.info -Original Message- From: Alain Williams Sent: Saturday, November 19, 2011 11:29 AM To: Ron Piggott

Re: [PHP] Pipe To A Program

2011-11-12 Thread Ron Piggott
receive an empty e-mail, just not passing the e-mail content Ron Piggott www.TheVerseOfTheDay.info -Original Message- From: tamouse mailing lists Sent: Saturday, November 12, 2011 4:04 AM To: Ron Piggott Cc: php-general@lists.php.net Subject: Re: [PHP] Pipe To A Program On Sat, Nov 12

[PHP] Pipe To A Program

2011-11-11 Thread Ron Piggott
= $val) { $$key = $val; $email_body .= KEY: . $key . \r\n; $email_body .= VAL: . $val . \r\n; $email_body .= \r\n; } mail( user@domain , Test Pipe To Program , $email_body ); === The mail command works, but the e-mail message body is empty. I am at a loss of how to proceed. Ron

[PHP] Variable question

2011-10-01 Thread Ron Piggott
”; $trivia_answer_3 = “2,500”; $trivia_answer_4 = “5,000”; Ron www.TheVerseOfTheDay.info

[PHP] RSS Feed Accented Characters

2011-09-30 Thread Ron Piggott
htmlentities() the accented characters can’t be viewed, they become a “?” How should I proceed? Ron www.TheVerseOfTheDay.info

Re: [PHP] RSS Feed Accented Characters

2011-09-30 Thread Ron Piggott
-Original Message- From: Richard Quadling Sent: Friday, September 30, 2011 12:31 PM To: Ron Piggott Cc: php-general@lists.php.net Subject: Re: [PHP] RSS Feed Accented Characters On 30 September 2011 17:26, Ron Piggott ron@actsministries.org wrote: I am trying to set up an RSS

Re: [PHP] RSS Feed Accented Characters

2011-09-30 Thread Ron Piggott
www.TheVerseOfTheDay.info -Original Message- From: Richard Quadling Sent: Friday, September 30, 2011 2:53 PM To: Ron Piggott Cc: php-general@lists.php.net Subject: Re: [PHP] RSS Feed Accented Characters On 30 September 2011 18:22, Ron Piggott ron@actsministries.org wrote

[PHP] htmlentities

2011-09-13 Thread Ron Piggott
. I am trying to see if a work around is available? Do I need to do a variety of search / replace to convert the noted characters above back after htmlentities ? (I am just starting to get use to accented letters.) Thanks a lot for your help. Ron The Verse of the Day “Encouragement from God’s

[PHP] Opening Multiple Files

2011-09-07 Thread Ron Piggott
are able to give me. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info

[PHP] PHP within XML?

2011-08-25 Thread Ron Piggott
this question I tried to have the PHP at the very start, but that doesn’t work, the declaration line needs to be first. Right now the PHP is displayed as a comment. Thoughts anyone? Ron === ?xml version=1.0 encoding=utf-8? ?php #load RSS XML function require_once(rss_subscribers_xml.php

[PHP] Most popular word sorting

2011-07-13 Thread Ron Piggott
] = Parable [32] = Bags [33] = Gold [34] = Parable [35] = Yeast ) The most popular word is “Parable”. I would like it to be the first result. Then the second most popular word is “Lost”. Then all the remaining words are only used once. Ron The Verse of the Day “Encouragement from God’s Word

[PHP] IF stream lining

2011-07-13 Thread Ron Piggott
Is there a way to stream line this: if ( ( $val with ) AND ( $val from ) ) { Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info

[PHP] Submit Using An Image Form Processing

2011-06-18 Thread Ron Piggott
users will have several options (change quantities, delete specific items). I can’t use a hidden field. Thank you for your help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info

[PHP] Custom function

2011-05-02 Thread Ron Piggott
Is it possible to write a function with an optional flag? What would the syntax look like? So far I have: function load_advertisement( $web_page_reference , $web_advertising_sizes_reference ) { Thanks Ron The Verse of the Day “Encouragement from God’s Word” http

Re: [PHP] Custom function

2011-05-02 Thread Ron Piggott
On Mon, May 2, 2011 at 3:16 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is it possible to write a function with an optional flag? What would the syntax look like? So far I have: function load_advertisement( $web_page_reference , $web_advertising_sizes_reference ) { Hi

[PHP] str_replace

2011-04-24 Thread Ron Piggott
letter is selected? This is the syntax specific to choosing a replacement letter at random: substr ( $puzzle_filler , rand(1,98) , 1 ); Thanks for your help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -- PHP General Mailing List (http

[PHP] Sorting an array

2011-02-28 Thread Ron Piggott
] = Punished [98] = Sanctuary [187] = Sin [596] = Sing ) The #’s are the auto_increment value of the word in the mySQL database. The number is not representative of alphabetical order, but the order it was added to the database. Thank you for your assistance. Ron The Verse of the Day

[PHP] Manipulating variables

2011-02-23 Thread Ron Piggott
answers. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info

Re: [PHP] Parse question

2011-01-21 Thread Ron Piggott
On Jan 21, 2011, at 6:52 PM, Ron Piggott wrote: Would someone write me a syntax so all the web site addresses in $data turn into links $data = “Visit our web site http://www.site.com, http://www.secondsite.org and http://www.thirdsite.info.”; My desired results for what I am asking

Re: [PHP] Fw: Spoofing user_agent

2010-11-30 Thread Ron Piggott
how to change browser user agents: http://www.walkernews.net/2007/07/05/how-to-change-user-agent-string/ Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info

[PHP] Form Processing

2010-11-29 Thread Ron Piggott
;input type=text name=email maxlength=60 class=referral_5 style=width: 400px;/p p style=margin: 10px 50px 10px 50px;input type=submit name=submit value=Add New Referrals/p /form What am I doing wrong? Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info

Re: [PHP] Fw: Spoofing user_agent

2010-11-29 Thread Ron Piggott
: Shreyas Agasthya Sent: Monday, November 29, 2010 1:35 AM To: Ron Piggott Cc: PHP General List Subject: Re: [PHP] Fw: Spoofing user_agent Ron, Can you let us know if this whole thing that you were trying to do worked? I see that very few actually bring a thread to a logical conclusion either

[PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
Thanks. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: Shreyas Agasthya Sent: Thursday, November 25, 2010 4:21 AM To: Ron Piggott Cc: php-general@lists.php.net ; a...@ashleysheridan.co.uk Subject: Re: [PHP] Fw: Spoofing user_agent A standard

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
Will the header pass with using file_get_contents , or should I be using another command, and if so, which one? Ron ?php header('User Agent: RonBot (http://www.example.com)'); $url = http://www.example.com;; $input = file_get_contents($url); The Verse of the Day

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
Is User Agent suppose to have a hyphen - ? Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -Original Message- From: Richard Quadling Sent: Thursday, November 25, 2010 9:16 AM To: Deva Cc: Shreyas Agasthya ; Ron Piggott ; php-general

[PHP] Suppressing error from displaying

2010-11-24 Thread Ron Piggott
I am using this syntax to check for a valid e-mail address list($userName, $mailDomain) = split(@, $buyer_email); if (checkdnsrr($mailDomain, MX)) { if no domain is provided ( ie e-mail address is something like “ron” with no @ ) the following error is displayed: Warning: checkdnsrr

[PHP] Re: String manipulation

2010-11-14 Thread Ron Piggott
How would I write an IF statement that looks for the first space space (“ “) left of the 76th character in a string or br, which ever comes first --- OR the end of the string (IE the string is less than 76 characters long? I specifically want is it’s character position in the string. Ron

Re: [PHP] Re: String manipulation

2010-11-14 Thread Ron Piggott
('br',$activity_description_result, 76):strlen($activity_description_result); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Sunday, November 14, 2010 4:58 PM To: Ron Piggott ; php-general@lists.php.net Subject

[PHP] Returning values from a function

2010-11-14 Thread Ron Piggott
I am writing a string parsing function. I need to return 3 values from a function: return $string_to_display; return $string_to_parse; return $continue_parsing; I am not sure how to retrieve these variables. The Verse of the Day “Encouragement from God’s Word”

[PHP] Retrieving function values

2010-11-14 Thread Ron Piggott
, not 3. Could someone help me please? Thank you. Ron

[PHP] Array / form processing

2010-10-07 Thread Ron Piggott
I have made gift certificates their own product. If you a better method I could use please provide me with this feedback. Ron The Verse of the Day Encouragement from God's Word www.TheVerseOfTheDay.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Array / form processing

2010-10-07 Thread Ron Piggott
method for passing the product serial number (auto_increment in the table it is stored in) so I know which product the user is removing from their purchase. Then I will just unset the session variable that matches. What are your suggestion(s)? Thank you your help with my original question Chris. Ron

[PHP] Array form processing

2010-06-29 Thread Ron Piggott
; echo $key . : . $val . br; } The output is: painDesc: Array I need to know the values of the array (IE to know what the user is checking), not that there is an array. I hope to save these values to the database. Thank you. Ron -- PHP General Mailing List (http://www.php.net

Re: [PHP] Array form processing

2010-06-29 Thread Ron Piggott
Am I on the right track? I don't know what to do with the second FOREACH ?php foreach($_REQUEST as $key = $val) { $$key = $val; echo $key . : . $val . br; if ( $val == Array ) { $i=0; foreach ($val) {

[PHP] stristr query trouble

2010-05-13 Thread Ron Piggott
I am not understanding why 'true' isn't the result of this syntax because $subjects equals: $subjects = Delivery Status Notification(Failure); Here is my syntax: if ( stristr( $subjects, Delivery Status Notifcation(Failure) ) ) { $TIRSFlag = true; echo true; }

[PHP] Parse question

2010-05-13 Thread Ron Piggott
If $message_body contains: $message_body=You are subscribed using u...@domain. To update; How do I capture just the e-mail address? Ron

[PHP] Array

2009-10-24 Thread Ron Piggott
The following line gives me an error message when there aren't any values in the array --- how do I accommodate this? Warning: Invalid argument supplied for foreach() foreach ($_SESSION['order'] AS $key = $value ) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] $_SESSION variables

2009-10-24 Thread Ron Piggott
Instead of doing: $_SESSION['order'][$reference]['quantity'] = 0; Is there a way to get remove that part of the array altogether? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SESSION variables

2009-10-24 Thread Ron Piggott
I am programming a shopping cart. So far I have used $_SESSION['order'][$reference]['quantity'] = 0; if the customer changed their mind about buying an item. Is there a way to remove the session variable altogether? Ron -Original Message- From: Ashley Sheridan

Re: [PHP] Array

2009-10-24 Thread Ron Piggott
To: a...@ashleysheridan.co.uk Cc: ron.pigg...@actsministries.org, PHP General php-general@lists.php.net Subject: Re: [PHP] Array Date: Sat, 24 Oct 2009 11:50:14 -0300 On Sat, Oct 24, 2009 at 7:59 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sat, 2009-10-24 at 06:57 -0400, Ron Piggott wrote

Re: [PHP] Array

2009-10-24 Thread Ron Piggott
AHH. The count() command does the trick. Ron -Original Message- From: Ron Piggott ron.pigg...@actsministries.org Reply-to: ron.pigg...@actsministries.org To: Martin Scotta martinsco...@gmail.com, phps...@gmail.com Cc: a...@ashleysheridan.co.uk, PHP General php-general@lists.php.net

[PHP] Rounding down?

2009-08-22 Thread Ron Piggott
: There have been over ### subscribers in 2009 type of scenereo. Ron

Re: [PHP] Rounding down?

2009-08-22 Thread Ron Piggott
Thanks; Amazing. Ron - Original Message - From: Ashley Sheridan a...@ashleysheridan.co.uk To: Richard Heyes rich...@php.net Cc: Ron Piggott ron@actsministries.org; php-general@lists.php.net Sent: Saturday, August 22, 2009 9:02 AM Subject: Re: [PHP] Rounding down? On Sat, 2009

[PHP] Array

2009-08-10 Thread Ron Piggott
How do I change this ELSEIF into an array? } elseif ( ( $page ) AND ( $page home_page ) AND ( $page verse_of_the_day_activate ) AND ( $page member_services ) AND ( $page member_services_login ) AND ( $page member_services_logoff ) AND ( $page resource_center ) AND ( $page network ) )

[PHP] str_replace

2009-08-08 Thread Ron Piggott
( $bible_verse_ref, 'bible_verse_ref', $text_message_template ); Ron

Re: [PHP] str_replace

2009-08-08 Thread Ron Piggott
Yes I did. Thank you for confirming this with me. Ron - Original Message - From: LinuxManMikeC linuxmanmi...@gmail.com To: Ron Piggott ron@actsministries.org Cc: php-general@lists.php.net; phps...@gmail.com Sent: Saturday, August 08, 2009 6:19 AM Subject: Re: [PHP] str_replace

[PHP] Fractions

2009-05-24 Thread Ron Piggott
Is there a way to remove the trailing '0'? Also is there a way to have the original fraction display (1/4), as well as have provision for 1/8 and 3/8 and 1/2, etc. display? Width: 2.250 x Height: 6.250 Ron

[PHP] Re: Fractions

2009-05-24 Thread Ron Piggott
($product_width_inch)] . quot; x Height: . intval($product_height_inch) . . $interval[$product_height_inch-intval($product_height_inch)] . quot; On Sun, 2009-05-24 at 18:03 -0400, Ron Piggott wrote: Is there a way to remove the trailing '0'? Also is there a way to have the original fraction

[PHP] Inline images with PEAR Mail

2009-05-10 Thread Ron Piggott
the context of the HTML e-mail: IMG SRC=email_cross.gif WIDTH=15 HEIGHT=20 / What additional step(s) am I needing to take? Ron

[PHP] SMTP mail server

2009-04-24 Thread Ron Piggott
How do I specify an actual SMTP server? (Like mail.host.com) This is what I have so far: mail($email, $subject, $message, $headers); I was to http://ca2.php.net/manual/en/function.mail.php and saw this syntax: mail ( string $to , string $subject , string $message [, string $additional_headers

Re: [PHP] SMTP mail server

2009-04-24 Thread Ron Piggott
I am on a shared web site hosting company. They are asking me to edit my PHP script to specify the SMTP using $aditional_parameters on the URL below. If this can't be achieved then I need to confirm this. Ron On Fri, 2009-04-24 at 20:04 -0500, Adam Williams wrote: Ron Piggott wrote

Re: [PHP] SMTP mail server

2009-04-24 Thread Ron Piggott
I am needing to put this into one specific PHP script. What would the ini_set look like? Ron On Sat, 2009-04-25 at 06:43 +0530, kranthi wrote: if u cant change the configuration settings of php.ini use http://pear.php.net/package/Mail alternatively u can also hav ini_set on top of every

[PHP] DATE / strtotime

2009-04-19 Thread Ron Piggott
Where $date_reference is 2009-04-18 the following code gives me a day of 1969-12-30. How do I get it to be 2009-04-17? $previous_date = strtotime(-1 days, $date_reference); $previous_date = date('Y-m-d', $previous_date); echo $previous_date; outputs 1969-12-30 Ron

Re: [PHP] DATE / strtotime

2009-04-19 Thread Ron Piggott
Thanks Chris. It has been a while since I used this command. Ron On Mon, 2009-04-20 at 13:27 +1000, Chris wrote: Ron Piggott wrote: Where $date_reference is 2009-04-18 the following code gives me a day of 1969-12-30. How do I get it to be 2009-04-17? $previous_date = strtotime(-1

[PHP] $_GET verses $_POST

2009-04-12 Thread Ron Piggott
How do I know when to use $_GET verses $_POST? Is there a pre defined variable that does both? Ron

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread Ron Piggott
Thanks. I got my script updated. Ron On Sun, 2009-04-12 at 22:33 +0600, 9el wrote: One thing you should know is that when you use $_GET, you'll be sending a little information about the particular page to the browser and therefore it would

[PHP] $_GET

2009-04-11 Thread Ron Piggott
I am moving my web site to a new host this weekend. I am working towards making the code compatible to the structure of the new server. I am getting a weird response which I don't understand At the very start of my index.php I have the following lines of code: foreach($_GET as $key = $val) {

[PHP] PHP and making a ZIP file

2009-03-26 Thread Ron Piggott
Does anyone know how to make a ZIP file using PHP? This is for an application where the files the user selected will be put into a ZIP file and then the ZIP file made available for download. Ron

[PHP] Pausing PHP scripts

2009-02-05 Thread Ron Piggott
Is there a way to pause a PHP script while it is executing? Ron

[PHP] Another matching question

2009-02-02 Thread Ron Piggott
How do I tell if words_from_the_well is not the value of $page (whether it is the entire value of $page OR within the value of $page) So far I have come up with the following, but it doesn't deal with when $page is only within the value of $page if ( $page words_from_the_well ) { Ron

[PHP] Matching

2009-01-30 Thread Ron Piggott
How do I determine the value oftx from this string? page/words_from_the_well_checkout/?tx=8UM53005HH344951Tst=Completedamt=0.01 My desired answer is: 8UM53005HH344951T I am trying to capture the serial number which follows tx= and ends immediately before the Ron

[PHP] PHP Imagefill

2009-01-18 Thread Ron Piggott
Is there a way to specify an already existing file to use as the background, instead of a specific color, such as what http://ca.php.net/manual/en/function.imagefill.php illustrates? Ron

[PHP] Days until Easter and Christmas

2008-11-15 Thread Ron Piggott
Is there a way to modify this code so it will always be the *next* Christmas and Easter? ?php $todays_date_seasonal_format = DATE(Y-m-d); $next_Christmas = DATE(Y) . -12-25; $next_Easter = date(D d M Y, strtotime(2009-03-21 +.easter_days(2009). days)); $days_until_Christmas = (

[PHP] Image Manipulation

2008-11-09 Thread Ron Piggott
Is there a way to find out the number of pixels wide and high an image is in PHP? Is there a way to resize an image using PHP? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parsing URLs

2008-10-27 Thread Ron Piggott
results would be: $web_page_access[1] = file $web_page_access[2] = 2 Any help please? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Half way

2008-10-22 Thread Ron Piggott
of the paragraph the half way character falls in. Visually it doesn't look balanced. I would prefer the ad display 4/7th of the way through the blog entry in those situations. Thanks for helping me. Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] RewriteRule

2008-10-12 Thread Ron Piggott
I am needing to pass 2 variables in a script I am writing. Does anyone know how to do this? http://www.domain.com/blog/1/2/ I know how to pass 1; I have no idea how to write a rewrite rule to pass the 2 as well. Thanks, Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] SESSION variables

2008-10-11 Thread Ron Piggott
in the initial file, index.php. I am NOT using frames. The web page is loaded all at the same time. Simply when index.php is done, it passes the baton to the next .php file to display the specific information the user is requesting. Any ideas / suggestions? Ron -- PHP General Mailing List (http

Re: [PHP] SESSION variables

2008-10-11 Thread Ron Piggott
... Any thoughts? Ron On Sat, 2008-10-11 at 19:59 -0400, Daniel Brown wrote: On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott [EMAIL PROTECTED] wrote: I am programming a blog. index.php sets up the layout for the web page. This includes the heading, left hand and bottom menus

Re: [PHP] SESSION variables

2008-10-11 Thread Ron Piggott
I did some more testing. The URL is the problem. Logins are from On Sat, 2008-10-11 at 19:59 -0400, Daniel Brown wrote: On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott [EMAIL PROTECTED] wrote: I am programming a blog. index.php sets up the layout for the web page. This includes

Re: [PHP] SESSION variables

2008-10-11 Thread Ron Piggott
Oops Logins are from http://www.rons-home.net/page/login-greeting/ Blog postings are from http://www.rons-home.net/blog/28/ with the word 'page' gone the session variable doesn't acknowledge the login. Ron On Sat, 2008-10-11 at 21:12 -0400, Ron Piggott wrote: I did some more testing

[PHP] UTF-8 errors in RSS feed

2008-10-08 Thread Ron Rademaker
. Thanks, Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] UTF-8 errors in RSS feed

2008-10-08 Thread Ron Rademaker
. Thanks, Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: UTF-8 errors in RSS feed

2008-10-08 Thread Ron Rademaker
Nathan Rixham wrote: Ron Rademaker wrote: Hi, I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35 0x20 Is there any way I can get

[PHP] Manipulating strings

2008-10-07 Thread Ron Piggott
I have a series of questions. How do I count the number of br / 's in a string? How do I add text in the middle of a string, let's say after the 3rd br / Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Manipulating strings

2008-10-07 Thread Ron Piggott
The first question was to find out how long the blog entry was (number of paragraphs.) I am wanting to put an ad in half way. Consequently there are going to be many br / 's before the one I am wanting to add text to. How should I handle this? Ron On Tue, 2008-10-07 at 20:55 -0500, Micah

[PHP] First 30 characters of a strong

2008-10-05 Thread Ron Piggott
How do I display the first 5 characters of a string? $string=abcdefghijklmnopqrstuvwxyz; my desired output is abcde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Checking for http://

2008-08-29 Thread Ron Piggott
How do I check if http:// is at the beginning of $web_site and if it isn't add it? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Breaking a line in two

2008-08-17 Thread Ron Piggott
Is there a way to add br midway through a string, following the first available space? Example: The cat jumped up high. This is 23 characters long. I want br added after the 12th character, following the first space: The cat jumped brup high. would be the desired output. Ron -- PHP

[PHP] Multiple words str_shuffle

2008-07-06 Thread Ron Piggott
to accommodate. An example: rise and shine Desired output: I S R E N A D E H I S N Thanks for your help, Ron $keyword might be $keyword = str_shuffle(strtoupper($keyword)); $buffer = ; for ($count = 0; ($count strlen($keyword)); $count++) $buffer .= $keyword{$count}. ; $keyword

[PHP] Scrambling a word

2008-07-04 Thread Ron Piggott
I am using PHP 4 I am trying to figure out how to scramble a word. Example: hello so the output might be elolh Any ideas? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scrambling a word

2008-07-04 Thread Ron Piggott
Is there a way to output the results with a space between each character? $shuffled = str_shuffle($str); On Sat, 2008-07-05 at 01:20 +0200, Stefano Esposito wrote: On Fri, 04 Jul 2008 18:52:49 -0400 Ron Piggott [EMAIL PROTECTED] wrote: I am using PHP 4 I am trying to figure out how

Re: [PHP] Variables in forms

2008-06-23 Thread Ron Piggott
the user the database was updated. The first thing that happens is the code you gave me below. How do I resolve this error? I get the concept of functions, but this isn't an area of PHP that I have used before. Ron On Sun, 2008-06-22 at 23:40 -0700, Jim Lucas wrote: Ron Piggott wrote: I am writing

[PHP] Variables in forms

2008-06-22 Thread Ron Piggott
to? Ron tr td valign=topfont face=times new romancenterChildren's Activities/center/td td valign=topfont face=times new romancenterChild's ABC's/center/td tdcenterinput type=checkbox name=component_1_package_1/center/td tdcenterinput type=checkbox name=component_1_package_2/center/td /tr -- PHP

  1   2   3   >