How do I make the first letter of a variable be a capital?
I am using this with names. If the user types "ron" I want to save it
as "Ron".
Thanks for your help.
Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How would I do this for a street address?
If the user gave me their address as "12 george street" I would like the
results to be 12 George Street.
Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am writing a form right now.
I would like to make the checkbox an array variable. The first part of
the array is the component reference, the second part is the package
reference. What name would you assign to it that I could use in
processing the form in the PHP script this posts to?
Ron
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 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
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
&g
I am trying to scramble individual words and/or phrases.
When it is a phrase I would like to keep the letters of each word
together, with a space between each one. The code I have so far is
below. I use PHP 4.4.7. The code below is fine for a single word; it
is phrases that I am now trying to
Is there a way to add
midway through a string, following the first available space?
Example:
The cat jumped up high.
This is 23 characters long. I want added after the 12th character,
following the first space:
The cat jumped up high.
would be the desired output.
Ron
--
PHP General
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
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
I have a series of questions.
How do I count the number of 's in a string?
How do I add text in the middle of a string, let's say after the 3rd
Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rsten wrote:
> For the second question:
> http://us.php.net/manual/en/function.strpos.php
> http://us.php.net/manual/en/function.str-replace.php
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> Ron Pig
I am programming a blog.
index.php sets up the layout for the web page. This includes the
heading, left hand and bottom menus.
The content is loaded by the command:
include($filename);
the $_SESSION variables aren't available to files like blog.php . The
session variables only work in the
ssion
variables ...
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 t
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 t
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
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, v
I am tweaking a blog application I have programmed. I am trying to
display a Google ad half through the blog entry, at the first available
.
The code I use so far is:
$half_way = strlen( nl2br(stripslashes($entry))) /2 ;
$ad_position = strpos ( nl2br(stripslashes($entry)) , "" ,
$half_way );
e
I would like to parse the URLs in the values after the domain name.
The URLs are the results of mod re-write statements.
Example 1:
http://www.domain.com/page/file/
The desired results would be:
$web_page_access[1] = "file"
Example 2:
http://www.domain.com/page/file/2/
The desired resu
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
Is there a way to modify this code so it will always be the *next*
Christmas and Easter?
";
echo $days_until_Easter . "";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In one of my scripts I have
where
$saved_message_title is 1 Peter 5:7 "Cast all your cares on Him for He
cares about you"
--- note the "
When this is displayed on the screen $saved_message_title reads
1 Peter 5:7
I am assuming the " closes the value=
How may I echo this to the screen and
When I upload a file into an application I am writing with the HTML form
command
and then give the PHP command
move_uploaded_file( $userfile , $destination_file_name);
the owner of the file is 'www'. Is there any way I am able to
automatically change the owner of the file to my FTP login iden
Is there a PHP function which verifies a valid date has been entered
(-MM-DD)? Ron
Is there a way I am able to use the DATE command to convert January to
1, February to 2, etc.
I have one more date based question.
I have a month field ( $month ) and a day field ( $day ) being submitted
by a form.
I have a third field to be used as a date reminder for the information
which was submitted as part of the form. It is a reminder to complete a
task for the date was which was
I have used the strtotime command to calculate a week ago (among other
things) with syntax like this:
$one_week_ago = strtotime("-7 days");
$one_week_ago = date('Y-m-d', $one_week_ago);
How would you use this command to figure out the last day of the month
in two months from now --- Today is Oct
I am creating a form right now. I am using the html SELECT tag.
The most number of days in a month is 31
I want the output to be ## based on the value of
$selected_day_of_month variable. For the days of the month where the
number is not selected the output I am desiring is
1
2
etc.
to be g
I am wondering if any of you know what it is called when letters come up
for the user to key in for
form entry verification. Ron
Is there a way to specify a font when using imagejpeg ? Ron
How do you make .gdf files for use with imageloadfont ? Ron
I created a form that I have on my site --- it is at
http://www.actsministrieschristianevangelism.org/development_tools/textart/details.html
If I run this script it creates a graphic image of the text the user
typed in with the appropriate options selected
I would now like to have the image creat
That is the function I was looking for. Thanks. Ron
On Sat, 2006-01-21 at 23:47 -0500, [EMAIL PROTECTED] wrote:
> Try:
>
>mysql_query("INSERT INTO table VALUES ('$variable_1', '$variable_2');");
> $auto_increment_variable = mysql_insert_id();
> ?>
>
>
> -TG
>
>
>
>
> = = = Original
101 - 133 of 133 matches
Mail list logo