I'm not an expert in PHP mail, but I think the mail server needs to be set in the php.ini file if using Windows. If Linux, then you'll have to do something different to use a remote SMTP server. Here are a couple of links that might help:
I have few urls like
I want to redirect it to http://www.mydomain.com/folder1/ page but I want to show on browser url the original urls likes
Please note that I do not have folders statecode1-folder1 and statecode2-folder1
Currently I use the below .htaccess which redirects but it changes the address bar
Initially i thought this could be the case as i was uploading around 12mb csv but then i tried with just 4kb but still getting the same error.
I don't really understand what could be the problem - the uploading works fine if i try using normal html form submit but as we don't want to manually browse the file - we decided to go this route and it's not working.. What a pain.
On the other hand why do you say it will not work for size in MB ? Is there any other auto upload way for such big files ?
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!