Forum: PHP Oct 8th, 2007 |
| Replies: 11 Views: 1,983 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: 735 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,983 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... |
Forum: PHP Oct 7th, 2007 |
| Replies: 13 Views: 3,890 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: 1,644 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,983 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: 1,736 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: 516 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: 870 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: 2,875 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: 639 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: 1,057 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: 1,296 "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: 2,085 You'll need to update to the latest version of PHP first. You'll then want to run an upgrade all command (pear upgrade-all) to try to get the all the latest packages.
PHPUnit's a pain to install... |
Forum: PHP Jul 2nd, 2007 |
| Replies: 1 Views: 721 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: 2,085 Do you have the latest version of Pear? If not, update to the latest and see if that helps on installing phpunit. |
Forum: PHP Jul 2nd, 2007 |
| Replies: 2 Views: 1,158 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: 1,438 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: 1,161 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: 914 You don't want "register globals" on. It's behavior can lead to security issues, as describe in the linked article.
http://www.php.net/register_globals
Your code should be fixed instead, which... |
Forum: PHP Jun 29th, 2007 |
| Replies: 5 Views: 11,663 It's very possible that you had version conflicts. They don't always play nice together.
I had a problem with MySQL stopping after it started a week ago that I fixed by rebooting. Maybe it's... |
Forum: PHP Jun 28th, 2007 |
| Replies: 5 Views: 11,663 Ok, we'll switch to software troubleshooting:
Is MySQL running and in memory? It should show up on Window's Processes list.
If not, perhaps something's preventing it from starting. Try... |
Forum: PHP Jun 28th, 2007 |
| Replies: 4 Views: 2,118 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 28th, 2007 |
| Replies: 5 Views: 11,663 What's your connection string? (Be sure to replace the password with something like 'PASSWORD' if you don't want it shared.) |
Forum: PHP Jun 28th, 2007 |
| Replies: 4 Views: 2,118 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 28th, 2007 |
| Replies: 9 Views: 2,660 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: 4,385 Take a look at the mysql_fetch* functions and mysql_result. I've got a feeling that mysql_result will do what you want.
(You can simply type "MySQL" in php.net's search box to bring up a page... |
Forum: PHP Jun 25th, 2007 |
| Replies: 7 Views: 3,243 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: 6,005 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... |
Forum: PHP Jun 25th, 2007 |
| Replies: 3 Views: 1,164 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 it.
... |
Forum: PHP Jun 24th, 2007 |
| Replies: 3 Views: 1,354 |
Forum: PHP Jun 24th, 2007 |
| Replies: 1 Views: 1,496 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,734 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: 1,354 What's PHP telling you when you run the code? |
Forum: PHP Jun 23rd, 2007 |
| Replies: 7 Views: 1,734 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: 5,674 Sometimes I just wind up fixing vexing problems like this by copying the code that's the same from another working file... |
Forum: PHP Jun 20th, 2007 |
| Replies: 3 Views: 2,075 You may have too many closed blocks before the case. One of the }'s may be closing your switch statement before it's truely at the end. |
Forum: PHP Jun 20th, 2007 |
| Replies: 15 Views: 3,825 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: 988 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: 4,927 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 function.
... |