39,320 Topics
| |
Hi. I'm trying to make a site where people can purchase zip files. The zip files will be made on-the-fly. My question is: [B]how do I restrict access to the files? I need to make it where the zip file can only be downloaded once, and it can only be … | |
I have a registration form where I need to prevent people entering bad usernames. For example, people when they enter their username as virus, then the form should not be accepted. How can I prevent bad usernames in my Registration forms. Is there any function to do the same? Please … | |
Hi, [CODE]<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html> [/CODE] I have the code. Where would i save welcome.txt file. Will I save it on desktop or server side same directory as what i am currently working on? Thanks. | |
Hi,pleasure to meet you all.I wanna to ask how to write a javascript code to connect with php api authentication located at my server(eg. [url]www.mydomain.com/api/index.php[/url]). 1.I wanna put a javascript code to call the api authentication function at my website server so that other people can access through the api … | |
hi, how can i pervent from crontab concurrent run ??? thats mean when my crontab Take too long , with this crontab another crontab not runs... please help me ... best regards, amir | |
Hi, I am having problem in refreshing xml file.I have a flash file that is connected to xml file.When I insert or edit something the xml file does not update until I clear the cache of the browser.I tried to use [CODE]xmlLoader.load("myXML.xml?cacheBreaker=" + Math.random() * 500);[/CODE] but it gives me … | |
hi ! below is a simple html code which lets a user input a value and then passes it to a php program which runs a sql querry againt an oracle database displaying the result set. what I would like to do is to be able to offer a drop … | |
hi this is my first time posting i want to be able to view images using javascript and html the images are being recovered from a folder using a php script and passed on to the javascript unfortunately the image does not display on the html file but it displays … | |
Hi everyone, I'm new to php and I'm working on a project, it's very typical that when you type in a search box and press the submit button, it will link you to a table with minimal content, but upon clicking a list on the table, it will link you … | |
Ok I am stumped so bad. I am using a form to insert a topic and comment into a table and if the topic is new it creates a new table specific to that topic. So I pass the topic name through the url and Im trying to retrieve it … | |
Hi, I was reading on the net and could not find how to implement as loop something like twig's [CODE] <ul id="navigation"> {% for item in navigation %} <li><a href="{{ item.href }}">{{ item.caption }}</a></li> {% endfor %} </ul>[/CODE] I want to have idea of what is going on! | |
anyone please help me, whats wrong with this code: this is codeigniter, i can't upload file with this code/script: [code=php] class MUpload extends Model{ function MUpload() { parent::Model(); } function upload() { $data = array( 'my_file' => $_POST['userfile'], 'my_user' => $this->authniter->getUsername(), //this is user login name with my library 'authniter' … | |
Hello Everyone! I am unable to change permission of folders created on C-Panel with chmod('folderpath',0777); Please help on this. | |
Hi guys I am trying to create multiple landing pages populated dynamically with data from a feed. My initial thought was to create a generic php page as a template that can be used to create other pages dynamically and populate them with data from a feed. For instance, the … | |
Dear All, I have created a multi dimensional array and stored elements in that through while loop like $human = array(); and at every iteration the while loop will add elements like $human["IPI"]["Description"][] = $row; $human["IPI"]["link"][]= $link; but when i wanted to print this array contents in a table format … | |
Hi guys. I have a php script that reads some values off a website and prints to a file every second.. The thing is, the script is always ran in my browser and I don't like that. I want to write a c++ program that can run that script within … | |
I am new to php. I am trying to run a loop 5 times. Each time the loop runs I need to run a batch file and test the value of a query. If the query is > 0 exit the loop. Otherwise run a different batch file and continue. … | |
Hello Everyone , I`m trying to build MVC pattern using OOP PHP , please read the rest of the post to understand what I want exactly This is the homepage controller which extends the main controller [CODE]class Home extends Controller { function __construct () { parent::__construct(); } public function index … | |
I have been able to write functions but cannot get them to work. Many sites show you how to write them but not how to call them in your web programming. Can someone explain why this call does not work for me ? the function is: [CODE] <? php function … | |
Not able to upload files on server. It is working fine in local. I want to upload some files. In my previous server it was uploading without any error.. not in new server. I set folder permission to 777, still it is not uploading. I delete existing and create new … | |
hello! i have no knowledge of PHP at this time when i m writing this thread.my vacation are coming and i am eager to learn the PHP on my own means without any coaching institute.please help me by telling books for me and websites from where i can have a … | |
pls help i am beginner and i am trying to create a simple Guestbook but i got error "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /index.php on line 43" here is the code i use : <?php require ($_SERVER["DOCUMENT_ROOT"]."/komara/config/db_config.php"); $connection = @mysql_connect($db_host, $db_user, $db_password) or die … | |
Hello! Currently I have a form where the user can submit emails in a comma separated format to the $row in database $contacts. How can I set this up correctly so the user can email their contacts? As of right now the script emails everybody but just not in the … | |
cant figure out why i'm getting this error: Warning: implode() [function.implode]: Invalid arguments passed in C:\Users\Travis\Documents\choicegrid\dam_spp.php on line 67 [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php require_once('dom/simple_html_dom.php'); $url = "http://www.ercot.com/content/cdr/html/"; // The simple url $name = … | |
[CODE] if($rewrite) { echo "<p><a href=\"/blog-". $blog[0] ."-$clean_url\">" .$blog[3]."</a><br>"; } else { echo "<p><a href=\"". $blog_url ."?d=". $blog[0] ."\">" .$blog[3]."</a><br>"; }[/CODE] Hi Folks, I am a complete novice with PHP and I cannot get this routine to work. I need to change $blog_url to an actual URL - [url]http://www.mydomain.co.uk/blog_rec.php[/url] I … | |
Dear visitors, I found a site, they collect jobs from other jobs sites through rss feeds. How to collect records to MySQL database from rss feeds by using Php? . How to develop rss feeds by using Php and how to convert rss feeds into records of MySQL database? I … | |
Hello! I have this: [CODE] <?php $next_friday = strtotime("next friday"); echo "<select>"; // If you want to loop for 8 weeks for ( $i=1; $i < 10; $i++ ) { echo "<option>".date("m-d-Y",strtotime("+{$i} week", $next_friday)); } echo "</select>"; ?>[/CODE] It shows every friday and but all together. How would I modify … | |
I have created a report using NAVICAT Report Tool Report has an extension RTM . How..Do i run this report on Online web server.. | |
Hi, I want to insert and select the data from the same table.I am using following query to insert and select the data from the same table. However, I am not able to insert the data. Is there any method to do this? $sql=mysql_query("INSERT INTO users (name,ref_no) VALUES( '$name', (SELECT … | |
plse help me to create code for report of task having both options ytd and mtd |
The End.