Please help me to cut the string like below
$CutMe="Hello world, I like chickenOnMyGrill";
Take the first 25 character then display allow those WORDS, if the last word is not complete then...
Hi Experts
Using the PHPMailer code below, I got the email with messages but not the attachment. Any suggestions?
Thanks
<?php
require("class.phpmailer.php");
// Instantiate your new ...
Following is the first statement in the index.php file of a website:
ini_set('display_errors', E_ALL);
After checking the manual in http://ca.php.net/ini_set, I want to mak...
Hi Experts
I am trying to update a single Mysql table with values from a large dynamically created form.
The form is long but very simple containing only the following fields:
id - Nume...
What is the syntax for a GET parameter in a URL for a parameter that is a checkbox where i want it to be checked.
when it's a post, the form tag is:
<input name="P1" type="checkbox" value...
I have an app that is placing some text on an image using freetype fonts. I often dont have any control over the quality or completeness of fonts used so I would like to take words like DarĂ¡...
Hey,
I've been using PHP for a few years properly now and there's one thing that's bugged me for a while and I need somebody to give me a hand.
Now, let's say I have a link like this: pa...
Currently working on grabbing a future timestamp and subtracting it from the current time to display a live on refresh countdown timer. It should display days, hours, minutes, seconds until th...
Is it possible to have a 4 level combo box dynamicaly populated from a mysql database using php and AJAX.
Would be great to have a code for that but I'm not asking that much, a good tutoria...
How do you convert a password that has been put into md5 format back into regular text to allow for a safe login? I am trying to login to my site, but the password has been set to md5 format,...
I have a string sort of like this : -
<property>
asdadsadada
</property>
<property>
asdadsadada
</property>
<property>
asdadsadada
</property>
<property>
asdadsadada
</property>
...
I am tearing hair out.... I wish to use a php file to display an image. Now thats a pretty simple exercise I understand - using the php file as the src element of a img call.
Like: <img sr...
I want to display to the the user this date will expire in 1 day 2 hours 30 min and 45 seconds. or what ever the time is..
Here is the script that I have currently, There may be a better w...
Hi all,
Im using cURL to log into a website and then store a session cookie.
Is there a way I can access that session cookie from another PHP script (in the same dir etc.) Ive tried:
$...
hi
i am new to Php. is there any PHP GUI editor available in market for Php.
like droping the controls and align the controls etc.
because now i am doing only through the html code. ...
Hi, i was wondering if it is possible to make a messagebox in PHP? Of not, should i make it in JAVASCRIPT? I tried that, but then it won't work.
Anybody any suggestions or ideas?
I need to remap an array..
and I have specific array keys I need to rename...
how do I change the name of a key in an array?
hello everyone.
i would like to get the width and height of images to be able to display images properly. i used the getimagesize() function of php. but there are instances where this fai...
Hi there,
I've checked all posts in regards to checking if JavaScript enabled or disabled on the remote computer. I would like to solve that task my way but I do not understand why it's not w...
I have a login/password system set up in PHP to gain access to the interface for a content mamangement site.
Every page in the admin area checks for the existence of a Session variable. If...
i have some code that checks for website addresses in a block of text. if it finds an website address, it wraps <a></a> tags around the address like this:
<a onclick="javascript:window.ope...
I'm trying to convert a Perl function to PHP, I get a Fatal error: Unsupported operand types on line that starts with $rank.
I think that is because $total is actually an array but not sure...
Dear All,
I am using a PHP script to upload images to a server and insert the location and filename into a MySQL DB. However, I would like the files to be renamed if possible. Ideally the f...
Hi,
I use the following code to add an embedded image to an email message, but the image isn't included in the email....please help....
my code:
$mail = new PHPMailer();
$mail->AddEm...
Hello,
Can anybody give me a simple way of inserting a user input data for example a choice from check box button, into database in form of array.
TQ in advance for your answer.