Forum: PHP Aug 14th, 2009 |
| Replies: 1 Views: 206 Go for php curl, it will solve your problems.
And one more thing, please don't ask me more because I don't know much about curl. ;) |
Forum: PHP Aug 14th, 2009 |
| Replies: 5 Views: 425 me too had the same problem but I gave full path.
Try giving path from a variable preceded by $_SERVER['SERVER_NAME']; thus by making full path?
Hope this will work for you.
(thought your... |
Forum: PHP Aug 14th, 2009 |
| Replies: 1 Views: 337 sorry i am not sure about the code (pear package for date)
but i used to change the timezone as following
<?Php
if(function_exists('date_default_timezone_set')){... |
Forum: PHP Jun 25th, 2009 |
| Replies: 10 Views: 17,435 use php pear to send email.
its works fine for me.
check these links
http://www.tuxradar.com/practicalphp/15/5/2
http://www.tuxradar.com/practicalphp/15/5/3 |
Forum: PHP May 30th, 2009 |
| Replies: 25 Views: 3,601 :) happy to hear that ur problem is solved now.
did understood what is `` for?
don't know what is the actual definition. But it works like escape character. ie like we use slashes in string.... |
Forum: PHP May 29th, 2009 |
| Replies: 25 Views: 3,601 try this.
$insert="INSERT INTO `table` (name) VALUES ('$value')";
U have given "table" as table name and "name" as field name.
Both have special meaning in sql. So if u are using it u need to... |
Forum: PHP May 27th, 2009 |
| Replies: 25 Views: 3,601 Happy to hear that ur problem was partially solved
Try this
$insertSQL = sprintf("INSERT INTO $table (id,name) VALUES (%d, %s)", $ch[0], $var);
$Result = mysql_query($insertSQL) or... |
Forum: PHP May 26th, 2009 |
| Replies: 25 Views: 3,601 Sorry, this is working perfect here
Check this i just uploaded a sample the file i was using here. http://peipians.com/tempDomains/test.php
try removing isset() and all those,
just echo... |
Forum: PHP May 25th, 2009 |
| Replies: 25 Views: 3,601 while using radio button
u need set values for each radio button to know which one is clicked
dont forget to give same name and id for all radio buttons
<form id="f" name="f" method="post"... |
Forum: PHP May 25th, 2009 |
| Replies: 3 Views: 411 plz dont get me wrong, i think u already know this.
but what to do this is the answer.
mysql_query("INSERT INTO table_name (member, img1, img2,img3) VALUES ($var1, $var2, $var3, $var4)"); |
Forum: PHP May 25th, 2009 |
| Replies: 7 Views: 675 Also paste the code for "timezone.php" |
Forum: PHP May 25th, 2009 |
| Replies: 7 Views: 675 Are you getting any error or incorrect date?
if it is incorrect date then setting the default timezone as below will solve ur problem
date_default_timezone_set('Asia/Calcutta'); |
Forum: PHP May 25th, 2009 |
| Replies: 3 Views: 411 Mr. DaveyMoyes
you havent inserted the filename/path in to database while uploading. I this is why the file name is not showing.
Try inserting those img names to corresponding columns. |
Forum: PHP May 25th, 2009 |
| Replies: 25 Views: 3,601 Me too a beginer in php,
i checked ur code but cant understand some parts of it comletely.
as i do php in php4 style and u in php5 style
First i dont understand why u are using checkboxes... |
Forum: PHP May 25th, 2009 |
| Replies: 3 Views: 1,611 U need to specify the table structure to solve this.
The above code will work only if all the field types varchar or similar types, i mean those cannot be an int.
if that is not ur problem try... |
Forum: PHP May 25th, 2009 |
| Replies: 17 Views: 908 Hope your code is not showing any errors.
Also i think u havet tried alerting the "req.responseText" after satus 200
if not try that.
check whether u r getting required output in correct format.... |
Forum: PHP May 25th, 2009 |
| Replies: 10 Views: 696 Actually i didnt get u completely.
Anyway im just trying to help you
you can get username in many ways like using url (GET method), by creating session, cokkies etc or by getting it from database.... |
Forum: PHP May 25th, 2009 |
| Replies: 5 Views: 1,207 Use a simple javascript function to do this.
and you just need to invoke a method in event 'onsubmit' in form tag
While calling check whether any field is null or not
if 'null' then the function... |
Forum: PHP May 21st, 2009 |
| Replies: 2 Views: 2,875 Problem solved. The second method is working.
Using .htaccess
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 2 days"
ExpiresByType image/gif "access plus 60... |
Forum: PHP May 20th, 2009 |
| Replies: 2 Views: 2,875 How can i add expires header to images?
i used the following in css file and php respectively
<?php
-----------CSS------------------------------------------------------
ob_start... |
Forum: PHP Apr 29th, 2009 |
| Replies: 24 Views: 1,915 Mr. Aamit
I think you are taking the long route.
This is actually very simple. I think your need is just to update a pic and it has to be shown there without refreshing the whole page.
Like we... |
Forum: PHP Apr 29th, 2009 |
| Replies: 7 Views: 2,111 The problem was solved temporarily, thats why I didnt updated the thread.
It was solved by getting write permission to that directory.
For this I mailed the admin of hosting company specifying my... |
Forum: PHP Apr 29th, 2009 |
| Replies: 3 Views: 810 Thanks I will check GEDCOM as recommended by Mr. Airshow.
Can I use the tree view in GEDCOM to my web page.
I just got a GEDCOM application.
Also I think I cannot use Binary Tree in my case as... |
Forum: PHP Apr 27th, 2009 |
| Replies: 3 Views: 810 I need to make a family tree. But i don't know how to make make it.
I asked someone and done some searching in Google.
I found three ways as follows
1. Using Database (foreign key to represent... |
Forum: PHP Apr 24th, 2009 |
| Replies: 5 Views: 419 I experienced the same problem but it was in windows server, the same code works perfectly in another linux server.
The problem was I was not having enough permission to make file upload. Also... |
Forum: PHP Apr 23rd, 2009 |
| Replies: 4 Views: 411 I think you have problem with table elements.
me too tried like once, to me it is little difficult to do it with table (th,tr,td............).
But it became very easy when made with div and css... |
Forum: PHP Apr 23rd, 2009 |
| Replies: 2 Views: 339 http://www.phpfreechat.net/
http://www.google.co.in/search?hl=en&q=ajax+chat+using+php&btnG=Google+Search&meta=&aq=f&oq= |
Forum: PHP Apr 23rd, 2009 |
| Replies: 2 Views: 339 Do you mean ajax chat? If so
check this link
http://www.php-development.ru/javascripts/ajax-chat.php
You can get many like this by googling "ajax chat using php" |
Forum: PHP Dec 15th, 2008 |
| Replies: 2 Views: 661 i think you have to use
date_default_timezone_set('yourtime zone');
for me it is as follows
date_default_timezone_set('Asia/Calcutta');
then call date(); |
Forum: PHP Dec 15th, 2008 |
| Replies: 7 Views: 2,111 I tried to do this in asp, then also same problem, later i found that i have no write permission for that directory. hope giving write permission will solve my problem. But for that i have to... |
Forum: PHP Oct 26th, 2008 |
| Replies: 2 Views: 762 www.symphonydoha.com/admin/admin.php
is the page.
only uploading is done here, so this is the only code. i have removed only the else part of 'if'.
Thanks. |
Forum: PHP Oct 26th, 2008 |
| Replies: 7 Views: 2,111 no warning or error is shown, the program stops there.
Thanks. |
Forum: PHP Oct 26th, 2008 |
| Replies: 2 Views: 762 can anyone tell me how to upload a file iis server I use the following code now but it doesn't work in iis server.
$fileName = basename( $_FILES['fileName']['name']);//filename from post
... |
Forum: PHP Oct 25th, 2008 |
| Replies: 7 Views: 2,111 Thanks for your reply
the directory already exists and the server is IIS6
also my file size is less than 2mb
server api is ISAPI
please check the following link for more details... |
Forum: PHP Oct 24th, 2008 |
| Replies: 7 Views: 2,111 <?php
$fileName = basename( $_FILES['fileName']['name']);
//count current total files
$dir_path = "snaps/";
$count = count(glob($dir_path . "*"));
$newFileName = $count . ".jpg";
... |
Forum: PHP Oct 23rd, 2008 |
| Replies: 8 Views: 1,611 Thanks for your reply, I don't have the login details for my DNS ("Edit DNS Zone") configuration
I only have username and password for my cpanel. Then it seems to be a difficlut job for me. Also i... |
Forum: PHP Oct 23rd, 2008 |
| Replies: 8 Views: 1,611 Thanks a lot,
can you please tell me where to place the httpd.conf
or
i'll have to place http.conf with contents as above in my root folder?
i'm attaching directory structure of my domain.
... |
Forum: PHP Oct 23rd, 2008 |
| Replies: 6 Views: 684 $host="localhost"; // Host name
$username="root"; // Mysql username
$password="1234"; // Mysql password
$db_name="main_db"; // Database name
$table_name = "my_table"; // name of the table
//... |
Forum: PHP Oct 23rd, 2008 |
| Replies: 8 Views: 1,611 |
Forum: PHP Oct 22nd, 2008 |
| Replies: 7 Views: 659 $qry = mysql_query("SELECT * FROM data_table WHERE page='$page'",$dbh);
while($info = mysql_fetch_array( $qry )) {
$total++;
}
if($total>7)
{
something...
} |