Automatic Links
what is an easy way to parse a string that is being outputted along with html onto a browser in order to find all URLS and email addresses, and then automatically formatting them so that they are linked to either that url or email address? Basically, I would like to send a string like this:
Hello, my email is estrabd@yahoo.com and my homepage is http://www.mysite.com
To a function that would return something like this:
Hello, my email is <a href="mailto:estrabd@yahoo.com">estrabd@yahoo.com</a> and my homepage is <a href="http://www.mysite.com">http://www.mysite.com</a>
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Automatic Links For Key Words
I have a site with a large number of pages, and want to use PHP to automatically cross-link them using key words. For example, whenever the word 'contact' appears, I want it to automatically link to the 'contact' page. Because there are 100+ different pages, I don't want to have to edit the links manually.
How To Count Links To External Links?
I get results of the query diplayed on my find.php page with links to different web sites. I want to store count of clicks on each of those links that are displayed on my find.php page. How can I do that?
Active Persistent Links And Active Links Both 0
I just installed Apache/MySQL/PHP I'm trying to test if the connection to MySQL is there I know the database works on its own, I checked that when I run phpinfo() I get mysql listed, I'm just wondering if when it says "Active Persistent Links" and "Active Links" both 0 (zero) under "enabled" column, is that fine, meaning configured properly?
Automatic Mail
I am a newbie and I'm writing a application as a feedback database. The user submits his name e-mail etc. into a form and thenit stores it. I want to be able to send a sort of thank-you message after they fill in the form. How could I do that?
Automatic Backup Of SQL
I'ved maked a bacup sistem that saves a specific databases in a dir/ BACKUP .. on submiting a button from a form. Now I want to make it automatic ... the specific file when is written saves the date and time is saved . PHP Code:
Automatic Submit
When you click a drop down box to display, then select the option from the drop down box after that, how do you make it submit automatically without pressing "go" or "submit" button? Can I do that in PHP?
Automatic Include
I want to automatically include one php file in all my webpages. This is for tracking purpose and must be included before any header information is sent. The problem is I have 1200 pages and it would be not efficient to edit and put the "include" command in every webpage. Is there a way to do an inculde from a server end before a php file is called?
Automatic Mailing
I have a database in which people can submit theirselves. As soon as they submit the database gets updated and they should get a mail with their login-name & password. Does anybody know if this is possible to programm with php?
Automatic Download
I guess this is done with headers.. You know those download pages: you click "download" and it leads to next page with message: "click here if your download doesn't start automatically". How can i do it? How can i show a next webpage and force download at the same time? Can it be done using PHP? I think it's something to do with headers..
Automatic Redirection
can someone give me a sample code for automatic redirection ? Like after a certain period of time (say 5 seconds) the page will automatically be directed to a new page.
Automatic Url Redirection
i'm trying to redirect the user back to the original page he came from after logging in. when a user enters a page that requires logging in, the page will automatically jump to the login page. so what's the problem u might ask? in the situation below, admin.php loads the login page with the variable $login_referer which is the url of admin.php if the user is not logged in. now this is what i want to happen but...... PHP Code:
Automatic PHP Execution?
I have the following question, I have an application which transfers a csv file (via FTP) to the server then on the server I have a PHP script which put the content of the CSV into a mysql The question is now how can I start without manual interaction this PHP file ?
Automatic Email
I wanted to know is there a way I can send my users an email on their birthday automatically? What I mean is, I want a php script to be executed once everyday without having someone click the link to run the code.
Automatic Forwarding In PHP
I was wondering how I can get a php page to automatically forward to another page when a certain action is made. For example, a user logs in, I want the page to automatically forward to the main user page. Is is this possible?
Automatic Authentication Using Php
I have an internet radio station that uses shoutcast server. In the admin section there is a link to kick the stream. The problem is that I don't want to give out my password to all of my Dj's for obvious reasons. I was wondering if there is a way that I can use php to trigger the link using the login information without the user seeing it. Normally when I click the admin link a box pops up asking for username and password. the target of the kick source link looks like this http://www.myserver.com:8000/admin.cgi?mode=kicksrc the only other option I have is to give out the password and change it if a problem presents itself.
Automatic Install
I have seen on a lot of sites that when you click on a link, if the file you are opening has an associated program with it and it is not installed on your computer then it will first install the program and then open your file.
Automatic W3C Validation?
One of my many, many "started with enthusiasm, then quietly abandoned" projects was to code some PHP which could be included into every page on my site (blog included) and would verify the page (via the W3C validator) each time that it was loaded and e-mail me if there were any problems. I "quietly abandoned" it when I realized that it was "kewel to kode" but I don't really know why I wanted it, or how it would work. On the face of it, I only need to validate each time I change a page. So, validating with every load seemed ridiculous; which lead me to a flat file database where I could check the page file's last update date against its last verification date, thus avoiding unnecessary validation. Then it occurred to me that with so many includes (standard header & footer, etc for menu, hit count, etc), the web page's main file could be unchanged, but - if an included file were altered - then it might no longer validate properly. See my dilemma? So I have put this to one side (since there are plenty more little projects to code) until I can specify it correctly. Any comments/suggestions? Anyone know of something similar which already exists?
Automatic IP Blocking From DB
i look for a code [maybe some 1 knows already] to automaticley block an IP address that it is located in the DB, to prevent users from accessing my site twice. if some1 know already when i can get that code that i will be glad, also i have found that code: $ip = $_SERVER['REMOTE_ADDR']; if($ip == "123.123.123.123" || $ip == "213.213.213.213") { // YOUR BANNED } else { // YOUR NOT BANNED} but it is not automatic and not from DB.
Automatic Position?
I have a basic table/database set up to record a persons name, location, the number of miles travelled and their position in a race. At the moment all of these fields have to be entred manually when you wish to update them. Is there a way to automatically assign a position? (i.e. the person who has travelled the most number of miles 1st - least nth?
Automatic Timed Redirection
I'd like to know if there is a way in (PHP) in which you can redirect somone to a certain page as soon a couple of words have loaded on a page.. ex.( 'blahlballblblbl' and at the same time it will redirect to that 'certain' site.
Automatic Date Entry
Im doing a new submission script, through a form, and ive got a field in the database called date_submitted. I was wondering whether to use timestamp or datetime field. And how do you do a query to put the current date in. So basically i want the date that the article was submitted automatically put into the database as this is a basis of a query for another part of my site.
Automatic Completion Of Forms
I have a question I hope that someone can help me with. I have a form where I have a drop down box for 'staff levels of pay' and I want my form to automatically complete the remaining sections of the form once the person completing the form selects a certain pay level. EG. Select level 1 on the drop down and then in other fields such as 'pay level' 'description' - the information is automatically displayed in the fields after selection made. Does anyone know where I may also find a website with code that may provide me an example of how to do this. Do I need to checkout PHP stuff or is this done in SQL code. Finally how do I get the information into the database.
Automatic Subdomain Creation
As the title suggests I am looking for a push in the right direction when it comes to a script that can autmatically generate subdomains. I was wondering about if it was possible with php (if not then is there a scripting language that could do it?) What are the security implications for it? Can it be made secure? Are there any limitations on the type of server this could be done on?
Automatic Form Submit
I have to develop an application sounds like this:- User is allow to access a form (is actually a test/quiz) within a specific time frame, let say 45 minutes. After this 45 minutes, if the user has not yet click the submit button to submit the form, the system need to automatically submit it. So, can anyone teach me how to check the time out as well as how to make the form submit automatically? Thank you very much.
Automatic Scheduled E-mails
I have a website that I am building in PHP that I would like to send e-mails to users every 2 days to inform of new updates. I know how to trigger the sending of e-mails if a user enters the site, and can limit this to only happening once every 2 days, but I am interested to know if it is possible to have PHP send e-mails automatically in case no one visits the site?
Automatic Download On The Client?
I'm writing a download manager in PHP for a series of mp3 files. At the moment, the users have to right click a link to the mp3 file and "save as" to get it onto their hard drive. How can I make the files download automatically when they click a link or press a form button? I've seen this work on other download sites..
Automatic File Downloading
When a user clicks on a certain link, the file opens when he has a registered program for that file type. For example: if I click on a link to a .doc-file, it opens in Word, if I click on a .gif-file, it opens in my browser. Does anyone know how to download a file automatically, no matter what programs are installed, so that even .html-pages are downloaded in stead of shown? Guess it can be done by sending an alternative header with the file, but don't know how to do it exactly.
Automatic Thumbnail Generation
I have a folder, 'im' in a subdirectory 'gallery', and all this pictures are about 950 x 100 pixels and I have over two hundered .emf's so I can't create thumbs for each one. I need a script which will echo an image onto the screen, at about 75% of the size.
Update Automatic The Database
I'm busy with making a toplist and i wonder how i can let the script determine the day Sunday and then update automatic the database?
Automatic Array Keys
My array keys are behaving strangely. In the manual it says calling an array like $array[] = "something" should make the value be put into the next available integer key available. However, my values are being placed with whole sets of blank keys inbetween. Here's what part of the print_r() of the array returns: Code:
Re Php Nuke Automatic Email
when a new user registers how is the confirmation email sent and do I need to configure something as they are not being sent.at the moment. How can I set this up.
Automatic Printing Of Web Pages.
Hey does anyone have an idea how can i print automatically a set of web pages simultaniously on clicking a single button....i mean i have the path information of all the web pages in the database and i need to print all these pages ,when a user click a particular submit button on a separate page.
Automatic Logout Before SESSION End
On my site people have to log in and automatically start a session. An authorized login grants access to other pages and MySQL data. However when the user waits to long, the server ends the session, without a proper logout. The user can't see that he is logged out, hits a button and gets mutiple errors because MySQL is no longer available. Is there a way to to warn the user a minute before the session is ended? I just read, the session time is set in session.gc_maxlifetime in php.ini. So I can let a timer run along with this time and warn the user, but doesn't the server returns a signal before the session is ended that I can use to alert the user or in any case can trigger a proper logout?
Automatic Update Of Dates
I am relatively new at php and am trying to create a script for a pharmacy dealing with repeat prescriptions which are to be sent to the patient every 28days, I want to be able to automatically update the database(MySQL and winows ME operating system) with the new date each time the prescription has been sent out. I also want the pharmacist to be able to see which prescriptions are to be sent out on each day.
Mail() (automatic Mailout)
I am trying to get an automatic mailout to be sent when a page is loaded. The synatx i am using is: mail("bradwright@mydomain.com.au", "worked", "Line 1 Line 2 Line 3", "admin@mydomain.com.au"); I am running php under a Linux environment. I get no result when page loaded...no error message, no nothing. when i go to my mail logs, nothing there.. no requests,denies anything that corresponds to the time and date the mail should go out (ie when i load the page).
Automatic Execution Of Php Script
is there a way that i a php script will be automatically executed without running it thru a browswer ? say, i wanted to run the PHP-script that do statistics of the site each day at 12MIDNIGHT. is this posible thru php ?
Automatic Thumbnail Creation
I have a site where registered users upload photos to a photos section. The file name is $filename, say. The section is then updated with a thumbnail of the new photo... Is using imagecopyresized correct? If so, how exactly should i use it to create a thumbnail image (of 50 width) to be saved in the same directory as $filename???
Automatic Pinging Of Pingomatic.com
has anyone written some php code to ping pingomatic.com? If so, please let me know. I've copied code from a couple locations and tried to twist it to work without any luck. I've emailed the guys at pingomatic.com with no reply. I'd post some code but its prob not even in the right ballpark....
Automatic Notification Of New Web Content
My company wants to implement a document web server to eliminate some paper. Has anyone used a product or developed code that can notify users (via email) when new documents have been posted?
Automatic Data Retrieval
How do I go about collecting data from another website? Basically what I'd like to do is set up nightly retrieval of data from this site: http://web.minorleaguebaseball.com/milb/stats/stats.jsp?n=Jarrett%2520Hoffpauir&pos=&sid=milb&t=p_pbp&pid=459440 (and other pages on that site) And then have it input into a database on my server. I'd basically want to read everything on that page as a string, and then explode pieces of it into individual chunks that would then be added to a MySQL database... I have no idea where to even start. I asked someone in the past and he called it a "grepper" or something. Can someone please assist me in getting started?
Automatic Display Of Events Each Week
I know how to display a list of upcoming events from a SQL database, but am wanting to display the events based on the date, eg. events happening this week only. Could someone tell me how to do this or point me in the right direction please?
How To Implement Automatic Invocation Of A Script
am trying to implement a mail redirectional script by reading the POP3 server mails. ie all d mails which comes under <anyone>@companyname.com will redirect to <anyone>@<hisowndomain(yahoo,gmail,...).com> ok whtevr it iss i want to know in which are all the way i can excecute this script. choice#1: i will hav a php script dat will refresh in each minutes. Here i need to keep a window open to run the script in any machine. Choice#2 :is der any way to do the same in server
Select MySQL W/o Automatic Vars
I'm used to working on PHP4. This project is on PHP5, and they have the ability to automatically create variables from request parameters turned off. So now it looks like I'm uable to select/print data from an MySQL database. I know this is probably very simple, but can someone point me in the right direction? Thanks! Here's my code I'm using: PHP Code:
Automatic PHP Control Structure Tabulator?
Anyone know of a code-snippet or a cheat-script to read my PHP file, and then insert tabs to delinate the "nested" from "non-nested" code inside control structures? PHP Code:
Automatic Timestamp When A Record Is Updated
I have several tables in a MySQL database. Is there a way to mark a time stamp (in a DATETIME field )on a record each time the record is updated? I can write an UPDATE statement, but I was wondering if there was a function built-in to MySQL or PHP to time stamp a each record modification in each table.
Automatic Forms Creation Tools
I am searching for an automatic forms creation tool that will help me to save time in developin forms (preferrably with validation). My forms get some data from a MySQL database and are supposed to save all data back to the database.
|