39,323 Topics
| |
I created a php script: [ICODE]#!/usr/local/bin/php <html><head><title>PHP Test</title></head> <body> <?php print( "Hello World<br />"); ?> </body></html> [/ICODE] created an htacces file [ICODE]AddHandler cgi-script .php DirectoryIndex index.html index.php [/ICODE] changed the permission [ICODE]chmod 711 hello.php chmod 644 htaccess [/ICODE] This does not work: [url]http://xyz/~username/hello.php[/url] By making the hello.php to hello.txt the … | |
Can somebody plz tell me why this function of php now() doesn't work properly. Someday it doesn't work properly like I have date validation that compares two dates one of server and another of user given date. But today it doesn't compare so results were null. So can anybody tell … | |
Here is the code that counts all the image files from a group of folders in the binary folder. The problem is that when it counts the file, if i have 1 file in the first folder(88x31) and another one in a second folder (120x60) it will count 3 instead … | |
Hello, [LIST] [*]I want to protect my external javascript(and css also) from outside people, who steal my javascript. [/LIST] [LIST] [*]but this is impossible using client-side language. [/LIST] [LIST] [*]so can anyone tell me a method to [B]hide external javascript(and css) by using sever-side language???[/B] [/LIST] thank you | |
I am new to PHP so please explain to me like you would to a child ^_^. I am trying to write a simple php script and keep getting this error: Parse error: syntax error, unexpected T_STRING in /home/alertsfortraders/www.addictedtotrading.com/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 14 [code=php] <?php $wpusername = $_POST['wpusername']; … | |
Hi everyone. I am trying to figure out if it's possible to write a PHP or JavaScript that changes the background image every time the browser refresh button (or F5) is pressed. I haven't seen it done this way, however I have seen it done for banners and other images. … | |
Hi, can you pl help me on the submission of a form when submit button clicked the form content have to send as a mail. | |
| Hey everyone I'm new to php and I was wondering what does the * mean in php? I tried to search for it on google but it searches for anything if I put in a * Is that what it means in php? anything? |
I want to Learn PHP and MySQL, plz tell me from where I have to start and is there any good software for php and mysql sites creation ? | |
Hi, I'm creating an upload section that limits users to upload the following file types: .pdf .zip .rar .doc .jpeg .gif When getting the type for .pdf files, it comes up as: application/force-download and for .rar files it comes up as: application/x-download If I do a check that says: if … | |
I'm creating a control panel and am currently developing the user authentication system. Is using php sessions the most secure method of doing this? I know I can't use SSL encryption or any of those fancy things because not only does it cost more money, but I'm going to use … | |
Below are the codes for viewing the database and updating the database.... There are some errors which i m not understanding and i am confused... Please help me out Code for viewing the database is below. [[CODE]<html> <body> <?php $con = mysql_connect("localhost","root","manish"); if (!$con) { die('Could not connect: ' . … | |
I have adauga_tablou_db.php who contain this php script: [CODE]<html> <head> <link rel="stylesheet" href="/style/MYSTYLE.CSS" type="text/css"> <meta name="verify-v1" content="52vQ/BcSvsm6MlAsynpikrmlr2b9x0Q5Xam38QWYKcc=" > </head> <body> <table bgcolor="#ffffff" width="100%" height="100%" align="center" border="0"><tbody valign="top"><tr><td width="100%" height="100%" align="center"> <form name="formular" action="adauga_tablou_db.php" method="POST"><table><tbody valign="top"><tr><td><p>Nume tablou</p></td><td><input type="text" name="nume_tablou" /></td><td></tr> <tr><td><p>Numar inregistrari</p></td><td><input type="text" name="numar_inregistrari" /></td><td></tr> <tr><td></td><td><input type="submit" name="adauga_tablou" value="Adaugă"/><input type="reset" name="reset" … | |
i have write a html code in dreamweaver i just make built in table in a form, by 4 coloumn and 2 row 1st row for the titling of part in row below each coloumn of second row containing 3-4 radio button that each radio button representation a value number … | |
I am looking for away to Generate Name a from Text Document on Server. Example would be: If I save a text document in the server like at [url]www.example.com/txt/names.txt[/url] How would I be able to generate 1 name at random? | |
1) Simplicity. Mysqli is object oriented. It's simple to use. You create an object and pass your database information to the constructor. And you're all set. [CODE] $mysqli = new Mysqli("localhost", "username", "password", "database"); $query = $mysqli->query("YOUR QUERY"); $row = $query->fetch_object(); echo $row->result; [/CODE] 2) Speed. Mysqli is newer and … | |
When members upload a picture to their profiles if the extension is .jpg, or .png everything is fine; however, if the extension is all uppercase .JPG or .PNG, the photo still uploads but doesn’t display. What could be causing this? I’ve pasted some code below but I’m not sure if … | |
hello pls somebody help me with this,i am trying to use a session to insert in to the database a user_id of a user who is posting a topic in to the topic table to act as a foreign key in the topic table. but i kept getting 0 in … | |
I've just launced a site and members sign up and create profile pages. We are discovering if they type the "&" symbol and/or other symbols like "<" it results in a catchable fatel error when you try to go to that members profile page. Please Help! | |
hi all, i had a php page which contains a list of images in a table. When i click on submit button i those values should be inserted into database. I need this by using ajax. I had tried something but i am not getting values inserted into database. so … | |
We have three different accounts on our website that members can sign up to but one login page. How can I set it up so when a user logs in they are taken to the correct account based off their user id? Right now when someone logs in they are … | |
I am having a problem with uploading an mp3 file on my site. It works fine in firefox but not in IE and I cant figure out why. Here is the code i have in the tracks.php file: [CODE]if(Footprint::$Errors->Count() == 0 && $inpAction == "Upload") { //create new track Footprint::$DB->SQLCommand … | |
I am looking job board php script...any one know please, must be free... Thanks! | |
can anyone tell me how to use the Select = "selected" option for a simple dropdown. for example when someone chooses c it will have a code like <option selected="">c</option> (am I doing it right, well if you got a firebug some site with dropdowns offers that option) so can … | |
Hi, I need help passing variables in php. I have an html page describing a job with an id number(jobdescription.html). -when the user clicks on a submit button, I want to open another html page (jobsubmit.html) with a form and have the job id autofill into a form field named … | |
Hi, I have a small question. I am developing a php code and it has nested if else statements and it has like 7-8 nested if and else statements. I am looking to reduce the nested if else to reduce the complexity of understanding the code. Is there a better … | |
Sorry not to formely present my self but I'm in need. I need to insert the following code: [CODE]<?php readfile('http://output94.rssinclude.com/output?type=php&id=136641&hash=61b747f31efc47d0a66790b2fe8d8f1b')?>[/CODE] on my web site it is a php code rss feed. Problem is I am using xtreemhost.com for my hosting and they support php but not this exact code for … | |
Hi everyone, So i have the following code which is used so i don't have to have .php at the end of my files and also more importantly to view members profiles by having there username after my domain. Unfortunately if the user has a space in their name you … | |
Hi There I may be asking a question about something that is not do-able, but, here's my question Does anyone know if it is possible to let a visitor to my website upload a file to my server, without using the normal form file upload? maybe upload with ftp. I … | |
Hello everyone, I am doing a login form in ExtJS + PHP, but it does not work. (authentication failed each time) . Here's the code: ExtJS part: [CODE] <script type=text/javascript> Ext.onReady(function() { Ext.QuickTips.init(); var loginForm = new Ext.FormPanel({ url: 'login.php', title: 'Login to goodTalk', frame:true, bodyStyle:'padding:5px 5px 0', width: 252, … |
The End.