Search found 47 matches

by phpCCore Brad
Tue Aug 15, 2006 12:38 pm
Forum: PHP - Code
Topic: Case Insenitive string replacing - php 4
Replies: 5
Views: 329

I was more of hoping of a way to force eregi to look at string as a string and not the possibilty of a pattern.
by phpCCore Brad
Tue Aug 15, 2006 12:20 pm
Forum: PHP - Code
Topic: Case Insenitive string replacing - php 4
Replies: 5
Views: 329

Yeah I thought about that. I was trying to keep away from it because of how many functions I have to call etc. Trying to keep down on the load time. Was just trying to see if someone has a better way of doing it.
by phpCCore Brad
Tue Aug 15, 2006 11:32 am
Forum: PHP - Code
Topic: Case Insenitive string replacing - php 4
Replies: 5
Views: 329

Case Insenitive string replacing - php 4

Okay, this is a pretty basic question. What is everyone's opinion on doing case insentive string replacements in php 4. I use to user eregi_replace(), but this has started to cause problems with patterns being inputted, etc. I would love to use str_ireplace(), but since it's php 5 only I can't. This...
by phpCCore Brad
Wed Jun 28, 2006 8:03 pm
Forum: PHP - Code
Topic: Security question
Replies: 4
Views: 467

Security question

So, I have been reading and have noticed a lot of people say sessions aren't truly secure and IPs aren't truly secure. So, what is the best way of securing a website then. I mean right now I store a hash in my database and the user's IP along with sessions. Is that the best way to go for this situat...
by phpCCore Brad
Tue Jun 27, 2006 10:01 pm
Forum: PHP - Code
Topic: I had a revelation today.
Replies: 47
Views: 2838

EH I don't really use the anchor I do ? but I figured there was something someone else knew that I didn't ;) I am pretty sure he was talking about an Auth. Such as a user is viewing a dynamic link but without logging in they can't view the dynamic link so the login form shows up. Then after you log ...
by phpCCore Brad
Tue Jun 27, 2006 9:52 pm
Forum: PHP - Code
Topic: I had a revelation today.
Replies: 47
Views: 2838

Maybe we are just not understanding what he meant... It's probably a miscommunication. I guess I just always use one script to handle a lot of things, so it never occurs to me to make another script for handling.
by phpCCore Brad
Tue Jun 27, 2006 9:32 pm
Forum: PHP - Code
Topic: I had a revelation today.
Replies: 47
Views: 2838

Oh and as was said above posting to a blank anchor will keep it to the right page.... If that was the problem you are seeing. Example: <?PHP if (isset($_REQUEST)) { print_r($_REQUEST); } ?> <form method="post" action="#?testvar=test"> <input type="submit" name="hel...
by phpCCore Brad
Tue Jun 27, 2006 9:25 pm
Forum: PHP - Code
Topic: I had a revelation today.
Replies: 47
Views: 2838

I found what i was talking about. It uses output buffering though.

output_add_rewrite_var()
by phpCCore Brad
Tue Jun 27, 2006 9:21 pm
Forum: PHP - Code
Topic: I had a revelation today.
Replies: 47
Views: 2838

I swear I found a function on php's function list that adds hidden elements to forms for that purpose and it adds variables to URLs to, but I can't for the life of my rememeber what it is.
by phpCCore Brad
Tue Jun 27, 2006 9:16 pm
Forum: PHP - Code
Topic: I had a revelation today.
Replies: 47
Views: 2838

There is a function that will format URLs and forms to post to dynamic pages... I am trying to think what it is.... *goes to check out all functions*
by phpCCore Brad
Tue Jun 27, 2006 6:13 pm
Forum: Installation and Configuration
Topic: Search engine optimization
Replies: 4
Views: 1065

Search engine optimization

I wrote an .htaccess that forwards any file in a directory to one php script. RewriteEngine on RewriteRule ^([A-Za-z0-9._%-]+)/?$ /index.php?pageLoader=true&cmd=$1 The problem is I am facing is that post variables don't transfer obviously. I can get the GET variables but not the post variables. ...
by phpCCore Brad
Tue Jun 27, 2006 8:23 am
Forum: PHP - Code
Topic: I need help w/ my login script
Replies: 30
Views: 3245

He didn't really duplicate the post. He posted about his registration script. Which, is because he is just learning php and had no idea how to do a SQL insert.
by phpCCore Brad
Mon Jun 26, 2006 10:09 pm
Forum: PHP - Code
Topic: Convert a Perl CGI script to a php script
Replies: 4
Views: 688

Okay this is my final version. It sets the two cookies (I ran the perl script to see.) It sets them for the right date of experation, but I have no idea if the hash is right. I also think that it writes the file right since I took it as it ups the cookies each time it runs. If anyone can see if I ma...
by phpCCore Brad
Mon Jun 26, 2006 9:55 pm
Forum: PHP - Code
Topic: Convert a Perl CGI script to a php script
Replies: 4
Views: 688

I did do that... This is what I came up with. Some are just guesses some are educated guesses and some I am pretty sure I have right. I still don't have any idea what a chunk of the code does, but this is what I have converted: <?PHP $theFile = "../conf/cookie"; /* # Set the nvpairs array ...
by phpCCore Brad
Mon Jun 26, 2006 9:30 pm
Forum: PHP - Code
Topic: Convert a Perl CGI script to a php script
Replies: 4
Views: 688

I also wrote up one with comments on what I think things do, but obvious I don't know. Maybe just some hints would help me greatly. Maybe if someone could clarify to me what something is doing I could rewrite it myself. I am just looking for some sort of help. Simply because I don't want to setup pe...