Forum: PHP Oct 8th, 2007 |
| Replies: 11 Views: 1,243 Re: Parse html Ok, now that I understand how your file is set up, I can offer some advice:
Your file relies on line endings and blank lines to seperate data. By looking for them and taking everything from the... |
Forum: PHP Oct 7th, 2007 |
| Replies: 3 Views: 430 Re: how can i redirect like asp You can build your absolute URL from PHP-supplied functions. Take a look at PHP.net's header page, under "Notes" and above the comments.
http://www.php.net/header |
Forum: PHP Oct 7th, 2007 |
| Replies: 11 Views: 1,243 Re: Parse html Take a moment and look at what will always be the same in your file.
1. Are the "fittings" from a standard set?
2. Is each blank line guaranteed to be there?
2a. What about line endings? (Does an EOL... |
Forum: PHP Oct 7th, 2007 |
| Replies: 13 Views: 1,897 Re: How to disable brouser back. First, do not disable my back button. It's 2nd on my list of most hated website activities. (1st is opening new browser windows.)
Ok, now to try to understand what you're trying to do: If you... |
Forum: PHP Oct 7th, 2007 |
| Replies: 3 Views: 749 Re: session_start vs cookies Cookies are bits of information that will remain accessible to the browser across many openings and closings of the browser. For example, the "Remember me" functions of websites use sessions. ... |
Forum: PHP Oct 7th, 2007 |
| Replies: 11 Views: 1,243 Re: Parse html What you'd have to do is make sure the patterns exist for each input file (they don't have to be strict patterns, just a standard format) and then parse your files off of that. If you don't have any... |
Forum: PHP Oct 7th, 2007 |
| Replies: 1 Views: 845 Re: php mssql connectivity error You ARE changing those values to the proper ones, right? For example, to use the username "daniweb" and password "isthecurrentsite" and connect to the server www.example.com, your connection string... |
Forum: PHP Oct 7th, 2007 |
| Replies: 0 Views: 297 Database Install/Config Page I'm working on a database install/configuration page where the page asks the user for the database credentials, his software credentials, and a few other options and then proceeds to attempt to... |
Forum: PHP Sep 13th, 2007 |
| Replies: 2 Views: 604 Re: PHP - Best Place to Start? Are you fluent in C++? If so, you can learn PHP by following examples in code. The base structure is the same, you just go about putting dollar signs in front of your variables. (Ok, this is a... |
Forum: PHP Sep 13th, 2007 |
| Replies: 2 Views: 1,282 Re: Upload----Phpbb3? How are you uploading the files?
If by FTP, you'll have to do the searching yourself. I still use WS_FTP, but most GUI FTP programs can be set to upload one file after another without your... |
Forum: PHP Sep 12th, 2007 |
| Replies: 2 Views: 373 Re: Need Help Please! The way you've done it looks ok. My psychic debugging skills, however, are telling me it's something more...
You do know that variables in the URL are GET variables and not POST? |
Forum: PHP Sep 9th, 2007 |
| Replies: 5 Views: 592 Re: php site wont browse in iis You can do it on IIS. It was my first foray into home PHP programming.
Where does IIS expect your files to be? How are you accessing the server on the front end? (Hint: If using a hostname, use... |
Forum: PHP Aug 20th, 2007 |
| Replies: 8 Views: 676 Re: Making a page read-only "Read only" is a file access issue, not a PHP issue. If your web server is set up correctly, only authorized users should be able to change your page anyway, so read-only will only keep you from... |
Forum: PHP Jul 2nd, 2007 |
| Replies: 5 Views: 1,110 |
Forum: PHP Jul 2nd, 2007 |
| Replies: 1 Views: 432 Re: accept action before continue You can do this a couple different ways, both of which that come to mind involve using forms.
You can either have a check box that says "I agree" and a "continue" button (this is the usual method,... |
Forum: PHP Jul 2nd, 2007 |
| Replies: 5 Views: 1,110 |
Forum: PHP Jul 2nd, 2007 |
| Replies: 2 Views: 698 Re: PHP.ini settings for showing graphics AFAIK, php.ini does not have a "show graphics" or "show images" option. (A quick search for "graphics" or "images" returns nothing related unless you're doing dynamic images.) Whether or not... |
Forum: PHP Jun 30th, 2007 |
| Replies: 6 Views: 931 Re: Simple include() problem That's how it's supposed to work.
When you call the page with index.php, the &p= part is NULL. The null (or unset) case is not handled in your if statement, so it's branching to else. |
Forum: PHP Jun 29th, 2007 |
| Replies: 1 Views: 595 Re: Searching all columns in a table What is your error message?
My psychic debugging skills are weak, but I'm getting a feeling you need to run mysql_query() before mysql_fetch_array(). |
Forum: PHP Jun 29th, 2007 |
| Replies: 2 Views: 587 |
Forum: PHP Jun 29th, 2007 |
| Replies: 5 Views: 4,846 |
Forum: PHP Jun 28th, 2007 |
| Replies: 5 Views: 4,846 |
Forum: PHP Jun 28th, 2007 |
| Replies: 4 Views: 1,223 Re: single sign on software for all application? MSN was supposed to be an example of such an idea. The idea never really caught on, mainly because the single login exposed too much.
A thought just occured to me... You can transfer cookies. ... |
Forum: PHP Jun 27th, 2007 |
| Replies: 5 Views: 4,846 |
Forum: PHP Jun 27th, 2007 |
| Replies: 4 Views: 1,223 Re: single sign on software for all application? MSN is supposed to allow you to do something like this. If a site supports the "Microsoft Network" universal login, you should be able to log in using your MSN (hotmail) account.
If you can't tie... |
Forum: PHP Jun 27th, 2007 |
| Replies: 9 Views: 2,038 Re: Parse error: parse error, unexpected T_STRING Please start a new thread to ask a different question. If you find one similar to what your problem is, you can link to it.
October 2006 was a long time ago, I had forgotten all about errorcodes... |
Forum: PHP Jun 27th, 2007 |
| Replies: 7 Views: 2,224 |
Forum: PHP Jun 25th, 2007 |
| Replies: 4 Views: 1,575 Re: Best open free PHP editor I'm partial to ConTEXT (http://context.cx/) myself. You can download and update different highlighters, so both your HTML and PHP can be syntax highlighted (If the HTML is not in quotes).
It also... |
Forum: PHP Jun 25th, 2007 |
| Replies: 4 Views: 2,382 Re: Date Field in MySQL with PHP /add/edit/delete See also:
http://www.daniweb.com/forums/thread81362.html
http://www.php.net/manual/en/function.date.php
The link to php.net is probably the more useful one for your situation. If you look in the... |
Forum: PHP Jun 25th, 2007 |
| Replies: 3 Views: 770 Re: reviews,news script Sounds like what you want is blog software. I have implemented my blog software as an update section on my web page, but have yet to really integrate... |
Forum: PHP Jun 24th, 2007 |
| Replies: 3 Views: 741 |
Forum: PHP Jun 24th, 2007 |
| Replies: 1 Views: 918 Re: Cannot load MySQL extension Check your PHP.INI file. Make sure it knows where your modules are supposed to be loaded from, and check that you're actually loading the php.ini file. (I ran in to this problem installing PHP a... |
Forum: PHP Jun 24th, 2007 |
| Replies: 7 Views: 1,135 Re: PHP Templates By "tracing" I meant to look at how the templates are loaded and used by one of your cited examples.
PHPBB was using "eval", you're right. |
Forum: PHP Jun 23rd, 2007 |
| Replies: 3 Views: 741 |
Forum: PHP Jun 23rd, 2007 |
| Replies: 7 Views: 1,135 Re: PHP Templates I think I noticed PHPBB using the "execute" command. Have you done anything to trace the loading of those template files? (I've done a bit with PHPBB, but I was installing mods, not figuring out... |
Forum: PHP Jun 21st, 2007 |
| Replies: 4 Views: 2,332 |
Forum: PHP Jun 20th, 2007 |
| Replies: 3 Views: 1,301 |
Forum: PHP Jun 20th, 2007 |
| Replies: 10 Views: 1,588 Re: PHP without server PHP includes a command-line interpreter. You can run your PHP script through that, direct the output to a file and open that file in the web browser.
So, yes, it's possible. It quickly gets... |
Forum: PHP Jun 20th, 2007 |
| Replies: 1 Views: 715 Re: Email problem in php. Plz help me You may have to change your Content-type header to a charset other than utf-8. I believe that's 8-bit ASCII.
Btw, please use [ code ] tags. It keeps formatting, which makes code easier to read. |
Forum: PHP Jun 20th, 2007 |
| Replies: 3 Views: 1,758 Re: insert date into databases I've been using a code snippet from PHP.net's comments page on date formatting to do what NOW() does. I might just be rewriting some queries to take advantage of NOW(), rather than that... |