i have a text file contains ie:
# my_first_title #
my first subtext .
my second subtext .
my third subtext .
# my_second_title #
my A_first subtext .
my A_second subtext .
my A_therd subtext .
etc...
Question: How to convert it to XML using php? to :
<title> my_first_title </title>
<text>my...
I have the following series of strings ie:
$str = "7hi"
or
$str = "15hello";
my question: how to print :
" this is 15 and hello "
I tried :
<?
$str = "15hello";
$results = preg_split('/^[0-9]+/', $str);
echo "this is $results[0] and $results[1]";
?>
but it wont print $results[0] as 15 !! it...
i post this in: PC hardware - Hard drive issues forum
vaio laptop can't boot via cdrom, i installed linux on it using networking boot, I'm looking to recover the XP . is there any method to boot over network and reach some share to boot the recovery CDs?
thanks in advance .
vaio laptop can't boot via cdrom, i installed linux on it using networking boot, I'm looking to recover the XP . is there any method to boot over network and reach some share to boot the recovery CDs?
thanks in advance .
I have the folloing html file:
-------------------------
1:1 first record<br>
<br>
1:2 another one<br>
<br>
1:3 this one<br>
<br>
1:4 last record<br>
<br>
-------------------------
I need to insert the data of this file in a mysql DB table as:
insert into my_table ( foo, bar, mytext ) values...
I installed The cyrus-imapd package on FC3, then:
chkconfig --level cyrus-imapd on
chkconfig --list
I get:
cyrus-imapd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
but still the server does not have a service running on port 143 (imap).
any help ?
Thanks in advance
I have a large switch statement to compare the $id and $link variables with many different values, and want to use the following code in this statment:
--------------------------------------------------------------
$sql = "select * from my_table where my_id = $id and my_link = '$link' "...
I use the following code to store image in a database:
-------------------------------------
<?php
if (!$_POST['uploaded']){
?>
<form action="<? echo $_SERVER['PHP_SELF']; ?>" method="post"
ENCTYPE="multipart/form-data">
Upload:<br><br>
<input type="file" name="image"><br><br>
<input...
I have an html file:
------------------------------------------
<h1>title<br>
title_one</h1>
<h3>ONE<br>
TOW<br>
THREE<br>
FOUR<br>
FIVE<br>
SIX</h3>
</body>
-------------------------------------------
I used the following code to get a text like "ONE TOW THREE FOUR FIVE SIX"...
how can i print a part of the text starting form a given keyword? (Yahoo like search)
e.g.:
i have this text:
--------------------------------------------
This PHP function lets you easily highlight e.g. search results on a specific website. Just pass the words to highlight, the path of the page...
I have a text file :
-----------------------------
text1
some text gows here
another text
some text goes here too
etc ...
-------------------------------
I need to replace the White spaces in one character i.e
-----------------------------
#...
I used IP Masquerading to allow internet access to all computer in the lan, then I tried to prevent a workstation to access the internet :
iptables -A INPUT -p tcp -s 192.168.0.3 -j DROP
checking: iptables -L
target port opt source destination
DROP tcp --...
I have SuSE 9.0 box "ip : 192.168.0.2", i am trying to setup squid in this box. After the installation and configuration, i could connect to this server from another client "ip : 192.168.0.100" using port 3128, but only i had access to the pages in ServerRoot "/srv/www" , but i culdent access...
I removed the /bin/bash from fedora box, then i used the rescue mode to reinstall the rpm bash using nfs:
rpm -ivh bash..etc... --root=/mnt/sysimage
i get many errors
Anybody can help me how to reinstall this rpm in rescue mode?
Thanks in advanced.
I have a table contains 'id' and 'date' and I use accessdump software to convert an MS Access table to dump file "news.txt" the result was for example:
INSERT INTO news VALUES('2','20/01/2004');
INSERT INTO news VALUES('5','07/01/2004');
etc……
But what I need is: replace the " INSERT INTO...
I am trying to create PDF files using fpdf class, It works fine with any Latin text , but when I tried with another languages like Arabic "It is typeset using left-to-right fonts, Due to the nature of many fonts this doesn't easily translate to PostScript/PDF ", the result was strange...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.