|
Can any body tell me please how to read and write any file in perl ? and on which site i can find some knowledge about perl ?
Thank You.
|
|
|
|
|
|
It can't be discribed in a word,maybe the book named Learning Perl will help you
|
|
|
|
|
if you have the files of config files of php+apache ,please email me,thanks
|
|
|
|
|
see here[^] and here[^]
mark_zxy wrote: please email me
CP doesn't work that way, responses are posted in the forums so that everyone can benefit.
|
|
|
|
|
Ive been tryin for awhile to get a simple webpage to display when I run my project and just cant seem to get anywhere. Obivously Im new to PHP. Can someone post me a link to a Hello World project so I can get started? Just something that echos out some text on a webpage.
Thanks
|
|
|
|
|
I am also new like you in php but may be this site can help you for improving your knowledge in php.
http://www.w3schools.com/PHP/DEfaULT.asP
|
|
|
|
|
|
I recommend installing xampp (& then turn apache service on using xampp control panel).
http://www.apachefriends.org/en/xampp.html
When you've done that:
-Go to localhost and run through basic security stuff.
-Make a php file "index.php" with the following contents:
<?php echo "hello world!"; ?>
-Save that in your C:/xampp/htdocs/yourfolder or whatever
open a browser and go to http://localhost/yourfolder/index.php
=
Hello world!
|
|
|
|
|
Hey Mar,
Thanks for your helpful post, I installed this XAMPP thing and it's weird!! How do you get to the Apache screen and setup a virtual directory to host a website??
|
|
|
|
|
edit text file in apache/bin/conf. then restart apache service.
|
|
|
|
|
|
The way i'd approach this in PHP is...
use fopen(url) to get the data from the URL.
Then I'd use the XML DOM parsing in PHP 5 to get out the information you need
Hope that helps
|
|
|
|
|
can you give me any example ?
|
|
|
|
|
How can i copy all data from one directory to other directory with the help of php ?
Example:- http://abc.com/data/ to http://cba.com/if/
|
|
|
|
|
|
Thanks for you help brother
|
|
|
|
|
Hi,
For my project I use the 'USPS' shipping method. It works fine and print a PDF response file with and given user details (by API request).
There is one problem that the 'PDF' coming from USPS test server and the file display sample 'USPS' shipping label with message “SAMPLE -DO NOT MAIL” . If the 'PDF' coming from USPS live server the above message does not display on the PDF file.
Please anyone help how to send API Request to live server and its PDF response file.
Thanks in advance.
|
|
|
|
|
|
i modified verilog.lang in /usr/share/gtksourceview/language-specs/ ,
and add
<keyword-list _name="Keyword2" style="Keyword">
<keyword>=</keyword>
<keyword>+</keyword>
</keyword-list>
but it doesn't work...
i replaced '=' with & # 6 1 ;
and '+' with & # 4 3 ;
it doesn't work too...
was there someone tring modifying the language definition of the gtksourceview ?
ps , i just can't highlight the special symbol...
|
|
|
|
|
|
In any language that has a library permitting TCP/IP requests.
Okay, so you know how you have getElementById and getElementByName available in javascript? Well, it seems there's no such luxury available in php. The task is a little more onerous, though not much.
First, you read the remote web-page as a file, using fopen.
Next you use regular expressions to extract the parts of the file that you want. After you've extracted the data you require, it's up to you to open your results.txt and append the data extracted from the web-page.
Here's a couple of links that should have enough to get you started.
http://www.drquincy.com/blog/get-remote-web-page-info-with-php/[^]
http://www.hiteshagrawal.com/php/html-scrapper-in-php[^]
|
|
|
|
|
$s=file('http://www.abc.com/d.txt');
$size=count($s);
$ud = fopen("yaka.txt","w");
for($x=0;$x<$size;$x++)
{
$line =trim($s[$x]);
fwrite($ud, $line);
}
I want to write in next line.how to do this.
Example :- data is in .txt file
12,54,45
78,87,96
23,54,64
and i also want in same format but i am getting like this....
12,54,4578,87,9623,54,64
What to do ? help me
|
|
|
|
|
udch wrote:
fwrite($ud, $line);
I may be rusty on my PHP, but I believe what you need to do is add a newline character to each line after you fwrite it. Perhaps something like this?
fwrite($ud, $line . "\n");
Adam Maras | Software Developer
Microsoft Certified Professional Developer
|
|
|
|
|
Thanks for your help brother but it is not working it is only adding
[] something like this may be space because it is not visible here.Thanks again for you help bro.
|
|
|
|