[PHP] PHP - File Edit

2003-06-06 Thread Matt Zur
Does anyone know of a simple program that will let me specify a file 
within a certain directory to load into a textarea field, let me make 
changes, then export/replace that file with the changed contents?

I tried writing one myself in PHP, but I ran into a problem with quotes. 
If I had tags in in the text area e.g. table width=500  it would 
mess up the quotes by adding back slashes etc.

TIA,

-Matt
--
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com
Need a Web Site??? - Visit... www.zurnet.com

1997 - 2003 - 6th Anniversary!!!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] more stress on server...

2002-09-21 Thread Matt Zur

Here is the site and the file names:
Test Site:
- index.php
- about.php
- services.php

Which example would cause more stress on the server and/or what are the 
advantages, disadvantages to each example?

Example 1
-index.php with these links:
a href=index.phpHome/a
a href=index.php?view=aboutHome/a
a href=index.php?view=servicesHome/a

With the index.php using a switch statment for the view var and file 
includes.

OR

Example 2
-index.php with these links:
a href=index.phpHome/a
a href=about.phpHome/a
a href=services.phpHome/a

Any help will be appreciated.

-Matt



-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] message board and gb...

2002-09-09 Thread Matt Zur

Does anyone know of a guestbook and messageboard similiar/equiv. to the 
ones found here:  http://www.scriptarchive.com/ on the homepage.

I know there is a link to PHP on the left, but I've been searching 
around and haven't been able to find one that are similiar to the link 
above.

Thanks.

-Matt

PHP TOOLBAR (v1.5) for HomeSite v5 - http://zurnet.com/dl/hsphptb

-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] post doesn't work?

2002-09-04 Thread Matt Zur

I have a form that posts to another php file.  But it won't display the 
var?  It just shows a blank screen.

For example

test.php  has form input name
test2.php  prints name

On test2.php it shows a blank screen, but if I assign $name on test2.php 
and reload, it will print the var.  Is there something in the php.ini 
that I have to change to get vars to post? or some setting somewhere else?

-Matt



-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: post doesn't work?

2002-09-04 Thread Matt Zur

Didn't seem to fix it.

-Matt

[EMAIL PROTECTED] wrote:
 If you have register globals off, you must use $_POST['name'] and not $name.
 Check your php.ini (? phpinfo(); ?)
 
 --
 
 Nicos - CHAILLAN Nicolas
 [EMAIL PROTECTED]
 www.WorldAKT.com - Hébergement de sites Internet
 
 Matt Zur [EMAIL PROTECTED] a écrit dans le message de news:
 [EMAIL PROTECTED]
 
I have a form that posts to another php file.  But it won't display the
var?  It just shows a blank screen.

For example

test.php  has form input name
test2.php  prints name

On test2.php it shows a blank screen, but if I assign $name on test2.php
and reload, it will print the var.  Is there something in the php.ini
that I have to change to get vars to post? or some setting somewhere else?

-Matt



--
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!

 
 
 


-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Nevermind... I got it... Thanks!

2002-09-04 Thread Matt Zur

Thanks Again!

-Matt

[EMAIL PROTECTED] wrote:
 If you have register globals off, you must use $_POST['name'] and not $name.
 Check your php.ini (? phpinfo(); ?)
 
 --
 
 Nicos - CHAILLAN Nicolas
 [EMAIL PROTECTED]
 www.WorldAKT.com - Hébergement de sites Internet
 
 Matt Zur [EMAIL PROTECTED] a écrit dans le message de news:
 [EMAIL PROTECTED]
 
I have a form that posts to another php file.  But it won't display the
var?  It just shows a blank screen.

For example

test.php  has form input name
test2.php  prints name

On test2.php it shows a blank screen, but if I assign $name on test2.php
and reload, it will print the var.  Is there something in the php.ini
that I have to change to get vars to post? or some setting somewhere else?

-Matt



--
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!

 
 
 


-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] whitespace...

2002-09-04 Thread Matt Zur

How do I remove the whitespace from a document? I consulted the manual 
and it said to use the trim function.  But in a large PHP document, with 
lots of fuctions etc in PHP... is there a simple way to compress the 
whitespace of the entire document?  Rather than going through each var 
and using the trim?  Like add a header at the top:  ?PHP 
compresswhitespace() ?


If you have a 300k php document, won't the source code reveal (after the 
browser displays the page) a bunch of whitespace.  Doesn't this add to 
dl time and if so, how do I get rid of it.

TIA,

-Matt




-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: whitespace...

2002-09-04 Thread Matt Zur

If you have a file includes IE:

include (data.inc);

and have arrays n such with multiple php tags in that file, it will 
produce alot of white space on the final output.

-Matt

Philip Hallstrom wrote:
 I'm not sure I fully understand your question, but given the following PHP
 file:
 
 ?php
print(hello);
 
 
#assume there are hundreds of blank lines just above this one.
 ?
 
 
 all the browse will see is this (minus the dashed lines).
 
 --
 hello
 --
 
 On Wed, 4 Sep 2002, Matt Zur wrote:
 
 
How do I remove the whitespace from a document? I consulted the manual
and it said to use the trim function.  But in a large PHP document, with
lots of fuctions etc in PHP... is there a simple way to compress the
whitespace of the entire document?  Rather than going through each var
and using the trim?  Like add a header at the top:  ?PHP
compresswhitespace() ?


If you have a 300k php document, won't the source code reveal (after the
browser displays the page) a bunch of whitespace.  Doesn't this add to
dl time and if so, how do I get rid of it.

TIA,

-Matt




--
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 
 


-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] database suggestions...

2002-08-31 Thread Matt Zur

I released v1.5 today for my PHP toolbars for HomeSite v5.0.  The 
toolbars are free!

The biggest change was the additiona of a separate toolbar for db's.
So I'm asking for any suggestions to improve that, since I feel that is 
where most of the work should be done. If you have any other 
suggestions, send them along as well.

-Matt


-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] whoops... here's the address...

2002-08-31 Thread Matt Zur

http://zurnet.com/dl/hsphptb/

-Matt

Matt Zur wrote:
 I released v1.5 today for my PHP toolbars for HomeSite v5.0.  The 
 toolbars are free!
 
 The biggest change was the additiona of a separate toolbar for db's.
 So I'm asking for any suggestions to improve that, since I feel that is 
 where most of the work should be done. If you have any other 
 suggestions, send them along as well.
 
 -Matt
 
 


-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] few things...

2002-08-30 Thread Matt Zur

First of all...
I'm a bit confused is there really a difference between echo and print? 
They seem to do the same thing?

Also... I have trouble searching for these things in the docs:
A Call Function to emulate a browser and contact a remote host?  For 
example... to load in a piece of text from another web site?

Hidden fuction.  For example lets say I have a form with 10 variables. 
Is there a function where I can do something like:

hidden($var1,$var2,$var3)  etc etc so it will write this:
input type=hidden name=var1name value=var1value
input type=hidden name=var2name value=var2value
input type=hidden name=var2name value=var2value

Thanks for the help!

PHP Toolbar for Homesite v5.0 - http://zurnet.com/dl/hsphptb/
Version 1.5 Coming Soon!!!



-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP Toolbar for Homesite...

2002-08-29 Thread Matt Zur

I made a php toolbar for Homesite v5.  It's currently at v1.0 right now, 
but I'm looking for any suggestions anyone might have for the next version.

http://zurnet.com/dl/hsphptb/

-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] filter records... how?

2002-08-27 Thread Matt Zur

I have this set of code.  and what I want to know how to do is how to 
filter one or more vars in the flat file?  For example filter all the 
people that work at night

I'm assuming it has to be in this part of the code:
for($i = 0; $i  count($arr_lines); $i++)
{
 $arr_data = explode($delim, $arr_lines[$i]);
 print $arr_data[0].' '.$arr_data[1].' '.$arr_data[2].'BR';
}

But where do I add an IF statement if that is what is needed?

?php

/*assigned vars*/
$delim = \t;
$file_path = newfile.dat;

$name = matt;
$works = at night;
$programs = php;

/*exporting data to flat file*/
$file = fopen($file_path, a);
fwrite($file, $name.$delim);
fwrite($file, $works.$delim);
fwrite($file, $programs);
fwrite($file, \n);
fclose($file);

$file = fopen($file_path,r);
$page = fread($file, 4950);

$arr_lines = explode(\n, $page);
for($i = 0; $i  count($arr_lines); $i++)
{
 $arr_data = explode($delim, $arr_lines[$i]);
 print $arr_data[0].' '.$arr_data[1].' '.$arr_data[2].'BR';
}

fclose($file);

?

TIA!

-Matt



-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] newbie... - undefined var

2002-08-26 Thread Matt Zur

I'm just starting to learn php and have a quick question. I'm making a 
site with file includes.  so for example my default page will be:
index.php and services page with be called services.php

BUT... I want to link to services via this method:  index.php?vw=services

Still no problem there.

BUT on the index.php I want to write this if statement:

if ($vw == ) {
write this code
}

But then I get an error that the var is non defined.  Do all vars in PHP 
have to be defined first?  If it isn't defined, doesn't the program 
assume it's value is nothing?

-Matt

-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php