Thanks for your help. it is working code but I am trying to copy all data. Open this link "http://nseindia.com/marketinfo/companyinfo/companysearch.jsp?cons=mll§ion=7" in your browser and then match the data with example.txt after that you can understand what i want to say.My question is how can i copy all data using php ? Thanks in advance.
I get exactly the same content if I save out the page as when I run the PHP script - a page with empty tables.
Ive been trying to send and receive emails for a gmail account and Im thinking I should just restart from scratch. Ive tried getting the url of each individual email by requesting Gmails atom feed (https://mail.google.com/mail/feed/atom[^])
but when I navigate to their url it just sends me to a login page. Does anyone know if you even can receive emails via the atom feed, or know of a gmail API? Or a better method than the atom feed?
I am brand new to PHP and i am trying to figure out how to get it to find all its dll. I have tired to modify the ini file telling it were to find the dll with the extension_dir command but still nothing.
When i went to uninstall and reinstall i came accross bigger problems with the dll, the code wouldnt compile.
All i am trying to do is set it up to connect to mySQL on my machine as well as DBase.
If anyone could give me any kind of information or maybe places were i could go look to find stuff out that would be much appreciated.
Better use XAMPP bundle which has php, mysql, apache and perl. Every will be ready in just on click install.
the document root will be htdocs inside xampp which will be the root folder of this install.
then open xamppcontrol.exe. start apache and mysql. open the browser. type http://localhost and select english. click phpmyadmin to create databases and tables. you can enable disable options in php.ini which will be present in the apache folder. and ... enjoy...
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
I'm new to PHP and I'm trying to build a simple library interface...
For that I need a html form that has a text input for "keyword" and another for "author"
I am hoping to split (a) "keywords" by the regular expression ";", and (b) the "authors" by the regular expression ";", to separate one author from another and then by the regular expression "," to separate the array into two separate arrays - Surname and Firstname (for the MySQL Table Author). I will also want to include in each INSERT INTO query, another variable (from the same form), being the ID_Number of the book or article...
So, I am thinking if I used preg_split(";") for both (a) & (b) to give an array, say for table (a) Keyword
I'd dearly love some feedback, I'm trying to teach myself this on the fly If I can work out the first one (with only one split) then I can work on the nested array(s) and splitting the $author array into the same. The alternative is one ugly XHTML form, which I'd rather avoid.
Hi, what you are trying to do it right. You can go with that pattern. You want some improved version then you can refer this link. http://php.net/manual/en/function.preg-split.php[^]
They have included good number of example also. If you have already refer that page and you din't get any example then mention it so we can explain it.
Thanks for the reply, seems I've scared some people off - all I need is to split the HTML variable strings by one regular expression ";", that is what I've requested people use when using the form (and if they don't they don't)...
I should not only get the results I want (in both cases, in each table, a row with both the array item (Author or Keyword) and the ID_Number? If so, that will be wonderful, that is PRECISELY what I need... That plus the feedback for each table should be good - I can always remove that later, first of all I have to get the code to work
$file = "output.txt";//file to write to
$f = fopen($file, 'w');//open file for writing
$date = date("G:i:s A");//gets the server time with the format: 24:00:00 AM
fwrite($f, $date);//write to file
fclose($f);//close file after writing
check the php manual for more formats for the date function
Last Visit: 31-Dec-99 19:00 Last Update: 7-Feb-23 22:15