Are you able to get the other post data transferred if you comment out the file_get_contents line?
I can't test that as it's some external company site where we have to upload our data so that they can do what they are suppose to do with the data.
Well i use below code as initial request - so they receive the post data and they send us back id which we need to send along with the file -
$agent = "Mozilla/5.0";
$cURL_Session = curl_init();
curl_setopt($cURL_Session, CURLOPT_USERAGENT, $agent);
curl_setopt($cURL_Session, CURLOPT_POST, 1);
curl_setopt($cURL_Session, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL_Session, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($cURL_Session);
$postdata = array();
$postdata['profileName'] = 'tsunami';
$postdata['tName'] = 'abc';
$postdata['langCode'] = 'en_GB';
It using the same process - so am sure it's only file auto upload bit that's not working for us. As i said it works using normal html form submit.
All the while i use to develop PHP app from scratch. Now i thought using standard php framework will be good for better maintenance and support from my teammate. I wonder which PHP framework is good for enterprise application like ZOHO and which php framework is good for normal cms app.
CakePHP is a rapid development PHP framework that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.
Hopefully can help you!
Recently there was a problem with my comments posting form, any one post any thing. I want to restrict some of those can any one help me with this. people were misusing this.. were can i find some code ... to restrict some of the options... www.bharatdesi.com
in addition to what shamly said, I can also add a vote up/down on comments. This allows users to vote down comments that are offensive. Once a comment gets a certain number of down votes to up votes it is hidden, with an option to show it.
This allows your user base to monitor others. Yahoo News uses a system like this.
I have some xml files that contain quite a lot of data, several hundred, and I would like to be able to extract 3 or 4 named tags from each xml file in a directory. I have a script that can do this but I am a bit confused as to how to execute this. ideally it would be best to have a development environment or other method to convert the script into an exe, but just being able to run the script would be a good start!
What you are asking is not PHP related. But the reason you don't show up for just bharat is because your site doesn't have that word in it. All search engines use a very complex algorithm. That is not just based upon Url, but also on incoming links, domain trust levels, page age and to some degree content on the page.
You won't get in the top 10 pages just like that it requires a lot of work. And if you really wanna try you might want to hire a SEO (search engine optimizer) to go through the website you build.
This is not related to PHP. Anyway, if you are talking about Search Engine Optimization, there are lots of work to do. For internal page relation task please check your page title, meta keyword, meta description and the content. In your case of "Bharat" keywords, please remember to put it into your page title and meta keyword, meta description and the content. External link to your website with "Bharat" as anchor also important. Hope this help, at least some idea for you to start with.
Hello again everybody. I'm making a network game at the request of a friend of mine and I've run into some trouble. the thing is, in the game-cafe all the computers are networked and i need to send data from one PC to the other. I came onto the solution of using sockets for this, but now I'm in a bit of a complex situation. I need to create the classes for the host computer and the client computer. the client asks for a game while the host listens for connections and accepts them. the problem's are:-
1) When i read the python docs it said that the function socket.bind(address) binds the socket to an address. Is that address on the socket's host or on the client PC?
2) While the socket is listening for connections using the socket.listen(backlog) function, how will it know which connection is from the client PC, so that it can accept that connection?
3) The stupid problem....how exactly do I check the entire network for hosts that are currently listening for connections?
I would be REALLY thankful to anyone who can clear this up for me.
bind is for server to bind to a "well-known" port.
listen is the next function that gets executed by the server after binding to the port.
you should check out the Richard Stevens Network Programming books (vol 1) for a better explanation. although the information is explained using C, if you are a truly interested in learning; you will eventually learn it like a master. good luck,
I actually lost hope on that topic. Well in the months since i posted it i learned how to use sockets in c and java so i think if the python sockets are explained in C i will be able to easily follow on. Even better if the code is actually based on C sockets. (Preferably linux sockets) Thanks David
However, if i take out all the bits in bold, it works perfectly ....
The next thing is i tried a number of times to get my cookies to go back to the previous directory using things like "../" at the end but this doesn't seem to work ... what do i need to do to this script ..... Note: this file is 1 sub folder away from the root...
I have no idea where i should post this, so whatever.
here is a python program i made using vpython. I it must be downloaded before the program works. Also the program is made in python 3.1. It is a (very) innaccurate simulation of the milkyway.....mostly just created for the hell of it.