Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: hisham
  • Content: Threads
  • Order by date
  1. hisham

    time before re-run

    How to make a php code is capable of waiting for a given number of seconds before re-run again? Thanks in Advance.
  2. hisham

    convert a txt file to XML

    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...
  3. hisham

    split a string

    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...
  4. hisham

    recovery vaio, no cdrom

    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 .
  5. hisham

    vaio recovery without cdrom

    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 .
  6. hisham

    working with file

    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...
  7. hisham

    cyrus-imapd and port 143

    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
  8. hisham

    vps FC3

    I have a vps FC3 with fixed IP and webmin 1.220 installed. how can i add domains using webmin? Thanks in advance
  9. hisham

    create function !!

    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' "...
  10. hisham

    Upload Images from folder to Mysql Database with PHP

    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...
  11. hisham

    html file into string

    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"...
  12. hisham

    print part of text starting form a given keyword

    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...
  13. hisham

    Split a file into fixed-size pieces

    I have a text file "myfile.txt" size 15MB. i want to Split this file into fixed-size 5 pieces using split command. any help? Thanx in advance.
  14. hisham

    Edit a text file

    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 ----------------------------- #...
  15. hisham

    iptables &quot;not root&quot;

    How can I allow another user than root to run iptables command ?? TIA
  16. hisham

    prevent a workstation access the internet using iptables !!

    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 --...
  17. hisham

    squid problem !!

    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...
  18. hisham

    /bin/bash removed!!

    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.
  19. hisham

    Replace data into text file

    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...
  20. hisham

    create PDF files

    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 &quot;It is typeset using left-to-right fonts, Due to the nature of many fonts this doesn't easily translate to PostScript/PDF &quot;, the result was strange...

Part and Inventory Search

Back
Top