39,320 Topics

Member Avatar for
Member Avatar for gurusubramaniam

Hi.. I want to run a php file every 5 seconds. So that i used shellscript file. But Shellscript file not accept php coding. Can i include php file into Shellsript file? or can i write the php code in Shellscript file?

Member Avatar for pritaeas
0
74
Member Avatar for ngchpg

I'm new to PHP and currently i face some problem in error as below Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING Below are my code. Appreciate if someone can help to point out the error and some suggestion Thanks a lot!! while($row = mysqli_fetch_array($result)) { …

Member Avatar for pritaeas
0
564
Member Avatar for ak47carbon
Member Avatar for pritaeas
0
78
Member Avatar for kn3rdmeister

I want to have a list of months and years when content was posted to my website. Example: /// **Archive** *July 2012 June 2012 May 2012 April 2012* /// Then, clicking one of list items takes you to a page with every post from that month. I know I should …

Member Avatar for pritaeas
0
666
Member Avatar for code739

hi all, i just want to ask if its possible to have a two or even more database connection in a php run application like db_connect---db1 fetch data db_connect--db2 fetch data db_close --db2 if its not possible. how can i get data from other database table appriciate youre answers.

Member Avatar for diafol
0
116
Member Avatar for harshm027

Hi, Is there a function that will express any given number in words. For example: if number is 1432 then this function should echo "One thousand four hundred thirty two". Thanks

Member Avatar for diafol
0
52
Member Avatar for Khav

Hi Guys I am currently working on an image upload script. i want to log user upload and record their ips. I worked on a script(its works) but i am not sure if it will be 100% reliable. Here is code that i though of <?php $ip = $_SERVER['REMOTE_ADDR']; $filename …

Member Avatar for pritaeas
0
168
Member Avatar for LastMitch

Hi, I'm having an trouble trying to printf the string. <?php $product_name = "pencils"; $product_price= 7.99; printf( "Product %f will cost %1.1f dollars.", $product_name, $product_price ); ?> The answer should look like this **Product pencils will cost $7.99 dollars** but instead it looks like this **Product 0.000000 will cost 8.0 …

Member Avatar for phorce
0
153
Member Avatar for johnnycho

My question requires a little background first: I'm working on a Web project where there are four theatres owned by a single company, so not only will the four theatres each need their own Website (each with its own unique branding), but the umbrella company will need one as well. …

Member Avatar for knssanthan
0
236
Member Avatar for adishardis

Hi all! Qick question, I have this variable below and I'm wondering if it's possible to Exchange the text in <th>Totalt</th> with a varible instead i.e. <th>$Totalt</th>? I couldn't figure it out? :-/ $table1 = "<div id=\"container\"><table id=\"table-3\" cellspacing=\"0\"><thead><tr><th>Totalt</th><th>Totalt</th><th>Benchmark</th><th>Differans</th></tr></thead><tbody>"; Should be simple enough, right... Peace Adam

Member Avatar for blocblue
0
121
Member Avatar for Arfa Maham

I want to make my own email portal as a project. How can I make it? Please help me... I need to compose mails and send these mails to different persons (including attachments). I also need to make inbox, outbox, drafts etc. for processing my mail. How can I make …

Member Avatar for diafol
0
74
Member Avatar for pancgom

Hi, I am looking for some help in adding a calendar to a form that i am building. Its much like a calendar when you book air tickets.. click on a calendar like icon and a pop up window opens select date year and month the details get into the …

Member Avatar for sahan1989
0
977
Member Avatar for engrjawad

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 2 I m getting this error while entering my query in the php code.. my code is function get_subject_by_id($subject_id) { global …

Member Avatar for broj1
0
62
Member Avatar for jamied_uk

i have a forum for uploading pics or other files to a root folder but its not working online on my hosted domain at jnetscripts.com it sais its working but no file is there, i chmod the folder root to allow writing and still does not work is there a …

Member Avatar for jamied_uk
0
872
Member Avatar for ElaineTeo

<form enctype="multipart/form-data" action="upload_file.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" name="submit" value="Upload File" /> </form> <?php // Where the file is going to be placed $target_path = "uploads/"; /* Add the original filename to our target path. Result is …

Member Avatar for ElaineTeo
0
1K
Member Avatar for aneeqtariq_143

i have a little problem in my website, i dont know where is the problem. i am create link of other website in my website by using this code $output .= "<b>Website: </b><a href='".$row["website"]."' target='_blank'>".$row["website"]."</a><br>"; but when i click on a website it does not open website. when i check …

Member Avatar for pritaeas
0
112
Member Avatar for vishalbandre

Currently i'm working on my own php-mysql with zend website project, i don't have to much time to work on developing my own cms so i am going to use TOMATOCMS - http://www.tomatocms.com, and nearby three months are required to develop my own, and after that i want to switch …

Member Avatar for veedeoo
0
127
Member Avatar for kaiwahl

I have a problem in a payment solution I have made. In this, I use ereg to extract a returned Transaction ID from the payment provider, and with PHP 5.3 this does not work anymore. The code used was: ereg('<TransactionId>(.+)</TransactionId>',$resultat_3,$c); I have tried to use this instead: (but it doesn't …

Member Avatar for diafol
0
166
Member Avatar for kutchbhi

I have only coded 2 sites till now, first one in plain php (wall of php intermingled with js, html , super messy) and the other in codeigniter(much better as far as separating display with logic is concerned) now I have to code a website for a friend (designer). The …

Member Avatar for diafol
0
113
Member Avatar for mariaceline_21

<br /> <b>Notice</b>: Undefined variable: firstname in <b>C:\xampp\htdocs\dl\index.php</b> on line <b>70</b><br /

Member Avatar for diafol
0
134
Member Avatar for mahlak

Hi I am using PHP to develop a web application. I want to send a mail report automatically from the server, without any user interaction. I tried in cron but not properly worked in my application. Is there any other way to send aoutomatic mail from server. Any one can …

Member Avatar for pritaeas
0
235
Member Avatar for gurusubramaniam

Hi... I want to send a mail automatically using cron job. Till i searched about that, there is only how to set the time and path of the file in cron folder. But i want to know about how it will run?

Member Avatar for cereal
0
5K
Member Avatar for davy_yg

I would like to write new books in books.xml then print them on the screen. I already successfully able to write the new book to books.xml yet, unable to print them on the screen. Why is it ? <?php // Tambahkan buku baru dengan menggunakan DOM $dom = new DomDocument(); …

Member Avatar for veedeoo
0
262
Member Avatar for anu013

Hello All, I want to make a computer storage (online) Web Application PHP/MySQL... I mean where we can keep all the data of computer and all its configuration, upgradation, problem occured, solved problems and alerts for warranty expires.. Can any one give me the example link where i can gain …

Member Avatar for anu013
0
206
Member Avatar for gargg321

Hey folks, I am fairly new in the field of PHP. I have to prepare a module that will show the CPU utilization, current processes, memory utilization and disk quota of a remote system when asked on a PHP page. I am clueless about how to proceed in this matter. …

Member Avatar for parisssss
-1
613
Member Avatar for bo0ga

Basically I want the user to select the current month and day that they left a review, click submit, then given a random coupon code. I want the coupon code, the month they selected, and the day they selected to get inserted into the database. HTML Page <form action="redeem.php" method="post"> …

Member Avatar for diafol
0
175
Member Avatar for DJ-DOO

Hi! I'm hoping someone can help me here, I've been looking at highcharts as a way of graphing my dynamic data from my sql db....What I've come up with so far is below, it's strange, it seems correct, the data is correct, however, I can't get my chart to render, …

Member Avatar for pritaeas
0
439
Member Avatar for ak47carbon

what is frameworks, whats the benefits of framework which is famous framework how to use it , what is cakephp i know what is cms but i didnot know when a person ask me in intervew which version of cms are u using,?i always make my own cms for website …

Member Avatar for pritaeas
0
202
Member Avatar for newtohacking1337

My error is: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c05/h02/mnt/76361/domains/alltechnologyrecovery.com/html/login/models/class.user.php on line 11 I am trying to fix up this website, but I know barely any php.. Here is my code: <?php /* UserCake Version: 1.4 http://usercake.com Developed by: Adam Davis …

Member Avatar for sepp2k
0
440
Member Avatar for shpetim.haxhiu

Dear all, i am new to php and i am trying to update db table through php form ... there is a form that takes inputs from php form and then update the db ... Below is the update php page ... <?php $host="localhost"; // Host name $username="lpr"; // Mysql …

Member Avatar for DarkMonarch
0
208

The End.