Filling My SQL Database With Info From HTML Source Code?
I am desperatly browsing around trying to find some way to add data to mySQL from raw HTML sourcecode.
I basicly have HTML pages showing lots of info on work, and I want to take that info - add it to mySQL so I can sort, select and browse the information in a better way.
Hope someone knows what I mean.. (many online textbased games have this on various fan pages for calculating purposes, ie. Earth2025 and Utopia)
View Complete Forum Thread with Replies
Related Forum Messages:
Filling Form With Database Info
I have a table with 5 fields for a tour business activity list : (1) id -table key (2) name (3)description (4)picture -text link not binary(5) country. I would like to create a form that takes all the activitys an puts it neatly down on site in checkboxes so user can select activtys.this will be linked to form mail.i would like the activitys to be seperated by the country they r in?
View Replies !
Extracting Img Tag Info From HTML Source
I'm having a bit of a brain meltdown trying to figure this out. If anyone has a suggestion I could try, that would be excellent. I'm trying to extract specific pieces of data from an html source file. In particular image tag information. If my file contains lines similar to: <a href="images/picture.jpg" target="_blank"><img src="thumbnails/picture.jpg"></a> I'd like to be able to extract the a href URL and the img src as two seperate variables and ignore any other HTML source and tags inside of the file. For all intents and purposes ending up with an array of the following: $link[0]="images/picture.jpg"; $thumbnail[0]="thumbnails/picture.jpg";
View Replies !
Protecting Source Code On Mixed Html
How can I protect or block others from viewing my source code. I have a mixed form php and html, and someone has been trying to duplicate it. Each time they hit submit i get a text message on my phone, except all data is blank since they cannot connect to my database where all vars are stored.
View Replies !
Email Contatins Html Source Code Instead Of Displaying It In Web Format.
I created a couple forms for my site, I then purchased the proper program to make my forms work. When I submit the form, I recieve the email, only problem is that the email contatins html source code instead of displaying it in web format. Also the attachments are not being sent correctly, all the attachments appear as thousands of text characters within the body of the email. Almost like they are not being decoded. I checked and rechecked the form and my php program but they look fine, Am I missing something? I am not getting a lot of feedback from the person I bought the program from as of yet.
View Replies !
Filling In Radio Buttons From A Database
I have a different sort of radio button problem here. I found dozens of tutorials on using radio buttons on forms and submit them to a database. That I can do and have done it already. My problem comes when I want to update a user's account. I have a status field which has two radio buttons for paid or expired. If I need to edit a user's e-mail and then click submit and forget to click one of the buttons, then the update does not fill in either paid or expired. Later when I want to use a report showing paid members, the member that has neither paid nor expired will not show up. Code:
View Replies !
Filling In Check Boxes From A Database
working on a form, need to know how to fill in a series of check boxes for an update page from a database. I have the text boxes filling in like this <input name="merchant_name" type="text" value="<? echo $merchant_name; ?>" onClick="value=''"> but that wont work on a check box.
View Replies !
One Source Code
I want a code that in the index page their are 5 categories. I want when people click on them to redirect them to page index.php?category= $id. Where $id is the id of the category. And when you go there to find the result only of this category not from all 5 categories. Also i have a problem with this code: $query = "update add_zavedeniq set zav_date_delete = (CURDATE() + INTERVAL 10 DAY) where id = '$lastid'";
View Replies !
Source Code
I have a form and when I choose an option in a particular field , it should link to another file or page. Could you please refer me to past threads on this.
View Replies !
Displaying PHP Source Code
What dictates that .phps files display source code? I have two examples, one where it all works as expected and one where it doesn't .... and it's really confusing.
View Replies !
Display Source Code
What is the easiest way to display source code to the browser? I have designed a number of templates. I need to display PHP source code at the end of each template. So that anyone can simply click on the link and see the code of the current file.
View Replies !
Source Code Bug Or Feature?
I have just inherited someone elses PHP code and there is something strange in it, at least to me. I'm wondering if I inherited a source code bug or is it a PHP feature that I don't know about. This code is in "index.htm" and the first few lines of the file look like: <? if($parm) { more code } ?> Now, the error I am getting is that "$parm" is not defined. I would expect that. Or is there some "hidden" way $parm can be defined and I just haven't found the code that does it,
View Replies !
Source Code Security
I am trying to learn how to interact with mySQL using PHP pages, and all the examples I've seen require me to include my username, password, and database in my PHP code to establish the connection. What measures, if any, do I need to take to ensure that prying eyes will not be able to get into my source code and retrieve this info thereby enabling them to log into my database and mess with it?
View Replies !
How To Read Source Code
I downloaded the PHP 5 source code from www.php.net web site. It is a tar compressed file. I used WinZip to unzip it. Now I got a whole bunch of files. But I do not know to read these files. Do I use Visual Studio, or any other IDE tools? Or do I must use a text editor to open each file individually to view it? And, by the way, what is Zend? Is it a ( free ) IDE tool?
View Replies !
Hiding Source Code ?!
I have some php pages and some php+html tags in,pages. How can I hide my source codes in each one ? I know 1 way is to encrypt and encode them by some softwares like zend encoder or ... , but is there any other way to hide my source ?
View Replies !
Protect Source Code
Is it possible to hide a source code PHP in order to protect it, I mean, I'm developpind a web solution for customers and I don't like that the customer or the host see my code.
View Replies !
Please Help View Php Source Code
i am trying to view the source code of a php page but when i view the page source it comes up with "&errormessage=Please fill in all fields and send again.&", i am trying to create a form to email box for my own website and have found one on a website i like, i am trying to get the php code but dont know how to get it to be displayed.
View Replies !
Hiding Php Code From Source
How do you create a line in html to call a php file instead of having the php typed out fully withing the html? But i'd need to know two things, firstly im going to need to run php at different methods, these would be either the second the page loads the php would run or upon an action the code will run. So basically i would have a html file + the php file seperate and then the html file calls up the php file. I currently have the html and php all in one note pad and it displays all my code in the page source.
View Replies !
Source Code Management
In the past I've used a source management system when working on production versions of code. I started thinking about that again when I began writing PHP code. But for a one-man shop with only a few pages it didn't seem like it was worth the effort. As they will do - things have changed. Still a one-man shop, but now the requirements have shifted to include a local site which assists with day-to-day business. Not simply serving up pictures and taking orders, this site contains a host of resources and abilities that could be considered mission critical. Above all, the information presented must be condidered to be reliable and accurate. In my opinion that also includes source code change documentation. Code:
View Replies !
Auction Source Code
i need an auction php source code that is fully running. if possible there is also a distributed messages coding to the bidder telling them that they are win or lost.
View Replies !
View Source Code
I have put the results of an SQL query into a PHP array. I then pass on this array into a javascript array to manipulate these data in javascript (especially with google maps). But if I click on View source code, anyone can display the full content of this javascript array. How could I hide these data ?
View Replies !
Secure The Source Code
what tools or methods do we have to secure the source code of php after the application is ready. or else anyone could tamper with the source. if we put it directly on to the server. is there any method to make a set up to install application.
View Replies !
Assign Source Code
I have a variable ($source) which i would like to assign the source code of another page to. I would like to do this so i can parse through it all and pull out a few key bits of info (current bid, number of bids, time remaining) from the autions i have listed.
View Replies !
Source Code Editor
I remember looking at a website that let you browse the source code of PHPBB. it showed you a list of all variables and it would tell you the file and line number each variable appeared. Did the same with functions, constants, etc. Anyone have that link by chance? Or even better, maybe knows the tool itself that compiled that useful little list? I want it bad enough I would even write it myself in perl but I really don't want to reinvent the wheel. what you think is the best editor for PHP code? I like ultraedit, but it doesn't show me a list of all variables/functions the way that DZsoft PHP editor does. But I also code in other languages so opening multiple kinds of files in tabs inside one editor is also nice. I've found some bugs in both programs though.
View Replies !
Source Code => $string
Is there a way I can have a script grab the source code for a given url and apply it as the value to a string? I'll tell you what I want to do! I am building up a database of some data, manually this is taking me along time but it is all available on a website displayed in a series of tables. If I can have a script loop through a series of url address and grab the source code displaying the data I can manipulat the string to extract the data required.
View Replies !
Compile/crypt Php Source Code
I once read or heard someting about that you can compile your php script, is that just me mixing 2 things up, or is this true? if it is, where can i read more about it, and has anyone tried it?
View Replies !
Phpinfo(); ?> Seeing The Source Code In Browser?
I just installed Apache 2.0.43 and PHP 4.4.0 on Win2000. I've been advised to test the intallation by saving this script <? phpinfo(); ?> into a file called phpinfo.php in the server document root. (Which in this case is C:/Program Files/Apache Group/Apache2/htdocs ) My book says all I have to do is "access this file via [my] web browser" and I should see a fancy table, but all I see is the source code. What could I be doing wrong? Apache runs with the PHP module with no error message. This is a stand-alone computer, so I set the servername to 127.0.0.1 --could that be the problem? I was supposing that if I entered http://127.0.0.1 into my browser address field, I should get the index.html file that's in the htdocs directory, but I just get a not found. (I do have DirectoryIndex index.html index.html.var in the httpd.conf) So it looks like Apache isn't doing anything, or am I not seeing something?
View Replies !
How To Properly Version Your Source Code... ?
That pretty much sums it up. I am looking for information or tips on how to version your source code. What I have always done is this: major_build.minor_build.daily_build major_build - I have never been involved with an application requiring a major build. minor_build - When I have coded the application to the point of warranting a release, or a new release. daily_build - Anytime I add a new feature, fix a bug, or finish a TODO item. I do not however increase this number if I add a TODO. I do however add it to a HISTORY log. I'd love to know what professional programmers and commercial software engineers (as in, anyone who worked in a collaborative commercial project where version information may have been set by the company) do.
View Replies !
Community Calendar Code/source?
I would like to find a community calendar source for our 4H group to use. I would like to to show the days of the month in a typical calendar method and then have access for an administrative user to add events on date/time with a title/description. If possible, an XML data file for the dates or MS Access one....
View Replies !
PHP Source Code Reformat Pgm For Linux?
I have several 500 to 1500 line PHP programs that need to be re-formatted so that they look "pretty"..... proper indents, etc. Anyone know of something that will do this under Linux? Maybe a VIM or Emacs script/plugin that will read the source and re-format it for me (I use nedit and I don't think it will do such a thing.... and if so I don't know how.) I know there is a $50 one out there but this is a one-time deal on a few modules and not something that will be used again.... and it only runs on Windows.... but I have Win4Lin so I could make it work if I wanted to spend that much $$.
View Replies !
View The Source Code From A Php Page
Is there a way to view the source code from a php page and see the php? If there is, isn't that really bad? Aren't there a lot of websites out there that could be really messed up if someone could see the php part of the page?
View Replies !
How Do I Use Imap() To Get Source Code Of Email.
I've been working on a project using IMAP to fetch email. I have got that down and can parse the email fine by parsing the subject, the body, the date, etc. What I want to do next is, to keep a copy of the source code of each email in a database. I wish to be able to avoid parsing the different parts (body, subject, etc) and instead, just parse the entire source code of each email and put it into a database. Thus, I can delete the email from my POP box, and back it up in a database so that I can manipulate the email data in the future when necessary.
View Replies !
Source Code For E-mail Project
I have only been working with it for a few weeks. I am working on an e-mail project for a course at the university. I am getting only the blank page. I am getting myself confused the more that I try this. <? php $authuser = ��' $username = "****"; $password = "******"; $db = "angel_test"; mysql_connect('localhost', $username, $password); mysql_select_db($db); echo "This works.. BEFORE the query!"; $query = "Select messageFrom, messageSubject, messageDate .............................
View Replies !
Php Process Website Source Code
I was wondering if PHP had the ability to look at source code <body> of a website, load it into a variable, detect a certain tag within the code, truncate everything before it (and after a separate tag) and run the code. i realize that i might have to write a page that applies this 'snatched' code to itself, and then i would use an <iframe> to display the generated page. as a bonus icing on the cake, i was wondering if there was a way to display this generated page (or even the code itself!) within a <div>. Practical use for the "<body>snatcher" script: 1) i like to read webcomics, and most of the pages they are displayed on are written in php. i would like to have all my webcomics show up on a single page all at once saving me just a little bit of time reading them all. 2) i have a professional blog, a personal blog, a myspace and a facebook, and a flickr account. needless to say, that's a lot of comments to be checking. i would like to have a page that displays all the latest comments of each of my accounts on one page.
View Replies !
Encrypt Source Code Of Applications
is there any already built module or class (open source) available on the web which enables you to encrypt source code of your php applications. or does any built-in php function provide such facility or can we discuss about implementation of such technology, here. I am not looking for an "easy way to do so". and any discussion no matter how much complicated and advanced, is welcome. Looking to come up with something powerfull enough that it is unbreakable by a normal or advanced programmer easily.
View Replies !
HTML Source
U want to catch the HTML source of the web page but I can't get this by file_get_contents().Us there any function to do that, or any method for doing that.
View Replies !
Get Html Source
I am trying to generate PDF file via a Dynamic URL. The problem is that i am trying to get the HTML source from this dynamic URL and paste the source of the file in the source below $HTMLSOURCE. PHP Code: $html = $HTMLSOURCE; $dompdf = new DOMPDF(); $dompdf->load_html($html); $dompdf->render(); $dompdf->stream("sample.pdf");
View Replies !
PHP, Get Html Source.
I'm working on a project that needs to watch another website for activity. I can go thru a logon, query and signon at regular intervals. But it occurs to me that you can just see if something new has happened by viewing the site. So I was wondering if there is some PHP command to capture HTML source from an external website and then I'll search the html source for a number of images (or any related events, updates etc). So from a PHP script I'd like to point it at an unrelated website and scrape the HTML source for a particular pages.
View Replies !
Getting HTML Source
I am attempting to get the HTML source of a web page on a different domain, but the source is based on the client's cookies they have stored for that site. I've tried using javascript with iframe's and XMLHttpRequests and HTMLHttpRequests, but it's restricted to inside my domain. With php you can get the HTML source of any web page using the file functions, but since its server-sided i don't think I would be able to open the page and get the HTML source based on the users cookies. Is there someway using PHP I don't know about, or mayb combinding javascript and PHP in some sort of AJAX engine?
View Replies !
HTML Source To SQL By PHP
I got a static HTML page with some data I wanna insert it into mySQL. I ended up writing my own thing. where I search the source and put it to sql in php. but it does not work 100%, it sometimes add weird blank spaces and such. so I wonder if theres any existing tool / script / php source to do this that you guys might know of.
View Replies !
Retieve Remote Webpage Source Code
Let's say I have a remote page: www.website.com/somepage.html How do I remotly view it's source code? By opening a socket and using GET header to recieve the source? Another way? I need it to be something like http://www.mysite.com/showsource.ph...m/somepage.html Is that possible at all?
View Replies !
|