39,326 Topics
| |
Hello, I need help with htaccess and a sub domain. I have a site I developed with ci 2.1.3 My folders structure is: c:\sites\mysite c:\sites\mysite\application c:\sites\mysite\system c:\sites\mysite\public_html\index.php c:\sites\mysite\public_html\assets In the public_html folder I have the htaccess file: RewriteEngine On RewriteCond $1 !^(index\.php|assets|images|robots\.txt|captcha) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ … | |
I want to know the code for file handling function write(). Its should add a text in file from user input and shoe it to the screen in new window.Kindly if any one know the code reply here its urgent. Thanks. | |
Hi there, I am developing a site for a recruitment agency, and I have now come to the point where I need to develop a ranking system of some kind to pull the best candidates for a particular job out of the database and display it or notify the candidates … | |
i have created a database with username,age,contact,email.now i want a column in which we can show whether the user is active or not.what sholud we do?if we create a column named as status,what sholud be type of column?boolean or binary or something else...??? i am using php to edit delete … | |
* how to set random string that refresh after every 5 min itself without reloading the webpage in php ? | |
how to implement ssl in wamp 2,apache 2.2.22,php 5.3.13 ,step by step procedure | |
I am not able to insert data from CSV file with "¤" Character. Please help me to solve the problem. Thanks a lot in advanced. CSV File: FirstName¤LastName¤City¤Year |$| Bill¤Gates¤NW¤2013¤|$| David¤Beckham¤London¤2010¤|$| PHP Code: $csv_file = "Contacts.csv"; $csvfile = fopen($csv_file, 'r'); $theData = fgets($csvfile); $i = 1; do { $insert_csv = … | |
How to read **550 MB** XML file in php? I couldn't put data in php file like: $xml =<<<EOT <?xml version="1.0" encoding="utf-8"?> <data> ..... ... </data> EOT; In addition, when i did from command line, it "**kill**" the process. *Any idea ?* | |
i want to do something like this how do you do it? <?php $meat="cow"; <script type="text/javascript"> document.write($meat); </script> ?> | |
I would like to get **all** Equipment values. *I have used DOM Document.* It is reading **ONLY LAST Element**. *Equipment Id: 28*. I need all three. Thanks in advanced. XML File: <?xml version="1.0" encoding="UTF-8"?> -<Physical> <Catalog> </Catalog> -<Installed> -<Equipment> <Id>26</Id> <Ref>Tew12</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>160</CharacteristicValue> </Characteristic> -<Characteristic> <CharacteristicName>Tilt</CharacteristicName> <CharacteristicValue>30</CharacteristicValue> </Equipment> -<Equipment> … | |
Hello, I am developing a site with CI 2.1.3 I have a blog module, in this blog I have a form to post a comment. I am calling this form inside a view with: `echo Modules:: run('blog/comment');` When I submit this form with ajaxForm, or refresh the page, the values … | |
How to add textbox values from a database table depending on user's choice from a combobox",in php wampserver can anyone help me..? | |
I am doing a simple server to capture the incoming SMS with the Gammu, but i a beginner in PHP. After the cofiguration, how do the php page use the GSM device? How do configure the Gammu to capture the incoming SMS? | |
I am searching for an e-commerce solution that integrates with paypal and wordpress wich can show the remaining balance for the payment for a customer. I sell services and sometimes my customer needs pay with multiple payments, within multiple days. For example : My typical price for my service is … | |
help. all of a sudden, UPLOADING of files in all my forms didnt work. i tried may things as i had googled it. i tested the code, $_FILES seemed to be empty. > free-up /tmp folder > check php.ini; increase post_max_size, upload_max_filesize, memory_limit > restart apache after each configuration > … | |
Hi, I try to do the examples in these pages but none works. When i run, it shows "Error" word on the status bar of my browser. What do you think it doesn't run? Thanks [url]http://www.w3schools.com/PHP/php_ajax_xml.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_database.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_responsexml.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_livesearch.asp[/url] | |
Hello, I wonder how to create a floating link like in: [Quick links](http://www.grinova.com) I am just thinking about changing the name into Contact Us for example or something else. | |
Hi again, Using a web script to show the servers I have, which are working here: http://www.bradlyspicer.net/ServerStatus-master/index.php Trying to add it into wordpress. And this is happening: http://www.bradlyspicer.net/server-status/ Saying it is down and saying N/A etc. If I go to http://www.bradlyspicer.net/wp-content/themes/twentyeleven/index_server.php it works. If I go to http://www.bradlyspicer.net/server-status/ it doesn't. … | |
<?php session_start(); echo 'POST: '; print_r($_POST); echo '<br />SESSION: '; print_r($_SESSION); require("DBconnect.php"); $user=$_SESSION['username']; $pass=$_POST['password']; echo $pass; $salt = dechex(mt_rand(0, 2147483647)) . dechex(mt_rand(0, 2147483647)); $password = hash('sha256', $pass . $salt); for($round = 0; $round < 65536; $round++) { $p= hash('sha256', $password . $salt); } echo $salt; echo "...."; echo $p; $qry="update … | |
registration.html <!<!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>Register</title> <script type='text/javascript'> function refreshCaptcha() { var img = document.images['captchaimg']; img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000; } </script> </head> <body> <fieldset> <legend>Registration</legend> <form name="register" action="register.php" method="post"> <table width="510" border="0"> <tr> <td colspan="2"><p><strong>Registration Form</strong></p></td> </tr> <tr> <td>Username:</td> … | |
I am trying to update the shirtnumbers in table crew, by the ID from the .php page before. <?php include('conect.php'); $page = (isset($_GET['page'])) ? $_GET['page'] : 1; $startPoint = $page - 1; $data = "UPDATE crew SET shirtnumber=$POST['shirtnumber'] WHERE ID=<?php $_GET['ID']?>"; $query = mysql_query($data); $data2 = mysql_fetch_array($query); $rowCount = 0; … | |
Dear Respected Members/Users, I Cannot add/insert mysql last insert id in the third table. Kindly please help me out in adding the para_id into the last insert query. I have demonstrated in the Image file which will help alot in getting my point. Waiting for response. thanks. ![94fea611ba93443aecd1d5f13b6b82c8](/attachments/small/2/94fea611ba93443aecd1d5f13b6b82c8.gif "align-left") | |
i developed a system in xampp 1.7.2, and now i run it in xampp 1.8.2 (lastest version) i got this error Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\ hint: in xampp 1.7.2 no error anybody can tell me why? | |
I have an array which contains data as: array(name,contact1,e_mail ,reference_type,resume_source,current_employer,highest_degree ,skill_set,track) now i want to create an excel sheet(.xls file). In short I want to generate a reropt for query. Array is nothing but the query result. I want to just put this data rows into excel sheet. How can … | |
Hi! I have a table with few thousand records on few pages in a simple html table.. I made a search function that works fine apart from one thing... It displays only one result in a table (which is great cause it means it works!).But... I was wondering is there … | |
<html> <head> <title>Form Sheet</title> <style> </style> <script type="text/javascript"> </script> </head> <body> </body> <form name="formsheet" action="grade.php" method="post"> <table width="300" border="5"> <tr> <td>FirstName:</td> <td><input type="text" id="fname" name="fname"/></td> <tr> <td>SurName:</td> <td><input type="text" id="sname" name="sname"/></td> </tr> <tr> <td>Age:</td> <td><input type="text" id="age" name="age"/></td> </tr> <tr> <td><input type="radio" id="gen" name="gen" value="Male"/>Male <input type="radio" id="gen" name="gen" value="Female"/>Female</td> … | |
help. all of a sudden, UPLOADING of files in all my forms didnt work. i tried may things as i had googled it. i tested the code, $_FILES seemed to be empty. > free-up /tmp folder > check php.ini; increase post_max_size, upload_max_filesize, memory_limit > restart apache after each configuration > … | |
Hey guys, just a quick one. Got this: $memmath = $memcache + $memfree; $memmath2 = $memmath / $memtotal * 100; $memory = round($memmath2) . '%'; Which finds the % free. How would I find the % used? Been messing with algorithms and I'm screwed in the head now | |
hello guys i have created the below codes. the first one is the mysql select statement which works fine when i echo. the second one is an html/css table i created. i am stuck to the point where i can merge both of them so that i get a nice … | |
Please I want to know. between ASP and PHP, which is better for web development? |
The End.