Jump to content

areeb

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by areeb

  1. Thanks a lot Sir for writing out this Code ..But actually, I am new to PHP :)If I have a Text in the variable named $text, lets say,$text = "This is a badword which has to be replaced";then how can we use functions get_bad_words() & replace_bad_words() to replace the bad words ...I have gone through ur explanations and have understood what exactly have been done .. but how to use the fuinction
  2. Hello,I have a Shoutbox, and I want to have a bad word censer. i.e. the bad words should be automatically replaced with the words specified.Currently I am using Badwords insides the PHP File. I am using this. // Defining an array$badword_array['badword1'] = 'replace1';$badword_array['badword2'] = 'replace2';$badword_array['badword3'] = 'replace3';// And using this, to Replace Bad Words from the Text i.e $messageforeach($badword_array as $insult=>$ok){ $message = eregi_replace("$insult", "$ok", "$message"); } However, if we need to edit the Badwords etc, then we need to edit the PHP File itself. :)Can we have the possibility that, we have a MySQL Table having two feilds i.e. badword and replace.e.g.badword / replacebadword1 / replace1badword2 / replace2and so on .....The PHP Script should look for the bad word in the "badword" feild, and if anu bad word occur then it shoukd use appropriate replacement, as mentioned in corresponding "replace" Tables :)Please Help.
  3. OK ... so how to go for a member area ?I mean to create an area, where only members can download. While Guest can only view files. Member's data will be stored in MySQL, and I know how to do that ...I only need help on, where only members can download. While Guest can only view files.Thanks ....
  4. Ok, Sir, I admit that I will limit my Downloads, but please I want such type of scripts :)I just dont want a FREE Download area because obviously one makes a website for earning. One way is to make a premium area where only paid members will come. But I want my site to be free, and yet I want to earn revenue. I hope u have understood what I mean.So I am responsible for limiting of Downloads etc, but can I have any help on any such script :)Thanks
  5. Ok I agree, but the point is that I will only use trusted Ad Services such as one by Google Adsense etc.If u visitor doesnot want to click on Ads than its upto him. :)Can someone please tell me a possible code for this ?
  6. Hello all ..I am looking for creating a Download Area.My Aim to create such a page e.g. if a user wants to download a file as abc.mpg than first a Adverstisement should appear on the page, and the user must Click on the Advertisement and after Clicking he will be given with the actual File.If he does not click on Advertisement than he should not be given the file ..IT will be definitely possible in PHP.So how can we do this ?Thanks
  7. areeb

    Tables to CSS/div

    No Problem Sir
  8. areeb

    Tables to CSS/div

    OK, Thanks, but what about that 3 Rows and 4 Column thing ?How can we do that in CSS ?
  9. areeb

    Tables to CSS/div

    Okay, I have two Question.I have a website which is based on Tables. I want to restructure my website to XHTML, CSS and DIV Based. My First Question is that is there any Software which can perform this action ???Someone told me that we can convert HTML to XHTML using Microsoft Frontpage, by applying XML Setting .... What about otherz ?Second QuestionI have a Tables, lets say having 3 rows and 4 columns >>> 12 Boxes having some values etc.If I want to create the same thing using CSS, Can we do It ???I dont want Tables to exist in my site.Thanks
  10. Thanks , I have used that PHPZip before but it was giving errors.Now I will try PCLZip.The code which u have given is for extracting files from a Zip Archives.What I am asking is to create a Zip File.Lets say I have a Folder named "data". When the Scripts runs, it should ZIP those files into a file and then offer me a link to download this archive :)While going through the Documentation, I have known this will be good >> <?php include_once('pclzip.lib.php'); $archive = new PclZip('file.zip'); $v_list = $archive->create('file.txt,data/text.txt,folder'); if ($v_list == 0) { die("Error : ".$archive->errorInfo(true)); }?> Now this will create an archive named file.zip with the two files and one folder in it .... Right ??Now what should I do so that this file can be downloaded ??? Thanks
  11. areeb

    Spam Protection

    Hello allI have a Guestbook on my site at >>>www.areebonline.com/guestbookI am using Viper Guestbook for this.Since one month I am getting Spam hits on my guestbook. Everyday it enters 2-3 Spam entries in my Guestbook.Although there is an option to limit Spam in the Guestbook (By limiting the time required between two entries) but that actually works with a constant IP Address.The type of spam which I receive is such that one entry is from one IP Address and next one is from another one. This makes the Guestbook think that the second entry is by another person. Does any one have any solution to this Problem
  12. OK, but we need the EMBED Tag, otherwise Netscape users cannot see anything Insertion of Embed Tag actually makes the problemAny Solutions ?
  13. I wanted to ask whether there is any PHP script which can actually create and extract Zip files, once they are uploaded to the server.Well, Extraction of Zip files is possible using cPanel.The important thing is the creation of any compressed file e.g. Zip or Tar etc.Lets say, I have a folder in my site abc.I want such a script, which when executed, gives me abc.zip so that I can easily download it, instead of using FTP
  14. Well hotmail was just an example.I have also tried it with Gmail and Yahoo, and everywhere it is ending in Junk/Bulk Mail :)Adding to safe list is useless, because I want to use it an an autoresponder.I mean, if someone, filled the contact form on my website, a Thank You email will be sent to the person, who filled the form.Now every person has a different email address, so everyone will not add the address to the safe list Reconfiguring Mail Server.I am using a Web Host which uses cPanel,can we reconfigure it ?If yes than how.Sorry to ask this but I am not too good in dealing with emails :)I checked the mail, and the email contains the same headers which I used
  15. areeb

    help in polling

    the function imagecreate() needs GD Library.If you are getting this error than it means that GD Library is not installed on your system.You can download the GD Library for free from this site:www.boutell.com/gdInstalling GD Library might not be easy for you if you are a beginner :)It seems that you are running the files on your Local Computer.Try using your webhost, as most Web Hosts do have GD Library installed on their Computer.If you dont know whether GD Library is installed or not, simply use this PHP Code for this.Run this file, and you will know whether GD Library is installed or not.<?phpif (function_exists('imagecreate')) { echo "GD Library is enabled <br>\r\n<pre>"; var_dump(gd_info()); echo "</pre>";} else { echo 'Sorry, you need to enable GD library first';}?>
  16. areeb

    easyphp help

    OK, I will be careful next time.
  17. areeb

    Opening php

    As stated by real_illusions, u need a Server as well as PHP installed.If u have a PHP-enabled WebHost than upload ur files there. and than run ur PHP Files there ..U will get an output in that case ...However, a better method is to install a Server and PHP on ur own Computer ...Since u are a absolute Newbie so it will be very difficult for u to configurte everything ....The best option for u is to download a free PHP, Apache Installation Kit.There are many such installation Kits available .... I think that Easy PHP will be suitable for u at this stage ..it is a 4 MB Executable file, which can be installed just like any other software e.g. Dreamweaver .... Inside the Easy PHP Directory, there is a directory known as www ... just place ur PHP Files in that directory , and than they can be openned ....Easy PHP comes with the auto-installation and auto-configuration of :1) PHP2) Apache3) MySQL4) phpmyadminDownload Easy PHP from :www.easyphp.orgOnce u get use to PHP, than u can switch over to XAMPP.XAMPP offers more options e.g. 1) Apache web server, 2) MySQL, 3) PHP, 4) SQLite, 5) Perl, 6) FTP-Server7) phpMyAdmin.Check out this page on HotScripts for more Installation Kits, but I think that Easy PHP will be best as far as ur skill level is concerned http://hotscripts.com/PHP/Software_and_Ser...Kits/index.html
  18. Hello all ...I have a website which is basically HTML 4.0.1.I have a Shockwave Flash Navigation Menu named menu.swf , and I am using the following Code to add to the site ....This Code was actually created by Macromedia Dreamweaver ... <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='170' height='368'> <param name='movie' value='menu.swf'> <param name='quality' value='high'> <embed src='menu.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='170' height='368'></embed> </object> The code works fine in the browser, but when I validate it using W3's Validator, it says Validation failed as there is no Tag named Embed ....Will my code work without Embed tag :)What should I do ...is there any error in my Coding ??
  19. Hey Nice Idea to remove the Banner Typr Ads .... Thanks ..but obviously this is not a solution of Pop Ups ..
  20. U mean to say that there is nothing wrong with the Coding ...but why website email is ending up in Spam Folder ????I mean in hotmail address I get emails from a number of websites, e.g. Hotscripts, Resource Index, and many many more, but they come directly to my Inbox ...Some-one told me that ur email ends in Junk Mail, either if :1) It has some risky words2) If u are spamming3) If ur SMTP is not known ...Surely, option 1 and 2 are out as I am doing neither of the two ...so is the reason of SMTP ???
  21. Hello, all ...I have created a HTML Form Mail.It is working fine, and the mail is being succesfully delivered but the mail is ending in the Junk Mail of my hotmail Here is the Code of my Form Mail ...I have excluded almost everything, and am just including the portion which actually sends the mail..Please Note that the message sent in the email is in HTML Format .. <?php // after the form processing has been done and the emails have been validated.// Now I will define the headers and mail to be sent ..$message = "An HTML Message";$to = "myemail@hotmail.com";$subject = "Feedback about ur Website";// Now Setting the additional Headers$headers = "MIME-Version: 1.0\r\n";$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";$headers .= "To: Areeb <myemail@hotmail.com>\r\n";$headers .= "From: My Visitor <visitor@gmail-or-any-other.com>\r\n";// Now sending the mailmail($to, $subject, $message, $headers);?> Thats the end ..This mail, is ending up in the Junk Mail :)Any Possible solution ??
  22. areeb

    easyphp help

    Well, if u use PHP than u must know that u need some kinda software, which can be used to test ur PHP Files locally.So when u have created a PHP File, u can run that file on ur own computer, and fix any errors before u finally upload it to ur webserver ....In order to process PHP, u need a Server ...Easy PHP has got Apache Server, just like most cases of PHP ..All u have to do is to double click the Easyphp.exe and launch the Program ..It will continue to run in background,and u can run ur PHP Files, and will parse them for u.Does that answer ur question ?If not , than tell me again ...Regards:Areeb Qaisar[link=http://areebonline.com/]www.areebonline.com[/link]
  23. Hello all ..Is there any PHP Script available, which can be used to monitor whether the Website Server is Uptime or it is Down ...Whenever it is down, we get an email :)Any help ???Regards:Areeb Qaisarwww.areebonline.com
  24. areeb

    easyphp help

    Ohhhh ...I use Easy PHP and its awsome :)You can download it from :www.easyphp.orgIt has autoinstallation and Configuration of :1) PHP2) MySQL3) phpmyadmin4) Apache ServerUr PHP files are placed at :Program Files Directory/Easy PHP/www :)Regards:Areeb Qaisarwww.areebonline.com
×
×
  • Create New...