php-general Digest 2 Jan 2002 11:55:50 -0000 Issue 1087

Topics (messages 79189 through 79214):

Re: Oracle
        79189 by: Martin Towell

Hosting provider...
        79190 by: Matt Moreton
        79191 by: Kurt Lieber
        79193 by: steph.philedom2k.com
        79203 by: Boaz Yahav

Mysql Curdate problem
        79192 by: Andras Kende

connect MS Access
        79194 by: gendeng
        79195 by: Matt Friedman
        79209 by: Paul Roberts

Re: Session troubles
        79196 by: Sean LeBlanc

Get PHP Configuration
        79197 by: Larentium
        79198 by: Adam Baratz
        79199 by: Daniel Grace

Re: How to convert integers representations of a date to a date format variable
        79200 by: Daniel Grace

Re: Need some Linux/Apache help
        79201 by: Brian Clark

URGENT-PDF
        79202 by: Chamarty Prasanna Kumar

connect
        79204 by: gendeng
        79205 by: George Nicolae

Re: Select box won't display in Netscape 4.xx
        79206 by: Martin Schichl
        79207 by: Jerry Verhoef (UGBI)

New Indian PHP User Group Mailing List
        79208 by: Tarique Sani <tarique.sanisoft.com

php newbie
        79210 by: Fady Fouad Shehata
        79211 by: Niklas Lampén
        79212 by: Martin Schichl
        79213 by: Niklas Lampén

Extract a string from a string
        79214 by: qartis

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
there's the OCI* or ORA_* functions depending on the version of oracle
you're using.

-----Original Message-----
From: Phillip B. Bruce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 10:54 AM
To: PHP
Subject: [PHP] Oracle


Hi,

  Has any one on this list worked with Oracle, Apache and PHP. My apache
is configured
   for apache and working with mysql. Just wondered if there is any docs
on connecting to
  Oracle in the same manner mysql is being done?

--
************************************************************
*** Phillip B. Bruce                                     ***
*** http://pbbruce.home.mindspring.com                   ***
*** [EMAIL PROTECTED]                               ***
***                                                      ***
*** "Have you ever noticed? Anybody going slower than    ***
*** you is an idiot, and anyone going faster than you    ***
*** is a maniac." - George Carlin                        ***
************************************************************




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Im looking to change my hosting provider.

...something that isnt going to break the bank, is feature full, supports mysql, php 
etc etc and doesnt limit your bandwidth usage!  I need about 100+ mb's of space, and 
possibly the ability to run a background process.  

Can anyone here suggest a good provider that meets the above criteria?

Thanks

Matt.
--- End Message ---
--- Begin Message ---
On Tuesday 01 January 2002 04:19 pm, Matt Moreton wrote:
> Can anyone here suggest a good provider that meets the above criteria?

Asked and answered about 4 billion times in the archives.  Might check there.

--kurt
--- End Message ---
--- Begin Message ---
I use hostrocket. They seem to meet most of your criteria, but as with many
hosts they do not offer unlimited bandwidth. Personally, I stay away from
hosts that say they offer unlimited bandwidth (there's usually a catch). Has
one of the best Control Panels IMO. Includes PHP, MySQL, Perl, subdomain
support, unlimited emails, more than enough hard drive space (350 MB+), and
more. Support includes trouble ticketing and a support forum. I use the
forum to discuss things with fellow customers than problems with my site as
support through the trouble ticket system is pretty efficient. I get very
fast responses from technical support (One time they responded within less
than 5 minutes of me sending a ticket in with a solution). You may want to
check out their forum and see what other clients have to say also.


----- Original Message -----
From: "Matt Moreton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 01, 2002 4:19 PM
Subject: [PHP] Hosting provider...


Im looking to change my hosting provider.

..something that isnt going to break the bank, is feature full, supports
Myql, php etc etc and doesnt limit your bandwidth usage!  I need about 100+
mb's of space, and possibly the ability to run a background process.

Can anyone here suggest a good provider that meets the above criteria?

Thanks

Matt.


--- End Message ---
--- Begin Message ---
Check out : 

http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm

This is your one stop shop for hosting. WeberDev.com is hosted there
and I can tell you that their service is amazing. They are fast,
reliable
and more than anything, very professional (specially in PHP / MySQL).

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.


-----Original Message-----
From: Matt Moreton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 2:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Hosting provider...


Im looking to change my hosting provider.

...something that isnt going to break the bank, is feature full,
supports mysql, php etc etc and doesnt limit your bandwidth usage!  I
need about 100+ mb's of space, and possibly the ability to run a
background process.  

Can anyone here suggest a good provider that meets the above criteria?

Thanks

Matt.
--- End Message ---
--- Begin Message ---
Hello,

I have a php page which list a table from a mysql database.

Dates can be selected like last 7 days, last 14 days .etc....

It worked perfect till midnight :(

The query is something like:
$aresult=mysql_query("select * from orders WHERE (a3 >= CURDATE()-$datec)"
,$db);


I looking for some advice hos to modify my query or the php code..

Thanks

Andras Kende




--- End Message ---
--- Begin Message ---
halo... i want to know about connect to database. can php (for windows) connect to MS Access.
 
Mpu Strees
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
--- End Message ---
--- Begin Message ---
Please do not send html emails to this list. 

Send only plain text emails.

Matt Friedman


-----Original Message-----
From: gendeng [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday January 1, 2002 8:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] connect MS Access

halo... i want to know about connect to database. can php (for windows)
connect to MS Access.
 
Mpu Strees




____________________________________________________
  IncrediMail - Email has finally evolved - Click Here


--- End Message ---
--- Begin Message ---
yes you can connect via ODBC.
----- Original Message ----- 
From: "Matt Friedman" <[EMAIL PROTECTED]>
To: "'gendeng'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 3:32 AM
Subject: RE: [PHP] connect MS Access


Please do not send html emails to this list. 

Send only plain text emails.

Matt Friedman


-----Original Message-----
From: gendeng [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday January 1, 2002 8:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] connect MS Access

halo... i want to know about connect to database. can php (for windows)
connect to MS Access.

Mpu Strees




____________________________________________________
IncrediMail - Email has finally evolved - Click Here



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




--- End Message ---
--- Begin Message ---
On 12-31 09:23, Jaime Bozza wrote:
> Sean,
>   From your php error_log, it's saying the following:
>       Failed to write session data (user)
> 
>   which sounds like it's having problems writing to the user-defined
> session handler.  Are you using a user-defined session handler?  If not,
> make sure your php.ini file has:
> 
>       session.save_handler = files
> 
> And *NOT*:
>       session.save_handler = user
> 
> That will make a big difference.

Good eye. That was it. I *did* have it as "user" because I was trying to do
my own user-defined session handler, and then stepped back and was just
trying to get the simpler case to work, w/o changing it back. 

Thanks, it works now!

Now, I just need to see if I can get my session_handler working...

It's too bad the error message isn't more descriptive for this, BTW...


> -----Original Message-----
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, December 29, 2001 1:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Session troubles
> 
> 
> On 12-29 12:56, David Jackson wrote:
> > Sean --
> > Don't know if this help but here's what I just worked for me. What 
> > ver. of PHP are you using? It seem to me that 3.x.x needs
> > PHPLIB: http://sourceforge.net/projects/phplib
> > to handle sessions?  -- David Jackson
> > 
> > --- sean.php -------
> > <?php include("seaninc.php"); ?>
> > 
> > --- seaninc.php ------
> > <?php
> > session_start();
> > session_register("i");
> > $i++;
> > echo $i;
> > ?>
> 
> I'm using 4.0.6. I believe session handling was added as part of
> standard 4.x, right (if configured to compile it)? 
> 
> Some more info: I tried with Konqueror, as I know a cookie needs to be
> sent during the session_start() phase - I did get a dialog pop-up asking
> if I wanted to accept the cookie, but I still got the error:
> 
> Fatal error: Failed to initialize session module in
> /usr/local/apache/htdocs/sesstest.php on line 2
> 
> It says line 2 because I deleted some white space and commented out code
> thas was before session_start().
> 
> I set logging errors on, and sent it to syslog. Here's what it says: Dec
> 29 12:12:57 free httpd: PHP Fatal error:  Failed to initialize session
> module in /usr/local/apache/htdocs/sesstest.php on line 2 Dec 29
> 12:12:57 free httpd: PHP Warning:  Failed to write session data (user).
> Please verify that the current setting of session.save_path is correct
> (/tmp) in Unknown on line 0
> 
> But /tmp exists, and is world writeable:
> 
> free# ls -ld /tmp
> drwxrwxrwt  16 root  wheel  1024 Dec 29 12:14 /tmp
> 
> > > On 12-29 09:59, Miles Thompson wrote:
> > >> Sean,
> > >> 
> > >> What's going on in incl.php. Are you issuing a session_start()?
> > > 
> > > No, I was not.
> > > 
> > >> What if it's rearranged like so, as I understand you have to 
> > >> register the session variable  before using it.
> > >> 
> > >> include("incl.php");
> > >> session_start();
> > >> session_register("mine");
> > >> $mine++;
> > >> echo $mine;
> > > 
> > > No dice, either. Actually, I had tried several permutations of the 
> > > order  before posting. :)
> > > 
> > >> 
> > >> There's the divide and conquer approach too.  What do you see if 
> > >> you comment out the include, then issue a phpinfo() and a die()?
> > > 
> > > Okay, I tried commenting out include, resulting in this code:
> > > 
> > > session_start();
> > > session_register("i");
> > > $i++;
> > > echo $i;
> > > 
> > > When I run the above, I get this:
> > > Fatal error: Failed to initialize session module in 
> > > /usr/local/apache/htdocs/sesstest.php on line 6
> > > 
> > > Which is getting somewhere, in a way. Line 6 is session_start();
> > > 
> > > What part from phpinfo() output were you interested in? Or did you 
> > > want to see all of it?
> > > 
> > > Thanks for the help.
> > > 
> > >> 
> > >> HTH and Merry Christmas / Happy New Year - Miles Thompson
> > >> 
> > >> On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
> > >> > I asked this on php-install list, but got no response so here 
> > >> > goes...
> > >> >
> > >> > I simply cannot get session to work correctly. Here's the test
> > >> > script:
> > >> >
> > >> > include("incl.php");
> > >> > session_start();
> > >> > $mine++;
> > >> > session_register("mine");
> > >> > echo $mine;
> > >> >
> > >> > incl.php includes code to save/retrieve session information 
> > >> > to/from DB.  It calles session_set_save_handler at the end.
> > >> >
> > >> > What happens is I get an error because it is trying to read the 
> > >> > variable out and I get a DB error, but my session writing routine
> 
> > >> > is never called...I know, because I have a print in there. And of
> 
> > >> > course, the var doesn't increment upon refreshes - it remains 1.
> > >> >
> > >> > I've seen this before, and it was fixed, but I forget how it was 
> > >> > done, as I didn't actually implement the solution (I hear and I 
> > >> > forget, I do and I remember, I guess). About my system:
> > >> >
> > >> > FreeBSD 4.4
> > >> > Apache 1.3.20
> > >> > PHP 4.0.6
> > >> >
> > >> > Any and all help appreciated.
> > > 
> > > --
> > > Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome 
> > > ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome 
> > > One learns to itch where one can scratch. 
> > > -Ernest Bramah 
> > > Management QOTD:Get hopping on the domain expertise!!
> > > 
> > > 
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional 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: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 
> -- 
> Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome 
> ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome 
> In most countries selling harmful things like drugs is punishable. Then 
> howcome people can sell Microsoft software and go unpunished? 
> -Hasse Skrifvars 
> Management QOTD:Work out a solution that fits with problem management!!
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional 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: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome 
ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome 
They can't stop us... we're on a mission from God! 
-The Blues Brothers 
Management QOTD:It's wrong headed not to articulate the mission and values
and eliminate redundancies in the meta-data.

--- End Message ---
--- Begin Message ---
How would you get the current PHP configuration information,
more specifically, the exact command line used at compilation?

I want to add --with-imap, but have no idea how to determine what the current settings 
are.


Larentium
--- End Message ---
--- Begin Message ---
> How would you get the current PHP configuration information,
> more specifically, the exact command line used at compilation?

Check the output of phpinfo().

-Adam

--- End Message ---
--- Begin Message ---
"Larentium" <[EMAIL PROTECTED]> wrote in message
001f01c19334$270c8940$[EMAIL PROTECTED]">news:001f01c19334$270c8940$[EMAIL PROTECTED]...
> How would you get the current PHP configuration information,
> more specifically, the exact command line used at compilation?
>
> I want to add --with-imap, but have no idea how to determine what the
current settings are.
>
>
> Larentium

phpinfo() shows you the configure command.

If you have the PHP CGI and are running on *nix or something like such, you
can also.

/path/to/php -i | grep ./configure


-- Daniel Grace
http://hosting.venura.net/ (STILL under construction)



--- End Message ---
--- Begin Message ---

"Carlos Fernando Scheidecker Antunes" <[EMAIL PROTECTED]> wrote in
message 002c01c19197$7beb6c40$0a505ad1@Nando4">news:002c01c19197$7beb6c40$0a505ad1@Nando4...
> Hello All,
>
> I would like to convert integers like the day, month and year to a date
representation to store it in a session variable.
>
> There's a form where the user posts day, month and year. So then I run
checkdate($month,$day,$year) and make sure the date is valid.
>
> So, let's say I have 12 for month, 30 for day and 2001 as year. Do I have
to create a timestamp? How to create a
> TimeStamp?
>
> I need to store it as 30/12/2001 (but not a string) not only on a session
variable but also to make it easier to work with a MySQL table.
>
> After that I want to play with it as a string so I will use the date()
function, that's why it is important to save it as a validade date format
value.
>
> Any sugestions?
>
> Thank you in advance,
>
> Carlos Fernando.
> Linux User #207984

see http://php.net/mktime or http://php.net/gmmktime , which will give you a
unix timestamp that date() will accept (as will FROM_UNIXTIME() in MYSQL if
you want to use that for storing it in the database)

mktime(0, 0, 0, $month, $day, $year) should do the trick

-- Daniel Grace



--- End Message ---
--- Begin Message ---
* Todd Cary ([EMAIL PROTECTED]) [Jan 01. 2002 15:04]:

[...]

> My question is about where I should put my databases?  I notice that the
> "/var" is often used, but is "/usr".  So, for a guy coming from the NT
> world, what would you suggest?

> 1) /var/databases/app1; /var/databases/app2  - or -
> /var/databases/interbases/app1

> 2) The same as above, but with "/usr"

I would go with /var because that's usually where you want to put stuff
that changes often. There are all kinds of arguments for different
locations, however. You may want to google for "linux directory
structure" or something similar.

FYI, I keep my databases in /var/{type} where "{type}" is the type of
database server. For example, postgres in /var/pgsql; mysql in
/var/mysql; etc..

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
The beatings will continue until morale improves.

--- End Message ---
--- Begin Message ---


Hi All,

   Happy New Year.

   Known that we can use in Linux to convert a file

from ps to pdf by using ps2pdf.

   Is there any such built-in modules in PHP or SHELL

commands to convert the following to PDF.

.eps, 

.ppt,

.xls, 

.doc, 

.html

Please do suggest any other way of doing this using 

Linux OS.


Thanks in advance.

Cheers,

Kumar.



 
 

--- End Message ---
--- Begin Message ---
halo... i want to know about connect to database. can php (for windows) connect to MS Access ?.
 
Mpu Strees




____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
--- End Message ---
--- Begin Message ---
look at http://www.phpbuilder.com/columns/siddarth20000228.php3 for a good
tutorial.


--


Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com



"Gendeng" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
halo... i want to know about connect to database. can php (for windows)
connect to MS Access ?.

Mpu Strees







____________________________________________________
  IncrediMail - Email has finally evolved - Click Here


--- End Message ---
--- Begin Message ---
Dear Edwin!

Yes, I have had this problem before ...

My problem was, that I a line in my style sheets, which
could not be solved by NS.
(I think it was "border?)

Yours,

Martin




>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>Win98 and Linux versions), the php-scripts display the select boxes in
>my forms only as plain text. I cannot make any selections. In other
>browsers (NS 6 and IE5), it works fine.
>
>Anyone seen this behavior before?



-----------------------------------------------------------------
Dipl.-Ing. Martin Schichl
SC&C Software, Communication & Consulting GmbH & Co KEG
Grottenhofstr. 3, A-8053 Graz
Tel. +43/(0)316/265-205, Fax +43/(0)316/265-234
[EMAIL PROTECTED], http://scc.co.at
--- End Message ---
--- Begin Message ---
Did you forget the <FORM> </FORM> tags?

Jerry

-----Original Message-----
From: Martin Schichl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 9:57 AM
To: Edwin Boersma; [EMAIL PROTECTED]
Subject: Re: [PHP] Select box won't display in Netscape 4.xx


Dear Edwin!

Yes, I have had this problem before ...

My problem was, that I a line in my style sheets, which
could not be solved by NS.
(I think it was "border?)

Yours,

Martin




>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>Win98 and Linux versions), the php-scripts display the select boxes in
>my forms only as plain text. I cannot make any selections. In other
>browsers (NS 6 and IE5), it works fine.
>
>Anyone seen this behavior before?



-----------------------------------------------------------------
Dipl.-Ing. Martin Schichl
SC&C Software, Communication & Consulting GmbH & Co KEG
Grottenhofstr. 3, A-8053 Graz
Tel. +43/(0)316/265-205, Fax +43/(0)316/265-234
[EMAIL PROTECTED], http://scc.co.at

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


The information contained in this email is confidential and
may be legally privileged. It is intended solely for the 
addressee. Access to this email by anyone else is 
unauthorized. If you are not the intended recipient, any 
form of disclosure, production, distribution or any action 
taken or refrained from in reliance on it, is prohibited and 
may be unlawful. Please notify the sender immediately.

The content of the email is not legally binding unless 
confirmed by letter bearing two authorized signatures.
--- End Message ---
--- Begin Message ---
Hello Kind folks

First apologies for a slightly off topic posting 

Second - There is now an active Indian PHP User Group. The mailing list
is hosted at YahooGroups: http://groups.yahoo.com/group/in-phpug

To subscribe, please send a blank message to
[EMAIL PROTECTED]

The list aims to cater to newbies and gurus alike (from the Indian
sub-continent in particular and the world in general ;-)

But the approach will more of "teaching to fish rather than giving a fish"

Thanks for your patience

Cheer

Dr Tarique Sani

-- 
==========================================================
PHP Applications for E-Biz : http://www.sanisoft.com

The Ultimate Ghazal Lexicon: http://www.aaina-e-ghazal.com
==========================================================

--- End Message ---
--- Begin Message ---
hi i am new in php ,i just wanted to ask before i begin learning php
,well can i design php on my personal computer or i need a server to
design php ,and the second question is do i need a specific program to
design php or i can use my html editor for that

--- End Message ---
--- Begin Message ---
To test your PHP scripts you do need a server with PHP. It's very easy
to setup one on to you local machine + there is many completely free
ones.


Niklas



-----Original Message-----
From: Fady Fouad Shehata [mailto:[EMAIL PROTECTED]] 
Sent: 31. joulukuuta 2001 4:34
To: [EMAIL PROTECTED]
Subject: [PHP] php newbie


hi i am new in php ,i just wanted to ask before i begin learning php
,well can i design php on my personal computer or i need a server to
design php ,and the second question is do i need a specific program to
design php or i can use my html editor for that


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
To design, you just need a text editor (or html editor)

Martin




At 13:24 02.01.02 +0200, Niklas Lampén wrote:
>To test your PHP scripts you do need a server with PHP. It's very easy
>to setup one on to you local machine + there is many completely free
>ones.
>
>
>Niklas
>
>
>
>-----Original Message-----
>From: Fady Fouad Shehata [mailto:[EMAIL PROTECTED]] 
>Sent: 31. joulukuuta 2001 4:34
>To: [EMAIL PROTECTED]
>Subject: [PHP] php newbie
>
>
>hi i am new in php ,i just wanted to ask before i begin learning php
>,well can i design php on my personal computer or i need a server to
>design php ,and the second question is do i need a specific program to
>design php or i can use my html editor for that
>
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional 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: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>

-----------------------------------------------------------------
Dipl.-Ing. Martin Schichl
SC&C Software, Communication & Consulting GmbH & Co KEG
Grottenhofstr. 3, A-8053 Graz
Tel. +43/(0)316/265-205, Fax +43/(0)316/265-234
[EMAIL PROTECTED], http://scc.co.at
--- End Message ---
--- Begin Message ---
Yep, but you can't do much without testing your scripts.


Niklas


-----Original Message-----
From: Martin Schichl [mailto:[EMAIL PROTECTED]] 
Sent: 2. tammikuuta 2002 13:37
To: [EMAIL PROTECTED]; Php-General
Subject: RE: [PHP] php newbie


To design, you just need a text editor (or html editor)

Martin




At 13:24 02.01.02 +0200, Niklas Lampén wrote:
>To test your PHP scripts you do need a server with PHP. It's very easy 
>to setup one on to you local machine + there is many completely free 
>ones.
>
>
>Niklas
>
>
>
>-----Original Message-----
>From: Fady Fouad Shehata [mailto:[EMAIL PROTECTED]]
>Sent: 31. joulukuuta 2001 4:34
>To: [EMAIL PROTECTED]
>Subject: [PHP] php newbie
>
>
>hi i am new in php ,i just wanted to ask before i begin learning php 
>,well can i design php on my personal computer or i need a server to 
>design php ,and the second question is do i need a specific program to 
>design php or i can use my html editor for that
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional 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: [EMAIL PROTECTED]
>To contact the list administrators, e-mail:
[EMAIL PROTECTED]
>
>
>

-----------------------------------------------------------------
Dipl.-Ing. Martin Schichl
SC&C Software, Communication & Consulting GmbH & Co KEG Grottenhofstr.
3, A-8053 Graz Tel. +43/(0)316/265-205, Fax +43/(0)316/265-234
[EMAIL PROTECTED], http://scc.co.at

--- End Message ---
--- Begin Message ---
I've got a search script, where you can search for a string and it will
return links to the HTML files that contain the string. I've also written a
function, where it will highlight each instance of the searched string by
using:


$asdf = fopen($logfile, "r");
$contents = fread($asdf,filesize($logfile));
fclose($asdf);
$contents=stri_replace($hi,"<b
style=\"color:black;background-color:#FFCC66\">".$hi."</b>", $contents);
echo $contents;


(stri_replace because I wrote a function to do that)
Where $hi is the string that is to be highlighted. Of course, if the user
searched for HI, and Hi was found, it would show up as a highlighted HI,
becuase it only uses $hi as the highlighted word, not the original string.
I'm fairly sure that I could do this with ereg functions, but I've spent too
long looking and now it just about makes me sick just looking at it.

Pleeease, can anybody help?


-qartis


--- End Message ---

Reply via email to