User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 403,079 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,163 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 491
Search took 0.04 seconds.
Posts Made By: Puckdropper
Forum: PHP Oct 8th, 2007
Replies: 11
Views: 1,243
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
Re: phpunit installation says about reflection extension

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: 432
Posted By Puckdropper
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
Posted By Puckdropper
Re: phpunit installation says about reflection extension

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: 698
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
Re: Is there a conflict between Php 4.3.2 and Php4.2.3?

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: 4,846
Posted By Puckdropper
Re: Can't connect to MySQL server on 'localhost' (10061)

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 just...
Forum: PHP Jun 28th, 2007
Replies: 5
Views: 4,846
Posted By Puckdropper
Re: Can't connect to MySQL server on 'localhost' (10061)

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 launching...
Forum: PHP Jun 28th, 2007
Replies: 4
Views: 1,223
Posted By Puckdropper
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
Posted By Puckdropper
Re: Can't connect to MySQL server on 'localhost' (10061)

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 27th, 2007
Replies: 4
Views: 1,223
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
Re: retrieving a single cell of data from a MySQL database

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 that...
Forum: PHP Jun 25th, 2007
Replies: 4
Views: 1,575
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
Re: erro in db class

Which line is line 23?
Forum: PHP Jun 24th, 2007
Replies: 1
Views: 918
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
Re: erro in db class

What's PHP telling you when you run the code?
Forum: PHP Jun 23rd, 2007
Replies: 7
Views: 1,135
Posted By Puckdropper
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
Posted By Puckdropper
Re: Error: "couldn't fetch mysqli ..."

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: 1,301
Posted By Puckdropper
Re: Help Needed Parse error: syntax error

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: 10
Views: 1,588
Posted By Puckdropper
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
Posted By Puckdropper
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
Posted By Puckdropper
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...
Showing results 1 to 40 of 491

 
All times are GMT -4. The time now is 1:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC