39,323 Topics
| |
hey,,, i am have a project to do a web Statistics website like Alexa ; what i need is a way to get all needed information to save it in my db ; i will use PHP with javascript to implement this ; what data i want to retrieve : … | |
we have just started learning PHP as a course in our 2nd year subject Internet Application development. below are the codes that we have worked on so far. [B][U]Homepage :[/U][/B] [code=html]<HTML> <HEAD> </HEAD> <BODY bgcolor='yellow'> <P align='center'><FONT color='blue' size='6'>ABC & Company</FONT></P> </BODY> </HTML>[/code] [B][U]Login.php :[/U][/B] [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
I have a code to detec backlink from yahoo and google like this : [CODE] function google_backlink($uri) { $uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri)); $url = 'http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=link:'.$uri.'&filter=0'; $v = file_get_contents_curl($url); preg_match('/of about \<b\>(.*?)\<\/b\>/si',$v,$r); preg_match('/of \<b\>(.*?)\<\/b\>/si',$v,$s); if ($s[1]!=0) { return $s[1]; } else { return ($r[1]) ? … | |
Hi all, I am trying to get a grasp of web form data getting passed to PHP, then dumped into a SQL Database (2005). I have created the form in html. but because the form is an employee application there are a lot of text boxes, radio button, etc etc. … | |
I wish to limit uploading to the video files swf pps bmp pps png gif mpg mp3 and wav - i'm sure I have the file / type incorrect. can someone please give logical solution... here's my code: [code=php]<?php if ((($_FILES["file"]["type"] == "video/swf") || ($_FILES["file"]["type"] == "video/pps") || ($_FILES["file"]["type"] == … | |
I am getting an error message on this php script and am a total loss as I am a complete novice and have no idea. Can someone give me some help? here is the error and also the code. Parse error: syntax error, unexpected T_VARIABLE in /home/content/m/i/x/mixxsalon/html/FormToEmail.php on line 1 … | |
Hi guys I am very new to php and am trying to create a small content management site. Hopefully I will have posted this correctly, sorry If I have missed anything out. I have a self referencing form, which allows me to enter a file name and browse to a … | |
okay so i am doing a program that lets you type a name of a friend in and submit and it will display a picture of that friend but my output wont show the picture, it will have some type of error. if you look at the picture attached that's … | |
Hi, I was wondering how you keep a navigation menu up-to-date on a 200 page website. When I first started using HTML I used an iframe which it is a [I]terrible[/I] idea. Now i am using PHP (im using include). But i am guessing this is also very inefficient. SO … | |
i have to call Mysql Procedure from Php... I dnt know how it is work..!! Waiting for positive reply..!! :) | |
how do you do this with tables? I prefer table not frames. below works but the whole page goes to the other website.. when i just want to view that website in the table cell. [code]<?php if (isset($_POST['url'])) { header("Location: http://" . $_POST['url']); } ?>[/code] i don't think iframe will … | |
Hi Brothers, I m completely new at PHP, i dont know anything about php but from different sites i have come to know that i can redirect my unfriendly url to friendly urls. so i have started a short project but i dont know how to make url writing plz … | |
Hi all! Сonditions of a problem: 1) in one form post info and upload file 2) validation only php without js 3) associated fields: if the value is not the same, we don't need to validate field 4) associated fields: if the value is the same, we need echo new … | |
I need help to make an included template to appear only on two pages and not on other pages of a photo album. Can someone help me out on how to use the "elseif" statement to accomplish this? Right now template file appears on every page, which is not what … | |
[CODE] Newbee in php Below is my table and script, I know it should change the password I am using a registration application the password is saved in this manner 1d7d2fcc49f157c0be4456580011a58d469c71b6 I could not make out if this is a md5. I echoed the php, the password i type in … | |
i want to host my own site on localhost.......i want to create my name servers......... 119.152.60.26 is my ip address how can i set my name servers that is ns.mysite.com ns2.mysite.com or any thing else.............. i am using wamp on window xp............. waiting............... | |
[B]You don't have permission to access /directory/admin/import_listings.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.[/B] I got this error while upload the fields of content to database... Anyone cross this error... Advance thanx... | |
i got a phpcode as ill like to have as a javascript code if anyone can help me... Php code: [CODE]<?php $now_ho = date("H"); //Daytime(6h~19h) if ($now_ho < 19){ if ($now_ho >= 6){ $vwimg = "hh_entry_oc1"; } } //Night (19h~6h) if ($now_ho <= 24){ if ($now_ho >= 19){ $vwimg = … | |
Hi All, I have been using netbeans for long now and it is somehow good. But I saw Aptana and was attracted. But I failed to Install PHP support with its new PHP plugin (Actually it is PDT). It throws errors and Have tried to check on Easy eclipse. It … | |
Hi All, I need to upload image to site for my CMS. I use Ckeditor, improvement of FCKeditor. It is great editor but have no upload plugin (they say we should wait until version 3.1). There is ibrowser which have an issue with deprecated eregi() function (caused me to leave … | |
I have this 3 file for small chat and it works without database. But i was trying to connect to my database and use my users. Index.php [CODE] function createForm(){ ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table align="center"> <tr><td colspan="2">Please eneter a nickname to login!</td></tr> <tr><td>Your name: </td> <td><input … | |
Hi, I want to pass the parameter of employee_id to a page. My code is working fine and passing parameter to page but the problem is rather then the current parameter , It is passing the previous parameter which was selected in previous submit. Below is the code. [CODE]<form action='manager_employee_select.php?proc_employee_id=<?php … | |
how to detect ip that converted to a region name.. any free code? coz i found it's commercial code while i'm trying to googling.. thanks | |
Hi frnds.... In my hosting server they didnt set the SMTP properties perfectly....So, i used the below code...but, this working from last 1 month.but,unfortunatley this code not working from last couple of days..I am getting error...plz check the below code & error message.... [CODE] $to = "TargetName <abv@xxxx.com>"; $host = … | |
I have never used ftp in PHP, but now I 'm there. And I cannot figure out what content I should give to the string "$ftp_server" in ftp_connect($ftp_server). I would appreciate some advice. | |
Hello, I was wondering if I could clarify some recent information I have found on the internet regarding PHP security. Im a self taught PHP/MySQL amateur and therefore have a very skethcy knowledgebase of the coding. lol Im currently developing a website and would obviously like to ensure its as … | |
Hey, I'm working on a College project that means you have to re-do the database each time you work on your assignment. So, what I'm hoping to create is a file called "sql_connect.php" which will check if the table is there, if not.. It will run the function that creates … | |
Hi! I searched but no luck :S anyone can help me.. i want to fill a table with 3 collumns and [I]n[/I] Row's, with all my database latitude and longitude parameters and date from when it happen... i think i need to make it with a [I]for[/I] .. but i … | |
| I was wondering if there was a way to only allow myself to access certain pages on my website? Is there a way to do this by using my ip address? And if someone with a different ip try's to access the page they are denyed or forwarded back to … |
The End.