Search Results

Showing results 1 to 40 of 41
Search took 0.07 seconds.
Search: Posts Made By: cancer10 ; Forum: PHP and child forums
Forum: PHP Mar 20th, 2008
Replies: 1
Views: 2,180
Posted By cancer10
I want to insert records into multiple tables at one go, I am doing this in the following way, is this the correct way of doing? If not, what is the better way?




mysql_query("insert into...
Forum: PHP Mar 16th, 2008
Replies: 1
Views: 1,760
Posted By cancer10
I have a timestamp column in a mysql table.

Using PHP, how do I convert the timestamp format which is "YYYY-MM-DD HH:MM:SS" into a format like "March 16 2008, 08:41 am" ?


Please help


...
Forum: PHP Mar 16th, 2008
Replies: 1
Views: 707
Posted By cancer10
Hi,

I came up with this problem last night.

I have a URL http://www.mysite.com

How do I fetch the folder name that was supplied in the URL.

For example:
Forum: PHP Mar 8th, 2008
Replies: 3
Views: 664
Posted By cancer10
what does ABS do?
Forum: PHP Mar 8th, 2008
Replies: 3
Views: 664
Posted By cancer10
If you have a column, of data type = INT, with the following numbers
as separate rows.
1
3
4
5
7
10
Forum: PHP Mar 2nd, 2008
Replies: 9
Views: 2,565
Posted By cancer10
Will this function prevent my users to insert php tags into the db?

Like <?php phpingo();?> etc?
Forum: PHP Feb 27th, 2008
Replies: 9
Views: 2,565
Posted By cancer10
Thanx ryan for the detailed explanation. Appreciate it.

So you think both the functions "get_magic_quotes_gpc" and "mysql_real_escape_string" are being used in all professional forums to prevent...
Forum: PHP Feb 27th, 2008
Replies: 9
Views: 2,565
Posted By cancer10
what does your function do?

Plz explain
Forum: PHP Feb 27th, 2008
Replies: 9
Views: 2,565
Posted By cancer10
Hi,

This is an interesting question (in my humble opinion).

I am trying to create a forum in PHP. So there is a "Post a new Thread" link, clicking on which would open a textarea field for...
Forum: PHP Feb 4th, 2008
Replies: 2
Views: 1,564
Posted By cancer10
Hi,


I am new to PHP oop. I was wondering when and why should we use the following:

1) Public
2) Protected
3) Private
4) are there any other???
Forum: PHP Dec 10th, 2007
Replies: 1
Views: 624
Posted By cancer10
Hi,

I have this question in my mind and have been searching for its solution for days.

A forum (developed in PHP/Mysql) which gets 10,000 hits per day. Which of the following connection would...
Forum: PHP Nov 14th, 2007
Replies: 3
Views: 1,845
Posted By cancer10
Hey,

I was wondering if there is/are any drawbacks/limitations of php over other web languages?


Thanx
Forum: PHP Oct 10th, 2007
Replies: 0
Views: 617
Posted By cancer10
Hello,

If you have used phpmyadmin, you might have noticed while creating a table there are few optional fields asked by phpmyadmin along with the table name

like

tablename | Datatype |...
Forum: PHP Aug 17th, 2007
Replies: 1
Views: 5,767
Posted By cancer10
Hello,

I run multiple domains/sites on my linux and windows server. I know there is a php.ini files that comes with the php installation package. But I have heard that there is a way to create a...
Forum: PHP Jul 12th, 2007
Replies: 8
Views: 3,674
Posted By cancer10
and how about restoring the db?
Forum: PHP Jul 12th, 2007
Replies: 8
Views: 3,674
Posted By cancer10
Hi

Does anyone know what is the simplest way to backup a database using the mysqldump function in php?


I have googled a lot and the codes i have found are very hard to understand and most of...
Forum: PHP Jun 22nd, 2007
Replies: 1
Views: 610
Posted By cancer10
How do I restrict all php sites (which are located on my server) not to consume more than a specified amount of CPU?

FYI, I run Linux CentOS 4.4 with Apache



Thanx
Forum: PHP Jun 9th, 2007
Replies: 2
Views: 853
Posted By cancer10
Hey


Does anyone knows how do I replace a " (double quote) in a string with nothing

I tried the following but does not work

$message = str_replace(""","",$_REQUEST['txtMessage']);
or...
Forum: PHP Jun 4th, 2007
Replies: 1
Views: 3,568
Posted By cancer10
Hi,

I was wondering if the BCC in the header accepts multiple recipient as in the example below?

$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .=...
Forum: PHP May 24th, 2007
Replies: 1
Views: 7,431
Posted By cancer10
Hello,

I am trying to send an email through php using the mail() function but getting the following error:

Warning: mail() [function.mail]: SMTP server response: my-server-name-here...
Forum: PHP May 11th, 2007
Replies: 3
Views: 10,479
Posted By cancer10
PHP - Converting IP to Country

Hello,

Is there any function/pre-made scripts in php which can tell me the name of country based on IP?


For example: If I supply an IP 132.162.138.139 then...
Forum: PHP May 9th, 2007
Replies: 2
Views: 3,535
Posted By cancer10
Search for a string in a variable---

Is there a way to find a particular string in php.

For example:

I want php to echo "Found" if the word "sports" in found in this url...
Forum: PHP May 6th, 2007
Replies: 3
Views: 6,566
Posted By cancer10
ok, see the code below


<?
$rsQry = mysql_query ("select * from tblCustomer");
$arrQry = mysql_fetch_row($rsQry);
?>
Forum: PHP Oct 7th, 2006
Replies: 1
Views: 1,434
Posted By cancer10
Hello,

I want to convert a 1024 x 786 wallpaper into thumbnail in PHP

Wots the code for it?


Thanx in advance
Forum: PHP Sep 27th, 2006
Replies: 2
Views: 1,740
Posted By cancer10
If I want my users to download a .zip or .exe file the command is

<a href=filename.exe>Download</a>
or
<a href=filename.zip>Download</a>

This will ask the visitors where to save the file on...
Forum: PHP Sep 20th, 2006
Replies: 3
Views: 1,089
Posted By cancer10
Included a file that has been encoded by an encoder, just wanted to know if there is any free ones,


Thanx
Forum: PHP Sep 19th, 2006
Replies: 3
Views: 1,089
Posted By cancer10
Is there any good and free Encoder for PHP?

URL plz?
Forum: PHP Jul 11th, 2006
Replies: 4
Views: 1,425
Posted By cancer10
Thanx


Problem solved, Plz close this topic
Forum: PHP Jul 10th, 2006
Replies: 6
Views: 19,580
Posted By cancer10
And wot this code will do?
Forum: PHP Jul 10th, 2006
Replies: 4
Views: 1,425
Posted By cancer10
See, I am using the following PHP code to generate a PNG image file

<?php
// create a 100*30 image
$im = imagecreate(100, 30);

// white background and blue text
$bg = imagecolorallocate($im,...
Forum: PHP Jul 9th, 2006
Replies: 6
Views: 19,580
Posted By cancer10
Does any of you know how to mask a URL in php?? Like the one you see in free URL redirectional services (http://www.shorturl.com)

I mean I have a url like http://www.my-server.com/

which will...
Forum: PHP Jun 29th, 2006
Replies: 1
Views: 1,849
Posted By cancer10
OK I attached an WYSIWYG-Editor, however I am unable to get the data on the rich text box to another page using PHP, can anyone solve it plz?


Thanx a ton in advance :)
Forum: PHP Jun 18th, 2006
Replies: 7
Views: 1,712
Posted By cancer10
This error comes when u r starting a session after any HTML tags, plz start the session at the veery top of the page
Forum: PHP Jun 18th, 2006
Replies: 3
Views: 3,160
Posted By cancer10
Dude you forgot to register the session, follow this code

$_SESSION['email'] = $email
session_register("email");
Forum: PHP Jun 18th, 2006
Replies: 7
Views: 34,405
Posted By cancer10
Pass the header before any HTML tags or else it would show errors
Forum: PHP Jun 18th, 2006
Replies: 12
Views: 3,990
Posted By cancer10
Try

header("location: http://server-to-redirect.com");

pass this above any HTML tags or else it would show errors
Forum: PHP Jun 13th, 2006
Replies: 1
Views: 1,924
Posted By cancer10
Hello,

Is there any way I can prevent simultaneously multiple downloads from my site with PHP? I mean I want a user can download only 1 file at a time, the second file can be downloaded only after...
Forum: PHP May 22nd, 2006
Replies: 4
Views: 2,109
Posted By cancer10
The following code is used to set a cookie that will expire after one hour

<?php
setcookie('cookieName', 'cookieValue', time()+3600, '/');
?>


if I want to set a cookie that should never...
Forum: PHP Apr 28th, 2006
Replies: 3
Views: 1,814
Posted By cancer10
Actually this is my code

<?
session_start();

echo "Logging out ".$_SESSION['userid'];

header("location: tussu.php");

?>
Forum: PHP Apr 28th, 2006
Replies: 3
Views: 1,814
Posted By cancer10
Is there any other function in PHP that can be used for redirecting a page

I use the following

header ("location: index.php");


But it generates the following error:

Warning:...
Showing results 1 to 40 of 41

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC