
lovesmith
Members-
Posts
43 -
Joined
-
Last visited
Never
Everything posted by lovesmith
-
well i have image in the my website say "http://www.mysite.com/images/abc.jpg" all i wanted to do is duplicate the image abc.jpg and make a copy with name abc_copy.jpg can anyone throw a light how to do this?
-
Well i have aweber account and i want to integrate in my site. My problems are in Upper case letters 1. From my website user enters name and email...it first saved in my database(i have already done this)..then it goes to aweber for subscription..and from there verification mail is sent to user. I WANT THIS VERIFICATION MAIL CONTENTS GOES FROM THE DATABASE THAT I HAVE SAVED FROM MY ADMIN PANEL. 2. when user verifies ...then he is subscribed to newsletter or even the download of free ebook. I have uploaded and save information of ebook from my admin panel. I WANT THE CONTENT OF EMAIL AND THE LINK TO DOWNLOAD EBOOK SHOULD COME FROM MY DATABASE NOT FROM THE AWEBER??
-
Do like this RewriteCond %{HTTP_HOST} !^fully\.qualified\.domain\.name [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://fully.qualified.domain.name/$1 [L,R]
-
Thanks a ton man
-
well i have a form, it have three fields, txtword(textbox), image(file field) and sound(file field). The format i want is like this <?xml version="1.0" encoding="utf-8"?> <photos path="images/"> <photo name="photo1" url="1.jpg" link="one" sound="1.mp3">This is photo 1</photo> <photo name="photo2" url="2.jpg" link="two" sound="2.mp3">This is photo 2</photo> <photo name="photo3" url="3.jpg" link="three" sound="3.mp3">This is photo 3</photo> <photo name="photo4" url="4.jpg" link="four" sound="4.mp3">This is photo 4</photo> <photo name="photo5" url="5.jpg" link="five" sound="5.mp3">This is photo 5</photo> </photos> in above code the child node is added each time the form is submitted. parent node is created only when there is no xml generated before. in above code for time being neglect name and link attribute. other attributes holds value from the form data. Any body ? Thanks in advance
-
[SOLVED] help on implementing Badword filter
lovesmith replied to lovesmith's topic in PHP Coding Help
Thanks dude! -
I have a text file "badwords.txt". In each line of this text file, i have a word that should be filtered. All i want is that....when user posts form...i need to check whether they type the words included in badwords.txt. if there is then they will be redirected to the ban page. I have no idea how to do this..any body help please Thanks a ton
-
hello friends, I have a customized media wiki site in our host using php 4. Now they are upgrading to php 5, so i m now required to upgrade my media wiki codes to php 5 as well. So is there any easier way to upgrade it to php 5. As i have customized media wiki site, i need to recode to php 5 version and there are so many files to be recoded and it will take a long time for me. So it will be better if someone suggest me that do i have other alternative?
-
Nope, i m into project for a TV channel. They want their site, from where their visitors can see live TV programs. They can see programs being telecasted by them as they see in Television.
-
Is it possible to telecast/stream live TV channels in the internet using PHP. If yes, what are the steps to be undertaken? Thanks
-
Getting total length duration of a video file
lovesmith replied to lovesmith's topic in PHP Coding Help
Thanks for the quick reply Does it work in linux platform as well? -
How to get a total length duration of video file using php? Thanks in advance
-
well i have used readdir,opendir to list all the files and folders. How to determine whether listed file is image, zip, pdf or so? please somebody help me thanks
-
well! i have listed a folders residing in http://localhost/projectmgmt/projects. I have tried to list folder name as well as its size. I can get size of the file but i want to get the size of all the folders listed. how to get the size of the folder? Next question, how to determine whether the listed item is folder, html file, image file or zip file? Please help me with this! thanks in advance
-
i m converting an asp project to PHP. I need to know what is the PHP equivalent of the asp function Request.ServerVariables("HTTP_AUTHORIZATION") Thanks in advance
-
well i have system user deposits certain amount of money with us. They will get a user name and password to download MP3 songs from my site. And each song download deducts the balance from their deposit. My problem is that how to determine that user have successfully downloaded the mp3 songs, so that the system can deduct the amount of the song from his balance. This is needed because..sometimes due to server or may be the poor connection of the client, user may not be able to download full songs after they hit the link. So how to manage these all stuffs. Please anybody help me! Thanks a ton in advance
-
well i have following lines in my .htaccess file RewriteRule ^contractors/([a-z]*) index.php?uname=$1 the link goes like this http://www.mysite.com/contractors/myname goes to http://www.mysite.com/index.php?uname=myname i want to get the value of url like this http://www.mysite.com/contractors/myname, but when i use $_SERVER['PHP_SELF'] it gives an actual path index.php. How i can get the re-writed path?
-
Well thanks guys, I m doing this for the first time. I just know PHP. Might be we need to create virtual mail account, Thorpe, the link you provided i went through it, and followed another link you have posted there. I dont have complete access over server. I just have access over server cpanel. So does that information is of any use to me?
-
Well I have a site say http://www.mysite.com User sign up for the membership, with their desire username say "myusername". All i need is how to create his email account in my domain, immediately after he registers in our site. Upon successful registration his email will be created like [email protected]. And this email account can be used to send and receive email to and from any other email service provider. Please anybody help me!
-
download .htaccess file from the server
lovesmith replied to lovesmith's topic in Apache HTTP Server
i m using same ftp client and...in my 3rd server, .htaccess file is visible. not visible only in the server from where i want to download the file -
mod rewrite and custom error page redirection problem
lovesmith replied to lovesmith's topic in Apache HTTP Server
OKay thanks for the information -
I have certain configuration in one of my server in .htaccess file, i need a same configuration for my other website. I wanted to download it from my original server, but i cant see it, might be it is invisible. Is there anyway to get that file?
-
mod rewrite and custom error page redirection problem
lovesmith replied to lovesmith's topic in Apache HTTP Server
well url rewriting problem is solved for next i tried to browse http://localhost/urlrewriting/abc.php ....abc.php doesnot exist. instead of custom error document...it show internet explorer's default page not found error. -
mod rewrite and custom error page redirection problem
lovesmith posted a topic in Apache HTTP Server
my mod_rewrite module is turned on in the configuration file. I m trying to use mod rewrite in my local machine i have a folder urlrewriting and inside it all the files and .htaccess files exist i have following code in httaccess file. Options +FollowSymLinks RewriteEngine on RewriteBase /urlrewriting/ RewriteRule productinfo/proid/(.*)/ productinfo.php?proid=$1 all i want to do is rewrite http://localhost/urlrewriting/productinfo.php?proid=12 to http://localhost/urlrewriting/productinfo/proid/12/ But it didnt worked. I have test.php where there is a link like this <a href="productinfo.php?proid=12">Product 12</a> the link still goes to http://localhost/urlrewriting/productinfo.php?proid=12 Where i went wrong? Somebody help me And even custome error page is not working as well i have code in same htaccess file ErrorDocument 404 /err/404.php i have folder "err" and the page as well it didnt worked...anybody tell me how to make these work? Thanks a ton in advance lovesmith -
include the attached php file in your project now do the following <? $sql ="..."; // your sql statement $querystring="........"; // the query string you want to fetch via $_GET $grpsPerPage=6; // number of records to show in a page $result=mysql_query(getPagingQuery($sql, $grpsPerPage)); $pagingLink=getPagingLink($sql, $grpsPerPage,'',"$querystring"); $numProduct=mysql_num_rows($result); if($numProduct>0) { while($rs=mysql_fetch_rarray($result)) { //do your coding } } ?> now place the following codes where you want your paging links <? echo $pagingLink; ?> [attachment deleted by admin]