[PHP] Re: Regex Parsing

2004-12-05 Thread [ rswfire ]
> preg_match_all('#\[LEVEL([0-9])\](.*)\[/LEVEL[0-9]]#Uim', $content, $matches); You make it look so easy, thanks! That takes care of step one, but how do I make it so everything in $content where there is a level set, is replaced with ###LEVEL?### Does #Uim tell it to only get the first [/LEVE

[PHP] Regex Parsing

2004-12-05 Thread [ rswfire ]
I wish to improve upon my regular expression skills. I am creating a journal object that allows me to post my journals online, while at the same time maintaining nine different levels of privacy. For example, if I give a user Level 3 access, then they would be able to see all parts of my entries

[PHP] Regular Expression: Markup Code

2004-09-13 Thread [ rswfire ]
Hello, would someone please help me with my regular expressions? They are so complex! Here is what I need to do. I have a string with contents similar to the following: (a bunch of markup code) (a bunch of markup code) (a bunch of markup cod

[PHP] mod_rewrite (solution)

2002-04-17 Thread [ rswfire ]
Thanks to everyone who tried to help. Apparently, I'm better at this stuff than I thought. The four lines below provide the perfect solution to the problem I was having. RewriteEngine on RewriteBase/ RewriteCond%{REQUEST_FILENAME} !-f RewriteRule^(.+) /index.php __

[PHP] mod_rewrite

2002-04-17 Thread [ rswfire ]
I could really use your help with this. The examples I have received from everyone thus far have not worked, including the last one that you posted. This is the situation: I have multiple domains, each with multiple subdomains, all of which automatically point to the root of my web environme

[PHP] mod_rewrite (the solution)

2002-04-17 Thread [ rswfire ]
RewriteEngine on RewriteBase/ RewriteRule$.* index.php Original Message Follows From: "SHEETS,JASON (Non-HP-Boise,ex1)" <[EMAIL PROTECTED]> To: "'[ rswfire ]'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: RE:

RE: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
e,ex1)" <[EMAIL PROTECTED]> To: "'[ rswfire ]'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: RE: [PHP] Would this work? (mod_rewrite) Date: Wed, 17 Apr 2002 18:29:25 -0400 And I fall victim to my own stupidity/cache again. You actual

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
AIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Would this work? (mod_rewrite) Date: Wed, 17 Apr 2002 17:14:13 -0500 (CDT) Do you have access to your server's error_log file? With any luck there'll be a more informative mes

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
[Wed Apr 17 18:04:19 2002] [alert] [client 172.131.190.148] /home/swiften/public_html/.htaccess: RewriteRule: cannot compile regular expression '*' Original Message Follows From: Miguel Cruz <[EMAIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> C

[PHP] mod_rewrite

2002-04-17 Thread [ rswfire ]
.htaccess (returns 500 misconfiguration error message) { RewriteEngine on RewriteBase/ RewriteRule* index.php } http://swifte.net/phpinfo.php (i did not use braces in the .htaccess file) _ Join the world’s largest e-mai

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
, http_core Original Message Follows From: Miguel Cruz <[EMAIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Would this work? (mod_rewrite) Date: Wed, 17 Apr 2002 16:55:33 -0500 (CDT) On Wed, 17 Apr 2002, [ rswfire ] wrote: &g

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
Follows From: Miguel Cruz <[EMAIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Would this work? (mod_rewrite) Date: Wed, 17 Apr 2002 16:55:33 -0500 (CDT) On Wed, 17 Apr 2002, [ rswfire ] wrote: > Assume I want *.domain.*/

[PHP] sorry i forgot something

2002-04-17 Thread [ rswfire ]
*.domain.*/*.* AUTOMATICALLY goes to the root of my web (my isp set this up for me) _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http:/

[PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
Assume I want *.domain.*/*.* to automatically call index.php (without the user knowing and without any redirecting at all): RewriteEngine on RewriteBase/ RewriteRule*.* index.php [R] I don't know what in the world the [R] is, but it's in almost all of the mod_rewrite examples... :-)

Re: [PHP] form posting to a fake page (another idea)

2002-04-17 Thread [ rswfire ]
them all. Any ideas? Original Message Follows From: Miguel Cruz <[EMAIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] form posting to a fake page (another idea) Date: Wed, 17 Apr 2002 16:29:40 -0500 (CDT) Have a look at http://ht

Re: [PHP] form posting to a fake page (another idea)

2002-04-17 Thread [ rswfire ]
nal Message Follows---- From: Miguel Cruz <[EMAIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] form posting to a fake page Date: Wed, 17 Apr 2002 16:00:17 -0500 (CDT) Your error handler would read them and then construct a redirect conta

Re: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
: Miguel Cruz <[EMAIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] form posting to a fake page Date: Wed, 17 Apr 2002 16:00:17 -0500 (CDT) Your error handler would read them and then construct a redirect containing the form data

Re: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
$_POST[] variables do not exist on a redirected page; that's the problem! Original Message Follows From: Miguel Cruz <[EMAIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] form posting to a fake page Date: Wed, 17 A

Re: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
ideal solution, but it works. Original Message Follows From: Erik Price <[EMAIL PROTECTED]> To: "[ rswfire ]" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] form posting to a fake page Date: Wed, 17 Apr 2002 15:53:55 -0400 On We

RE: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
st not the ideal solution. Thank you. Original Message Follows From: "Jaime Bozza" <[EMAIL PROTECTED]> To: "'[ rswfire ]'" <[EMAIL PROTECTED]> CC: <[EMAIL PROTECTED]> Subject: RE: [PHP] form posting to a fake page Date: Wed, 17 Apr 2002 14:

RE: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
ation. Original Message Follows From: "SHEETS,JASON (Non-HP-Boise,ex1)" <[EMAIL PROTECTED]> To: "'[ rswfire ]'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: RE: [PHP] form posting to a fake page Date: Wed, 17 Apr 2002 15:29:56 -0400 I assume form works

[PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
I am having a problem with posted variables showing up on a redirected page... When someone access the page www.mydomain.com/mypage.html - it does not actually exist so my 404 errordocument is called (which is the root index.php file) - the index.php file knows what to do and creates an appro

[PHP] [ Variable Problems ]

2002-04-15 Thread [ rswfire ]
I have created a website that works somewhat uniquely. Every page is created using the root index.php file. I have an .htaccess document that redirects all 404 errors to this index.php file. So if someone access www.mydomain.com/mypage.html the index.php file is called and knows what to d

[PHP] Sending Files to a Remote User

2002-01-26 Thread [ rswfire ]
Hello, I am creating dynamic CSV files using PHP, and currently these files are being saved on the server, but I would like to send them directly to the user who requested the file, similar to what phpMyAdmin does. I looked at the source for phpMyAdmin and it was a bit complicated. I was hop

[PHP] Dynamic Document Creation

2001-12-07 Thread [ rswfire ]
uence for creating a new page. I cannot do this using PDF because it's not installed on the servers I am using. I could possibly do this in other formats if you know of any solutions. Thank you. rswfire _ Get your FREE downl

[PHP] [ Swift eNetwork ] Matrix

2001-04-11 Thread [ rswfire ]
[ I will never again repeat this message to the PHP Mailing List out of courtesy for all of the respected members of this list. For those of you whom take the time to read this email, thank you, and I hope you find its contents useful to your present and future endeavors... ] http://matrix.

[PHP] how do i...?

2001-04-06 Thread rswfire
$var = "thisclass"; $myclass = new $var; how can i make it recognize $var as a class name? thankz in advance... = = [ rswfire ] http://rswfire.swifte.net/ http://profiles.yahoo.c

RE: [PHP] To The Hacker: CodeBoy

2001-02-11 Thread rswfire
nal commands, e-mail: > [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EM

RE: [PHP] To The Hacker: CodeBoy

2001-02-08 Thread rswfire
take these issues up. > Please email privatly and > complain to the appropriate authrities, the > PHP-General list is not the > place for this. > > James > -- > James Moore > PHP QA Team > [EMAIL PROTECTED] > = =

[PHP] To The Hacker: CodeBoy

2001-02-08 Thread rswfire
lnerabilities during this time, but when I go live with my network this will not be the case. If any further attempts are made to hack into my system I will clearly take the time to retaliate against you. Let this be your only warning. = =

[PHP] Formatting/Financial

2001-02-01 Thread [ rswfire ]
Is there a simple way to format a variable into an appropriate financial string... 5.0 5.4 4.346 I'd like all of the above to format as $XXX.XX _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- PHP General

[PHP] Thankz

2001-01-31 Thread [ rswfire ]
The $$ thing works. You're right, I wasn't thinking it through... _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Dynamic Variable Creation from Forms

2001-01-31 Thread [ rswfire ]
I have a problem I'm not sure how to fix. PART I I have a form on a page that creates its variables dynamically. Here's an example: mysql_db_query($db, "SELECT * FROM table"); while ($row = mysql_fetch_array($result)) { echo ""; } PART II I need to make reference to these dynamically cr

RE: [PHP] Pricing for PHP programming???

2001-01-31 Thread [ rswfire ]
something out together... The release date is Valentine's Day... http://www.geocities.com/rswfire/enetwork/ Rob Swift International _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- PHP General Ma

Re: [PHP] Dynamic Variable Creation from Forms

2001-01-31 Thread [ rswfire ]
http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "[ rswfire ]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 01, 2001 11:28 AM

[PHP] Apache/PHP Configuration Problem on NT5

2001-01-29 Thread [ rswfire ]
I have set up an ErrorDocument 404 in httpd.conf to point to a PHP file in the root of my documents. It was working, now suddenly it has stopped working. Here's the scenario: When I attempt to view a page that is not there, I receive a 500 Internal Error Message, as follows: ===

[PHP] Hey Rasmus!

2001-01-29 Thread [ rswfire ]
There's something wrong with the PHP list... I was wondering if you could help me with a problem I'm having... I set up an ErrorDocument 404 in my httpd.conf file to point to a local file. For awhile, this was working fine, but now I'm receiving a 500 Internal Error message and the following

[PHP] Apache/PHP Configuration Problem on NT5

2001-01-29 Thread [ rswfire ]
My apologies if you receive this message twice, I'm not sure if it went through the first time. I've set up an ErrorDocument 404 in httpd.conf to point to a local PHP file. When I attempt to access a page that doesn't exist, rather than seeing this page, I get an Internal Error 500. If I go i

[PHP] Thankz...

2001-01-27 Thread [ rswfire ]
It took some work, but everything is working exactly as it should be across the entire network ... both with IIS and Apache. Thank you, everyone, for your help tonight! It was very much appreciated... _ Get your FREE download of M

[PHP] Programming the Hard Way?

2001-01-27 Thread [ rswfire ]
Am I programming the hard way? I *always* parse my strings like this... mysql_query("SELECT * FROM table WHERE id='".$id."'"); Could I just do this? mysql_query("SELECT * FROM table WHERE id='$id'"); If so, is this compatable across all platforms and versions of PHP? _

[PHP] Apache Server

2001-01-27 Thread [ rswfire ]
How come my Apache Server goes down after a short time and forces me to restart it? Shouldn't it just stay active?! _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- PHP General Mailing List (http://www.php.n

[PHP] Apache

2001-01-27 Thread [ rswfire ]
I've encounted some serious problems with Apache. I'm about to claim to be an IIS fan real soon!! Can anyone help me with the following... 1. Why does $PHP_SELF include /php/php.exe in the variable? How can I stop it from doing that? 2. Same thing with $SCRIPT_NAME as $PHP_SELF except it

RE: [PHP] JavaScript/PHP Function -> Apache/IIS5 -> Client Properties

2001-01-27 Thread [ rswfire ]
l getting the same problem. I don't exactly understand your code below. First of all, I do not want to use cookies at all - not anywhere on my network. Too much controversy. So I take advantage of the database in that respect. Secondly, does the code example below automatically sub

[PHP] JavaScript/PHP Function -> Apache/IIS5 -> Client Properties

2001-01-27 Thread [ rswfire ]
I need to get a whole bunch of client properties from a visitor on my site before a page is displayed. I do this using JavaScript. I first determine if the visitor's browser supports JavaScript, and if it does I run a function that basically builds a temporary page and returns a bunch of cli

[PHP] CGI/PHP4

2001-01-27 Thread [ rswfire ]
Hello, I have PHP4 installed on my NT5 system as a CGI and it is working with IIS5 and Apache. But I never realized that the CGI version ends up in the URL when I use it with Apache. I really have a thing against this. =) Is there any way to prevent that? Or do I need to use the module ve

[PHP] Apache -> PHP 4 (CGI)

2001-01-27 Thread [ rswfire ]
I currently have PHP4 installed as a CGI on my NT5 computer. It works with IIS5. I just installed Apache and it's working. =) But how can I make it see my CGI version of PHP _ Get your FREE download of MSN Explorer at http:/

[PHP] Amazing!!

2001-01-27 Thread [ rswfire ]
I restarted the Apache server and the Forbidden error is gone. But it does not recognize PHP. What do I need to do to make that work guys? _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- PHP General Mailin

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread [ rswfire ]
Thank you Brian and Jonathon. You are both very helpful!! I think I like the idea of a tray icon -- rather than an annoying DOS window I cannot get rid of from my task bar! =) No offense, Jonathon... I agree, I need to work on my command line skills... Should I install Apache as a service

[PHP] Apache on NT 5 =)

2001-01-27 Thread [ rswfire ]
I'm getting a Forbidden error when I try to access my site using Apache. Does anyone know what I did wrong? This is the contents of my httpd.conf file: ServerType standalone ServerRoot "C:/Program Files/Apache" PidFile logs/httpd.pid ScoreBoardFile logs/apache_runtime_status Timeout 300

RE: [PHP] NT5 Sub Domains

2001-01-27 Thread [ rswfire ]
ed the IIS service. And now I can't get it to restart, not sure why... I set Bind to * Should I set the ServerName directive to domain.dev? Or does this have to be done in the HOSTS file you mentioned? This is really sweet. =) >From: "Jonathan Sharp" <[EMAIL PROTECT

[PHP] Apache on NT5

2001-01-27 Thread [ rswfire ]
Rasmus, I think that was a really good idea to install Apache on my system. Thanks for the heads up. I am downloading apache_1_3_14_win32_r2.exe. Is that all I need? This is scary new territory for me... I hope this is the right file. ___

Re: [PHP] NT5 Sub Domains

2001-01-27 Thread [ rswfire ]
I've never tried that before. I'd be scared of doing something wrong. Can I use Apache locally as an Intranet? Can I run both IIS and Apache? I wouldn't know where to begin... =) I can hear the answer already... apache.com >From: Rasmus Lerdorf <[EMAIL PROTEC

[PHP] NT5 Sub Domains

2001-01-27 Thread [ rswfire ]
This is a little off topic, so I apologize, but I was hoping one of the computer gurus here could help me. When I go live with my network, I will be using sub-domains. Such as: http://subdomain.domain.com/ In order to test this on my NT5/IIS5 system, I need to be able to use these subdomain

Re: [PHP] Custom Error 404

2001-01-27 Thread [ rswfire ]
. It looks like all I need is the REDIRECT_QUERY_STRING on Apache. So I will only need to parse the NT string while I am developing the network. Thanks again! >From: Rasmus Lerdorf <[EMAIL PROTECTED]> >To: "[ rswfire ]" <[EMAIL PROTECTED]> >CC: <[EMAIL PROTE

[PHP] PHP Triad

2001-01-27 Thread [ rswfire ]
What is PHP Triad? How can I learn more about it?? = Hello guys, I've just installed PHP and Apache on my Win2K workstation at home using PHPTriad. my include_path in PHP.ini has the following: include_path= "p:\includes c:\phplib P:\oth

[PHP] Custom Error 404

2001-01-27 Thread [ rswfire ]
I am designing a network of Internet sites on NT5 using PHP. However, when I go live with the network, it will be on a Linux system using PHP. My sites are handled somewhat uniquely. When a visitor (or a component of the network) enters a URL address, the address does not really exist! They

[PHP] Uninstallation of CGI Version of PHP --> ISAPI Module Wanted Instead

2001-01-26 Thread rswfire
install the ISAPI module now? Thanks in advance for your help. Sincerely, rswfire __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To

[PHP] Uninstallation of CGI Version of PHP

2001-01-26 Thread [ rswfire ]
install the ISAPI module now? Thanks in advance for your help. Sincerely, rswfire _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] eval() to string???

2001-01-24 Thread [ rswfire ]
I want to evaluate some PHP code to a string. How can I do this? $php_code = "echo 'hello';" I would like to evaluate the code to "hello" in another string...

[PHP] Re: PHP Parse MySQ: Field???

2001-01-20 Thread [ rswfire ]
Richard, THANK YOU!!! I agree -- this method provides many security vulnerabilities and I appreciate the warning. The database is definitely secure -- from web-surfers and others. Also, I intend to parse the information going into the database myself -- using a simple parse engine I will cr

[PHP] Fw: PHP Parse MySQL Field???

2001-01-19 Thread [ rswfire ]
Please email me directly with your response. I am not subscribed to the list. Thankz in advance. - Original Message - From: [ rswfire ] To: Sent: Friday, January 19, 2001 9:56 PM Subject: PHP Parse MySQL Field??? I have a BLOB field in a MySQL database that I want to parse into

[PHP] PHP Parse MySQL Field???

2001-01-19 Thread [ rswfire ]
I have a BLOB field in a MySQL database that I want to parse into my page using PHP. For instance, in this field might be the following: So when I access this field in PHP I want it to display "test". Is this possible?

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread [ rswfire ]
t is allocated a certain amount of disk > space > > usage on my server and I need to determine how much space they are using > in > > the database. > > > > Any ideas on how to do this in PHP??? > > > > Please email me directly with a response. Thank you

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread [ rswfire ]
!!! - Original Message - From: Romulo Roberto Pereira <[EMAIL PROTECTED]> To: [ rswfire ] <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 2:29 PM Subject: Re: [PHP] MySQL Disk Space Usage > I think that these are your answer: >

[PHP] MySQL Disk Space Usage

2001-01-17 Thread [ rswfire ]
Is it possible to find out how much disk space a particular number of rows in a table takes up?? If you have an answer, please email me directly. Thank you!!