POST data to URL php
Hi, I'm just wondering how I can send POST data to a url in PHP (without a form) I'm going to be using it to send variable to complete and submit a form. Thanks ...
Hi, I'm just wondering how I can send POST data to a url in PHP (without a form) I'm going to be using it to send variable to complete and submit a form. Thanks ...
I'm trying to do MySQL fulltext search using the following query: SELECT * FROM files WHERE MATCH(title) AGAINST ($q) limit $limit The problem is, if any words under 4 characters are included in the search phrase than it ignores them. This is very bad for my search engine because a lot of possible things people will be searching for w...
$query = mysql_query("SELECT company.*, factory.* FROM company FULL JOIN factory ON company.n_id = factory.n_id WHERE company.n_id = '$n_id' AND factory.n_id = '$n_id'") or die(mysql_error()); Above you see my query. It gives me Unknown table 'comp...
Hello guys, i want to create a product selector like the one found here http://advisors.dell.com/advisorweb/Advisor.aspx?advisor=e539dfdf-439d-421c-8d4d-8a24a9ba314f&c=us&l=en&cs=19 i know i'll probably use ajax , jquery, php , mysql but i dont know where to start. please help me :( ...
I'm performing a small load test on my Centos PHP server, which is connecting to SQL server on Windows 2003. It's doing about 60 tps. Around 1-10 out of every 1000 connections fail when I start up the load with a "cannot connect to the database." However, I don't see any noticeable drop in performance. Does anyone know how I might go...
Will it be better if i add to mysql_real_escape_string also addslashes like that: $username = mysql_real_escape_string(trim(addslashes($_POST['username']))); And is there any need in this in password var: $password = md5(mysql_real_escape_string(trim($_POST['password']))); Also i read some topics about safe retrieving data from db....
Hey all, I've been having a hard time coming up a solution with this one. I'm hoping you all can help me out. Best described with an example: class Parent { public $nationality; function __construct($nationality) { $this->nationality = $nationality } } class Child extends Parent { function __construct() {...
I need a certain part of a URL extracted. Example: http://www.domain.com/blog/entry-title/?standalone=1 is the given URL. blog/entry-title should be extracted. However, the extraction should also work with http://www.domain.com/index.php/blog/[…]as the given URL. This code is for a Content Management System. What I've already com...
I want to post entries in my blogspot blog using php. But i just cant do it. I read the googlr blogger documentation but i just cant understant. Can someone please tell me in simple words how to create an entry in blogspot? ...
Take this string: Israel agrees to significant easing of Gaza blockade I want to return the capitalised words, separated by a comma, like this: Israel,Gaza I imagine it must be possible. Any ideas? ...
I have a contact form script, and I added a few fields to it, identical to the rest, but the new variables on submit give 'notices' of undefined index, and the variables do not populate. I grab them POST like this, $name = $_POST['name']; $website = $_POST['website']; $company = $_POST['company']; $addy = $_POST['addy']; $ema...
Hello there ! What's the best way of getting all ip's that are curently viewing my web page and show them like a list (on another page) and update when a client is leaving or entering on my page ? And this using html ,php, javascrip , mysql , and stuff like this. ...
I'd like to set up a configuration page for my Drupal module that contains a dropdown where the user selects one of the available views. Is there an easy way to obtain a list of all available views on the system? All I need is an array of all the views' names. ...
I have a problem with links testing locally using Apache with Windows. The final links have the following format: file:///C:/Documents and Settings/USUARIO/My Documents/xampp/htdocs/my_website/images/january/my_image.jpg The images do not show. However, if I directly copy the src from the img tag and paste it into the browser (Firefox)...
I want to change the IP of every request in a socket connection in php.(to prevent the host from blocking my ip if I sent large number of requests) Iam attaching my code below function httpGet( $url, $followRedirects=true ) { global $final_url; $url_parsed = parse_url($url); if ( empty($url_parsed['scheme']) ) { $url_parsed = parse_...
I have a database row whose type is "timestamp". It automatically populates each time a new record has been added with the time of that record's insertion. Right now for one of the records it holds the value: 2010-06-19 18:40:51 I tried to turn this in to a more user friendly format by: $timeStamp = $row['date']; $timeStamp = date( "...
please advise on the following, and if you were to do something different please let me know. with a c# app i am auditing conversations between cellphones. here's what happens: someone sends a text to my phone which is attached to my computer my c# catches the message and it forwards it to another phone number the person receiving the...
I need for my .htaccess file to take away the .php file extension and replace it with just a trailing slash. Also, I have a profile.php page which will normally be visited with a numeric querystring parameter, like "profile.php?id=3". So on top of replacing extensions with slashes, how do I make "profile.php?id=3" look like "profile/3/...
I can't seem to figure this one out. I have a validator-type script that validates certain files on my server (checks if exists, its contents, etc). I want it to run continuously with only one instance of it, not more. The current solution I have doesn't seem to work, I'm guessing due to timeouts (possibly other reasons too). For each f...
i am still deciding on the database schema, but i will have chats saved in a database table. the mysql db will constantly be updated. what would be the friendliest way to display the data from the database? should i just use php to do it? is there something easier? can soemone give me examples of code of how to display the data in a fri...