php-general Digest 30 Mar 2003 06:56:16 -0000 Issue 1968

Topics (messages 141601 through 141627):

Re: webeditor
        141601 by: Miles Thompson
        141620 by: olinux
        141623 by: daniel

Re: Is there a PHP for Dummies?
        141602 by: -{ Rene Brehmer }-
        141606 by: Leif K-Brooks
        141626 by: Jason Sheets
        141627 by: daniel

automatic link execution after form submit
        141603 by: Fritz

require/include from a different directory
        141604 by: Greg Macek
        141605 by: Greg Macek
        141608 by: Greg Macek
        141609 by: John W. Holmes

Re: PHP and Web Services (where to start?)
        141607 by: Alexandru COSTIN

Opening remote files with "fopen"
        141610 by: Andreas Breitschopp

Theme selector?
        141611 by: Sensazo
        141612 by: Liam Gibbs

Re: Looking functions for deal with special characters
        141613 by: Miles Thompson

Re: How do i valadate an email address?
        141614 by: Justin French

upload question
        141615 by: Anthony Ritter
        141616 by: daniel
        141619 by: Hugh Danaher

preg_replace_callback and brackets
        141617 by: Joshua Moore-Oliva

Re: Problems with post data
        141618 by: Mark Douglas
        141625 by: Mark Douglas

Adding a URL
        141621 by: Scott Thompson

mysql_field_table problem
        141622 by: daniel
        141624 by: daniel

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 ---
http://www.editworkspro.com/index.php


I've not used it, and it requires IE - but the demo was impressive.
Miles


At 11:21 AM 3/28/2003 -0800, Daniel Guerrier wrote:
Does anyone know of an open source webeditor that I
can use to enter information into a text area field.
I have a custom CMS and I would like to add webeditor
functionality to the textarea fields

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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


--- End Message ---
--- Begin Message ---
Here's another that was posted recently. looks cool. 
http://www.interactivetools.com/products/htmlarea


--- Miles Thompson <[EMAIL PROTECTED]>
wrote:
> 
> http://www.editworkspro.com/index.php
> 
> I've not used it, and it requires IE - but the demo
> was impressive.
> Miles
> 
> 
> At 11:21 AM 3/28/2003 -0800, Daniel Guerrier wrote:
> >Does anyone know of an open source webeditor that I
> >can use to enter information into a text area
> field.
> >I have a custom CMS and I would like to add
> webeditor
> >functionality to the textarea fields

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

--- End Message ---
--- Begin Message ---
here is a version i did which is a heavily modified version , 
http://www.electroteque.org/demo/wysiwyg/ , i think the editworks uses the new 
mshtml style of the dhtml editor , the buggy ativex versions are now non 
compliant so i should do some upgrading :D

>===== Original Message From olinux <[EMAIL PROTECTED]> =====
>Here's another that was posted recently. looks cool.
>http://www.interactivetools.com/products/htmlarea
>
>
>--- Miles Thompson <[EMAIL PROTECTED]>
>wrote:
>>
>> http://www.editworkspro.com/index.php
>>
>> I've not used it, and it requires IE - but the demo
>> was impressive.
>> Miles
>>
>>
>> At 11:21 AM 3/28/2003 -0800, Daniel Guerrier wrote:
>> >Does anyone know of an open source webeditor that I
>> >can use to enter information into a text area
>> field.
>> >I have a custom CMS and I would like to add
>> webeditor
>> >functionality to the textarea fields
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>http://platinum.yahoo.com
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Sofar I've found everything I needed from the manual, and other than the
"Install PHP Guide" on WebMonkey, I haven't used anything but the manual,
and scarsely this list...

And I do use the downloadable version of the manual, without the user
comments ... 

But of course, I've programmed since I was 8, so for me it's just another
syntax...

Rene

On Fri, 28 Mar 2003 21:51:56 -0500, Beauford.2002 wrote about "Re: [PHP]
Is there a PHP for Dummies?" what the universal translator turned into
this:

>I found that after the fact, but my question was regarding tutorials, books,
>or other docs. This was just an example I used. In general I don't find the
>PHP manual very helpful - I tend to get more out of the users comments than
>the actual manual..

-- 
Rene Brehmer

This message was written on 100% recycled spam.

Come see! My brand new site is now online!
http://www.metalbunny.net

--- End Message ---
--- Begin Message --- I've seen some PHP books, and honestly, the only book I might buy would be a printed copy of the PHP manual. It's more in-depth than most books. Exactly what is your problem with it?

Beauford.2002 wrote:

My comment was that they do not use manuals, they use books written by 3rd parties. Why? Because they are more detailed and go into more depth than the manual. Also keep in mind that different people have different learning curves - you may find the manual sufficient, however, I don't. Further note that schools only teach you the rudimentary base language - to really understand it is to look at other peoples code and write your own.
B.


    ----- Original Message -----
    From: Leif K-Brooks <mailto:[EMAIL PROTECTED]>
    To: Beauford.2002 <mailto:[EMAIL PROTECTED]>
    Sent: Saturday, March 29, 2003 9:03 AM
    Subject: Re: [PHP] Is there a PHP for Dummies?

Rule #1 im programming: what you learn in school is never right! :)

Beauford.2002 wrote:

I don't find manuals particularly usable and as such would rather
have a good reference manual that speaks in plain english. I
don't need to know the technical details - I need to know how it
works, which I don't find manuals provide. I spent four years in
college, and not once did they use the manual as the text of
choice - simply because they are not meant to teach you how to
use whatever it is your after.
B.


        ----- Original Message -----
        From: Leif K-Brooks <mailto:[EMAIL PROTECTED]>
        To: Beauford.2002 <mailto:[EMAIL PROTECTED]>
        Cc: PHP General <mailto:[EMAIL PROTECTED]>
        Sent: Friday, March 28, 2003 9:59 PM
        Subject: Re: [PHP] Is there a PHP for Dummies?

        I can find an answer to nearly any question I have about PHP
        in the manual.  Any examples of what you're unable to find?

Beauford.2002 wrote:

I found that after the fact, but my question was regarding tutorials, books,
or other docs. This was just an example I used. In general I don't find the
PHP manual very helpful - I tend to get more out of the users comments than
the actual manual..

----- Original Message -----
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 9:49 PM
Subject: Re: [PHP] Is there a PHP for Dummies?




After a quick search of the php manual, I came upon
http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc, which


says:


Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When
magic_quotes are on, all ' (single-quote), " (double quote), \
(backslash) and NUL's are escaped with a backslash automatically.

Seems to explain it pretty nicely.

Beauford.2002 wrote:



No, the name explains absolutely squat. What is a magic quote? Sounds


like


something I smoked in the 60's. Maybe to you it makes sense as you know


what


it does. To me it means absolutely nothing - nor does the PHP manual


explain


it.

B.


----- Original Message ----- From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 5:07 PM Subject: RE: [PHP] Is there a PHP for Dummies?






That is a really, really, really poor example. Tha name says it all.


It


gets the magic quotes setting for gpc(get, post, cookie). You can


figure


out what most PHP functions do just by looking at their names, that's
actually what I like about PHP.

-----Original Message-----
From: Beauford.2002 [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:54 PM
To: PHP General
Subject: [PHP] Is there a PHP for Dummies?


I'm really tired of trying to figure out the PHP manual and need


something


that explains things in plain straight forward English. Like
get_magic_quotes_gpc() for example - the manual says how to use it and




what




it returns - but nowhere can I find out what it's for. Does it count




sheep,




do a quote of the day, or what - maybe I'm just stupid - but in any


event




I




have spent more time in the last two weeks searching for things and




getting




no answers - Any help in pointing me a good straight forward




tutorial/manual




would be appreciated.

B.


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








--
The above message is encrypted with double rot13 encoding. Any


unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.










-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.



-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.



-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.



--- End Message ---
--- Begin Message --- There is a second edition of MySQL and PHP, the first edition was a very good book but was written before the super globals were introduced.

I would recommend going on Amazon and bn.com and reading the reviews. There is a lot you can learn from the PHP Manual but if you are truly a beginner you would benefit from a good PHP book. O'reilly also has published a PHP book now as well.

Jason

Leif K-Brooks wrote:

I've seen some PHP books, and honestly, the only book I might buy would be a printed copy of the PHP manual. It's more in-depth than most books. Exactly what is your problem with it?

Beauford.2002 wrote:

My comment was that they do not use manuals, they use books written by 3rd parties. Why? Because they are more detailed and go into more depth than the manual. Also keep in mind that different people have different learning curves - you may find the manual sufficient, however, I don't. Further note that schools only teach you the rudimentary base language - to really understand it is to look at other peoples code and write your own.
B.


    ----- Original Message -----
    From: Leif K-Brooks <mailto:[EMAIL PROTECTED]>
    To: Beauford.2002 <mailto:[EMAIL PROTECTED]>
    Sent: Saturday, March 29, 2003 9:03 AM
    Subject: Re: [PHP] Is there a PHP for Dummies?

Rule #1 im programming: what you learn in school is never right! :)

Beauford.2002 wrote:

    I don't find manuals particularly usable and as such would rather
    have a good reference manual that speaks in plain english. I
    don't need to know the technical details - I need to know how it
    works, which I don't find manuals provide. I spent four years in
    college, and not once did they use the manual as the text of
    choice - simply because they are not meant to teach you how to
    use whatever it is your after.
         B.

        ----- Original Message -----
        From: Leif K-Brooks <mailto:[EMAIL PROTECTED]>
        To: Beauford.2002 <mailto:[EMAIL PROTECTED]>
        Cc: PHP General <mailto:[EMAIL PROTECTED]>
        Sent: Friday, March 28, 2003 9:59 PM
        Subject: Re: [PHP] Is there a PHP for Dummies?

        I can find an answer to nearly any question I have about PHP
        in the manual.  Any examples of what you're unable to find?

Beauford.2002 wrote:

I found that after the fact, but my question was regarding tutorials, books,
or other docs. This was just an example I used. In general I don't find the
PHP manual very helpful - I tend to get more out of the users comments than
the actual manual..


----- Original Message -----
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 9:49 PM
Subject: Re: [PHP] Is there a PHP for Dummies?




After a quick search of the php manual, I came upon
http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc, which

says:


Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When
magic_quotes are on, all ' (single-quote), " (double quote), \
(backslash) and NUL's are escaped with a backslash automatically.


Seems to explain it pretty nicely.

Beauford.2002 wrote:



No, the name explains absolutely squat. What is a magic quote? Sounds

like


something I smoked in the 60's. Maybe to you it makes sense as you know

what


it does. To me it means absolutely nothing - nor does the PHP manual

explain


it.

B.


----- Original Message ----- From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 5:07 PM Subject: RE: [PHP] Is there a PHP for Dummies?






That is a really, really, really poor example. Tha name says it all.

It


gets the magic quotes setting for gpc(get, post, cookie). You can

figure


out what most PHP functions do just by looking at their names, that's
actually what I like about PHP.


-----Original Message-----
From: Beauford.2002 [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:54 PM
To: PHP General
Subject: [PHP] Is there a PHP for Dummies?


I'm really tired of trying to figure out the PHP manual and need

something


that explains things in plain straight forward English. Like
get_magic_quotes_gpc() for example - the manual says how to use it and




what





it returns - but nowhere can I find out what it's for. Does it count



sheep,





do a quote of the day, or what - maybe I'm just stupid - but in any

event



I





have spent more time in the last two weeks searching for things and



getting





no answers - Any help in pointing me a good straight forward



tutorial/manual





would be appreciated.

B.


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






--
The above message is encrypted with double rot13 encoding. Any

unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.









--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.






--- End Message ---
--- Begin Message ---
i can honestly say when i was a newbie , browsing other peoples code , and 
also especially the pear packages helped me formulate my own style , in 
particular , the pear packages helped alot to understand the structure and how 
to build classes properly , and phpdocs helped to understand a standardised 
and forumlated way to document code properly.

>===== Original Message From Jason Sheets <[EMAIL PROTECTED]> =====
>There is a second edition of MySQL and PHP, the first edition was a very
>good book but was written before the super globals were introduced.
>
>I would recommend going on Amazon and bn.com and reading the reviews.
>There is a lot you can learn from the PHP Manual but if you are truly a
>beginner you would benefit from a good PHP book.  O'reilly also has
>published a PHP book now as well.
>
>Jason
>
>Leif K-Brooks wrote:
>
>> I've seen some PHP books, and honestly, the only book I might buy
>> would be a printed copy of the PHP manual.  It's more in-depth than
>> most books.  Exactly what is your problem with it?
>>
>> Beauford.2002 wrote:
>>
>>> My comment was that they do not use manuals, they use books written
>>> by 3rd parties. Why? Because they are more detailed and go into more
>>> depth than the manual. Also keep in mind that different people have
>>> different learning curves - you may find the manual sufficient,
>>> however, I don't. Further note that schools only teach you the
>>> rudimentary base language - to really understand it is to look at
>>> other peoples code and write your own.
>>>
>>> B.
>>>
>>>     ----- Original Message -----
>>>     From: Leif K-Brooks <mailto:[EMAIL PROTECTED]>
>>>     To: Beauford.2002 <mailto:[EMAIL PROTECTED]>
>>>     Sent: Saturday, March 29, 2003 9:03 AM
>>>     Subject: Re: [PHP] Is there a PHP for Dummies?
>>>
>>>     Rule #1 im programming: what you learn in school is never right! :)
>>>
>>>     Beauford.2002 wrote:
>>>
>>>     I don't find manuals particularly usable and as such would rather
>>>     have a good reference manual that speaks in plain english. I
>>>     don't need to know the technical details - I need to know how it
>>>     works, which I don't find manuals provide. I spent four years in
>>>     college, and not once did they use the manual as the text of
>>>     choice - simply because they are not meant to teach you how to
>>>     use whatever it is your after.
>>>          B.
>>>
>>>         ----- Original Message -----
>>>         From: Leif K-Brooks <mailto:[EMAIL PROTECTED]>
>>>         To: Beauford.2002 <mailto:[EMAIL PROTECTED]>
>>>         Cc: PHP General <mailto:[EMAIL PROTECTED]>
>>>         Sent: Friday, March 28, 2003 9:59 PM
>>>         Subject: Re: [PHP] Is there a PHP for Dummies?
>>>
>>>         I can find an answer to nearly any question I have about PHP
>>>         in the manual.  Any examples of what you're unable to find?
>>>
>>>         Beauford.2002 wrote:
>>>
>>>> I found that after the fact, but my question was regarding
>>>> tutorials, books,
>>>> or other docs. This was just an example I used. In general I don't
>>>> find the
>>>> PHP manual very helpful - I tend to get more out of the users
>>>> comments than
>>>> the actual manual..
>>>>
>>>> ----- Original Message -----
>>>> From: "Leif K-Brooks" <[EMAIL PROTECTED]>
>>>> To: "Beauford.2002" <[EMAIL PROTECTED]>
>>>> Cc: <[EMAIL PROTECTED]>
>>>> Sent: Friday, March 28, 2003 9:49 PM
>>>> Subject: Re: [PHP] Is there a PHP for Dummies?
>>>>
>>>>
>>>>
>>>>
>>>>> After a quick search of the php manual, I came upon
>>>>> http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc, which
>>>>>
>>>>
>>>> says:
>>>>
>>>>
>>>>> Sets the magic_quotes state for GPC (Get/Post/Cookie) operations.
>>>>> When
>>>>> magic_quotes are on, all ' (single-quote), " (double quote), \
>>>>> (backslash) and NUL's are escaped with a backslash automatically.
>>>>>
>>>>> Seems to explain it pretty nicely.
>>>>>
>>>>> Beauford.2002 wrote:
>>>>>
>>>>>
>>>>>
>>>>>> No,  the name explains absolutely squat. What is a magic quote?
>>>>>> Sounds
>>>>>>
>>>>>
>>>> like
>>>>
>>>>
>>>>>> something I smoked in the 60's. Maybe to you it makes sense as
>>>>>> you know
>>>>>>
>>>>>
>>>> what
>>>>
>>>>
>>>>>> it does. To me it means absolutely nothing - nor does the PHP manual
>>>>>>
>>>>>
>>>> explain
>>>>
>>>>
>>>>>> it.
>>>>>>
>>>>>> B.
>>>>>>
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: "Jennifer Goodie" <[EMAIL PROTECTED]>
>>>>>> To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
>>>>>> <[EMAIL PROTECTED]>
>>>>>> Sent: Friday, March 28, 2003 5:07 PM
>>>>>> Subject: RE: [PHP] Is there a PHP for Dummies?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> That is a really, really, really poor example.  Tha name says it
>>>>>>> all.
>>>>>>>
>>>>>>
>>>> It
>>>>
>>>>
>>>>>>> gets the magic quotes setting for gpc(get, post, cookie).  You can
>>>>>>>
>>>>>>
>>>> figure
>>>>
>>>>
>>>>>>> out what most PHP functions do just by looking at their names,
>>>>>>> that's
>>>>>>> actually what I like about PHP.
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Beauford.2002 [mailto:[EMAIL PROTECTED]
>>>>>>> Sent: Friday, March 28, 2003 1:54 PM
>>>>>>> To: PHP General
>>>>>>> Subject: [PHP] Is there a PHP for Dummies?
>>>>>>>
>>>>>>>
>>>>>>> I'm really tired of trying to figure out the PHP manual and need
>>>>>>>
>>>>>>
>>>> something
>>>>
>>>>
>>>>>>> that explains things in plain straight forward English. Like
>>>>>>> get_magic_quotes_gpc() for example - the manual says how to use
>>>>>>> it and
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> what
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> it returns - but nowhere can I find out what it's for. Does it
>>>>>>> count
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> sheep,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> do a quote of the day, or what - maybe I'm just stupid - but in any
>>>>>>>
>>>>>>
>>>> event
>>>>
>>>>
>>>>>>>
>>>>>>
>>>>>> I
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> have spent more time in the last two weeks searching for things and
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> getting
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> no answers - Any help in pointing me a good straight forward
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> tutorial/manual
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> would be appreciated.
>>>>>>>
>>>>>>> B.
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> PHP General Mailing List (http://www.php.net/)
>>>>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> The above message is encrypted with double rot13 encoding.  Any
>>>>>
>>>>
>>>> unauthorized attempt to decrypt it will be prosecuted to the full
>>>> extent of
>>>> the law.
>>>>
>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> The above message is encrypted with double rot13 encoding.  Any
>>> unauthorized attempt to decrypt it will be prosecuted to the full
>>> extent of the law.
>>>
>>>
>>>
>>> --
>>> The above message is encrypted with double rot13 encoding.  Any
>>> unauthorized attempt to decrypt it will be prosecuted to the full
>>> extent of the law.
>>>
>>>
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Dear groupmembers.


I am stuck on "executing" automaticaly
a URL-string to be sent to a perl-script.

Explanation:

I have a form with one textfield.
After submittung the form I get
the variable $indicprop from that field.

$indicprop should now be sent automaticaly
within a query string of the sort:

/cgi_bin/myscript.pl/Search?search=
{field1}=~/$indicprop/i or {field2}=~/$indicprop/i

The only solution I came up with is
putting the string within a <a href=/cgi-bin/etc/...>Search NOW</> tag.

Can´t the click on this link be automated ?

Any hint is very appreciated.

Happy weekend, Fritz


PD: Following is the code I have so far.


<?
if ($sent) {
      echo" <table class=SEARCH width=100% border=0 cellspacing=0>";
      echo" <TR CLASS=LIGHT3D>";
      echo" <TD><IMG SRC=/db4/icons/pixel.gif WIDTH=1 HEIGHT=1></TD></TR>";
      echo" <tr><td>";

echo"<A HREF=/cgi-bin/farma2.pl/Search?search=
%7Bpropiedades%7D+%3D%7e+%2F$indicprop%2Fi+or+%7Bindicaciones
%7D+%3D%7E+%2F$indicprop%2Fi&sent=1><BIG><B>B U S C A R</B></BIG> por <font color=red>\"$indicprop\"</font> únicamente en campos INDICACIONES y PROPIEDADES</a>";
echo"<FORM><INPUT TYPE=SUBMIT VALUE=REGRESAR ONCLICK=history.go(-1)></FORM>";
echo "</td></tr><TR CLASS=DARK3D >";
echo" <TD><IMG SRC=/db4/icons/pixel.gif WIDTH=1 HEIGHT=1></TD>";
echo" </TR></table><BR>";


} else {
?>

<form action="<?php echo $PHP_SELF ?>">
<table class=SEARCH width=100% border=0 cellspacing=0>
<TR CLASS=LIGHT3D>
<TD><IMG SRC="/db4/icons/pixel.gif" WIDTH=1 HEIGHT=1></TD>
</TR>
<tr>
<td> Buscar únicamente en campos INDICACIONES y PROPIEDADES:<br>
<input name="indicprop" size=14>
<INPUT TYPE=HIDDEN NAME="sent" VALUE=1>
<input type=SUBMIT value='Preparar' name="SUBMIT">
</td>
</tr>
<TR CLASS=DARK3D >
<TD><IMG SRC="/db4/icons/pixel.gif" WIDTH=1 HEIGHT=1></TD>
</TR>
</table>
</form>
<?
} // if-else
?>



--- End Message ---
--- Begin Message ---
Hi,

I'm having a problem hopefully can be easily answered. I'm trying to
organize parts of my site into different directories so that they're all
not in the "main" folder so to speak; basically breaking out by what
part of the application it is. I also have an "include" folder for all
my main functions and such...

/          (main directory)
/include   (global functions, includes)
/app_sect1 
/app_sect2

what I'm trying to do from /app_sect1 is include a file from the
"include" directory, but with little success. The line looks like this:

require "../include/inc_file.php"; 

But my page just doesn't work for me now.. any ideas what I'm missing?

- Greg





--- End Message ---
--- Begin Message ---
It seems I have found my problem. It has to do with the files I'm trying
to include. They also include other files and the directories it's
trying to include files from aren't working. I've found a workaround for
my situation for the time being. It's not pretty, but functional. 

On Sat, 2003-03-29 at 14:19, Greg Macek wrote:
> Hi,
> 
> I'm having a problem hopefully can be easily answered. I'm trying to
> organize parts of my site into different directories so that they're all
> not in the "main" folder so to speak; basically breaking out by what
> part of the application it is. I also have an "include" folder for all
> my main functions and such...
> 
> /          (main directory)
> /include   (global functions, includes)
> /app_sect1 
> /app_sect2
> 
> what I'm trying to do from /app_sect1 is include a file from the
> "include" directory, but with little success. The line looks like this:
> 
> require "../include/inc_file.php"; 
> 
> But my page just doesn't work for me now.. any ideas what I'm missing?
> 
> - Greg
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
I've considered that route, but an issue I have with that is I do most
of my development work on a machine that a different directory structure
than the production server (currently a Cobalt RaQ4), so the paths are
different. Accommodating both would be a time consuming project for me. 

On Sat, 2003-03-29 at 14:47, Jason Paschal wrote:
> try using an absolute path.
> 
> 
> 
> 
> 
> 
> >From: Greg Macek <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] require/include from a different directory
> >Date: 29 Mar 2003 14:19:41 -0600
> >
> >Hi,
> >
> >I'm having a problem hopefully can be easily answered. I'm trying to
> >organize parts of my site into different directories so that they're all
> >not in the "main" folder so to speak; basically breaking out by what
> >part of the application it is. I also have an "include" folder for all
> >my main functions and such...
> >
> >/          (main directory)
> >/include   (global functions, includes)
> >/app_sect1
> >/app_sect2
> >
> >what I'm trying to do from /app_sect1 is include a file from the
> >"include" directory, but with little success. The line looks like this:
> >
> >require "../include/inc_file.php";
> >
> >But my page just doesn't work for me now.. any ideas what I'm missing?
> >
> >- Greg
> >
> >
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail



--- End Message ---
--- Begin Message ---
> > try using an absolute path.
> 
> I've considered that route, but an issue I have with that is I do most
> of my development work on a machine that a different directory
structure
> than the production server (currently a Cobalt RaQ4), so the paths are
> different. Accommodating both would be a time consuming project for
me.

I always put it into a variable.

$_CONF['path'] = '/home/web/www/';

and then use that variable in all of your includes or requires. I also
make an HTML variable that's used in all links and images.

$_CONF['html'] = 'http://www.mysite.com/'; 

Sure, you have to get used to using this variable everywhere, but it
makes switching server pretty easy. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



--- End Message ---
--- Begin Message ---
Hi,
> I have to sand and paint a rocking chair this afternoon. Can Krysalis
> help me with that? Apparently it's the answer to almost every question
> on this list, as I have to delete your advertising several times a day.
    I apologize for the high rate of my postings. They can be considered
advertisments as they include our company website address, but basically the
advertised projects are open source and GPL and we are just willing to make
them known to the PHP developers community.
    Anyway, thanks for your suggestion. I will try to comply. I wasn't aware
that that many people are subscribed to the mailing list and are not using
the NNTP servers.

                Alexandru



--- End Message ---
--- Begin Message ---
Hello together!

I've got problems with opening some remote files, but I really don't
understand why this doesn't work (with mostly all it works)!

This is one of them the fopen-function don't open:
$fp = fopen("http://www.cornutopia.charitydays.co.uk/software/arcangel.xml";,
"r");

But is also don't send an error: just trys and trys, ...
What's special about this file? Why can't this one be opened and mostly
other can?
I also can't see any redirections from the server which might be a problem
and when trying to get the file in a browser it work's fine...

Hope, you can help!

Thank you very much in advance

        Andreas


Andreas Breitschopp - Softwareentwicklung und -vertrieb
Leopoldstraße 116, D-80802 München; E-Mail: [EMAIL PROTECTED]
Tel.: +49 89 38898588, Fax: +49 89 38898589
http://www.ab-tools.de, http://www.ab-soft.de, http://www.ab-archive.com



--- End Message ---
--- Begin Message ---
Hello, can anyone help me with a php theme selector? I want it like when
the seletect a theme ?theme=green that it will go into a directory and
load green.php or somthing like that please help. Thankyou
 
- Tim Hoffmeyer

--- End Message ---
--- Begin Message ---
> Hello, can anyone help me with a php theme selector? I want it like when
> the seletect a theme ?theme=green that it will go into a directory and
> load green.php or somthing like that please help. Thankyou

I'd store your themes in stylesheets instead.


--- End Message ---
--- Begin Message ---
Just off the top of my head ...
        Install Spanish language  suport on the Windows machine
        What CodePage are you using?
        Check the Microsoft KB.

Thinking about it a bit more, a plain ascii file may not handle Spanish because (if I remember correctly) it's single byte and represents only char 0 - 127 - what I know as high-ascii goes from 128 - 254 - happy faces and the like, and yes, characters with unlauts and acute or grave accents.

If you look at the .csv with a plain text editor, what do you see?

No answer - but I hope this helped.

Miles Thompson


At 10:16 AM 3/28/2003 -0600, [EMAIL PROTECTED] wrote:
Hi, I am getting data from a database, containing special characteres (in
spanish).  After that, I want to write down this data to an ascii file
(.csv).  When this file is open with excel, the resulting data on cell
(strings) does not keep the same special characteres instead of that appear
strange characters.  Here I want to show the same characters as stored on
the database.

I am using fput ($fp,"string") to write data to the csv file.

Does somebody deal with this ? please let me know.

Ignacio Estrada F.




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


--- End Message ---
--- Begin Message ---
http://www.killersoft.com/downloads/pafiledb.php?action=file&id=4

Justin


On 03/27/2003 03:44 AM, Philip J. Newman wrote:
> How would i check that an e-mail has the right parts in it. for example.
> 
> username @ domain . ext


--- End Message ---
--- Begin Message ---
Greetings all,
Using PHP 4.1.1 / Apache Server / MS Win 98 / IE 5.5

The following script is from Julie Meloni's book PHP Fast and Easy on page
170-174.

The first part is an html form in which the user browses and chooses a file
to be upoloaded to the server.

The script works fine in that when I chose a file and hit submit it, the
file ends up in:

C:\apache\htdocs

However, in the book, in the last illustration, she explains:

"Just to be sure, use the File/Open Page menu item in your _browser_ to
navigate through your filesystem and find the file that you just uploaded."

The illustration shows the .jpg file _within_ the browser screen on the
upper left hand side.

When I follow those steps and hit file / open, my paint program takes over
and opens the uploaded .jpg file and the browser interface of MS IE 5.5 is
gone.

Any advice would be appreciated.
Thank you.

Tony Ritter
.......................................................................

// html form
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<p>
File to upload:
<input type="file" name="thefile" size="30">
</p>
<p>
<input type="submit" name="submit" value="Upload File">
</p>
</form>
</body>
</html>


// .php script called  upload.php
<?
if ($thefile != "")
 {
  copy("$thefile","C:\\apache\\htdocs\\$thefile_name")or die("Could not copy
the file.");
 }
else
 {
  echo "No file to upload.";
 }
?>
<html>
<head>
</head>
<body>
<p>
You sent:
<? echo "$thefile_name"; ?>, a <? echo "$thefile_size"; ?> byte file with a
mime type of <? echo "$thefile_type" ; ?>.
</p>
</body>
</html>




--- End Message ---
--- Begin Message ---
there is no indication what exactly you want to know , its too ambiguous , but 
all i can say this book sounds like a dud, terrible explanation on file 
uploads, check out this pear package, it helped a great deal ,although i had 
to mod it to also do a check for mimetypes , as say i allowed only the 
extension types of jpg , or zip , i could rename an executable file to a jpg 
or zip and maybe it could be executed , anyway i had to mod it to also do a 
mime types allow check but anyway check it out 
http://pear.php.net/package-info.php?pacid=20

also do a print_r($_FILES); this will show u what you may need to know



--- End Message ---
--- Begin Message ---
Sounds like a Windows configuration issue and not a php issue.  There's an
'open using' (or some such) option buried in the windows file menu that will
let you change this.
Hugh
----- Original Message -----
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 7:12 PM
Subject: [PHP] upload question


> Greetings all,
> Using PHP 4.1.1 / Apache Server / MS Win 98 / IE 5.5
>
> The following script is from Julie Meloni's book PHP Fast and Easy on page
> 170-174.
>
> The first part is an html form in which the user browses and chooses a
file
> to be upoloaded to the server.
>
> The script works fine in that when I chose a file and hit submit it, the
> file ends up in:
>
> C:\apache\htdocs
>
> However, in the book, in the last illustration, she explains:
>
> "Just to be sure, use the File/Open Page menu item in your _browser_ to
> navigate through your filesystem and find the file that you just
uploaded."
>
> The illustration shows the .jpg file _within_ the browser screen on the
> upper left hand side.
>
> When I follow those steps and hit file / open, my paint program takes over
> and opens the uploaded .jpg file and the browser interface of MS IE 5.5 is
> gone.
>
> Any advice would be appreciated.
> Thank you.
>
> Tony Ritter
> .......................................................................
>
> // html form
> </head>
> <body>
> <form action="upload.php" method="post" enctype="multipart/form-data">
> <p>
> File to upload:
> <input type="file" name="thefile" size="30">
> </p>
> <p>
> <input type="submit" name="submit" value="Upload File">
> </p>
> </form>
> </body>
> </html>
>
>
> // .php script called  upload.php
> <?
> if ($thefile != "")
>  {
>   copy("$thefile","C:\\apache\\htdocs\\$thefile_name")or die("Could not
copy
> the file.");
>  }
> else
>  {
>   echo "No file to upload.";
>  }
> ?>
> <html>
> <head>
> </head>
> <body>
> <p>
> You sent:
> <? echo "$thefile_name"; ?>, a <? echo "$thefile_size"; ?> byte file with
a
> mime type of <? echo "$thefile_type" ; ?>.
> </p>
> </body>
> </html>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
I'm kind of confused right now...  when I call preg_replace_callback with a 
regular expression with brackets, sometimes I get an array back with multiple 
elements like

array(3) {
  [0]=>
  string(19) "http://www.aol.com
"
  [1]=>
  string(0) ""
  [2]=>
  string(19) "http://www.aol.com
"
}

and I have no idea why...  Why does the middle one have nothing in it?  the 
regular expression was

$dumb_body = preg_replace_callback ( '/'
                                       //Case spaceURLspace
                                       . '([\s]http:\/\/[^\s]+[\s])'
                                       . '|'
                                       //Case URLspace
                                       . '(^http:\/\/[^\s]+[\s])'
                                       . '|'
                                       //Case spaceURL
                                       . '([\s]http:\/\/[^\s]+$)'
                                       . '|'
                                       //Case URL
                                       . '(^http:\/\/[^\s]+$)'
                                       . '/i'
                                       , array( &$this, "storeUrlCallback" ), 
$dumb_body );

I am very confused at the point of the array in this function period...  can 
anyone help?

Josh.

--- End Message ---
--- Begin Message ---
Yes, the webserver that works is running apache2, however it's 2.0.44
instead of 2.0.43... I'm upgrading the broken one now to see if that fixes
the problem.

-----Original Message-----
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 10:50 AM
To: 'Mark Douglas'; [EMAIL PROTECTED]
Subject: RE: [PHP] Problems with post data


I bet the web server that works is not running Apache 2, is it? Either
way, it's an Apache2 and PHP bug. It's in the bug tracker somewhere...
Use Apache 1.3.27 or whatever the latest is...

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/

> -----Original Message-----
> From: Mark Douglas [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 29, 2003 7:57 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] Problems with post data
> 
> I'm having problems with my post variables. Here's the page I use to
> submit
> data:
> 
> <FORM ACTION="test2.php" METHOD=POST />
>     <INPUT TYPE=text SIZE=50 MAXLENGTH=50 NAME="new_area"
> />&nbsp;&nbsp;<INPUT TYPE=SUBMIT VALUE="Add New Skill Area" /><BR
/><BR />
> </FORM>
> 
> Here's the test2.php page:
> 
> <?php
> print_r($_POST);
> ?>
> 
> This is all very simple, and works on one of my webservers. However,
on
> another webserver with a practically identical configuration, if I
post
> "testing" the result that I get is this:
> 
> Array ( [new_area] => testingnew_area=testing )
> 
> I've spent hours scouring my two configurations, changing options here
and
> there, and have had zero success in making the problem webserver work.
> 
> The server is a dual processor RedHat 8 system running apache 2.0.43,
and
> php 4.3.1. You can see the phpinfo at
> http://inexorable.sagelikefool.net/phpinfo.htm (yes htm, not php). Any
and
> all help is appreciated!
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




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

--- End Message ---
--- Begin Message ---
Just an FYI, 2.0.44 still isn't working on this server, while it does on
another... I don't know what to do now, so I'm just going to write code to
deal with this bug.

-----Original Message-----
From: Mark Douglas [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 10:38 PM
To: '[EMAIL PROTECTED]'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Problems with post data


Yes, the webserver that works is running apache2, however it's 2.0.44
instead of 2.0.43... I'm upgrading the broken one now to see if that fixes
the problem.

-----Original Message-----
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 10:50 AM
To: 'Mark Douglas'; [EMAIL PROTECTED]
Subject: RE: [PHP] Problems with post data


I bet the web server that works is not running Apache 2, is it? Either
way, it's an Apache2 and PHP bug. It's in the bug tracker somewhere...
Use Apache 1.3.27 or whatever the latest is...

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/

> -----Original Message-----
> From: Mark Douglas [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 29, 2003 7:57 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] Problems with post data
> 
> I'm having problems with my post variables. Here's the page I use to
> submit
> data:
> 
> <FORM ACTION="test2.php" METHOD=POST />
>     <INPUT TYPE=text SIZE=50 MAXLENGTH=50 NAME="new_area"
> />&nbsp;&nbsp;<INPUT TYPE=SUBMIT VALUE="Add New Skill Area" /><BR
/><BR />
> </FORM>
> 
> Here's the test2.php page:
> 
> <?php
> print_r($_POST);
> ?>
> 
> This is all very simple, and works on one of my webservers. However,
on
> another webserver with a practically identical configuration, if I
post
> "testing" the result that I get is this:
> 
> Array ( [new_area] => testingnew_area=testing )
> 
> I've spent hours scouring my two configurations, changing options here
and
> there, and have had zero success in making the problem webserver work.
> 
> The server is a dual processor RedHat 8 system running apache 2.0.43,
and
> php 4.3.1. You can see the phpinfo at
> http://inexorable.sagelikefool.net/phpinfo.htm (yes htm, not php). Any
and
> all help is appreciated!
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




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

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

--- End Message ---
--- Begin Message --- Hi,

I am using the following code to query a database and build an HTML table.

<html>
 <head>
  <title>SQL Connect</title>
 </head>

 <body>
  <?php
    /* Connecting, selecting database */
    $link = mysql_connect("localhost", "root", "")
        or die("Could not connect");
    //print "Connected successfully";
    mysql_select_db("irvington") or die("Could not select database");

    /* Performing SQL query */
    $query = "SELECT * FROM staff";
    $result = mysql_query($query) or die("Query failed");

    /* Printing results in HTML */
    print "<table>\n";
    while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
        print "\t<tr>\n";
        foreach ($line as $col_value) {
            print "\t\t<td>$col_value</td>\n";
        }
        print "\t</tr>\n";
    }
    print "</table>\n";

    /* Free resultset */
    mysql_free_result($result);

    /* Closing connection */
    mysql_close($link);
  ?>

 </body>
</html>


So far so good...


The SQL query returns this:
mysql> select * from staff;
+----------------+------------------------------+------------------+
| name           | email                        | subject          |
+----------------+------------------------------+------------------+
| Scott Thompson | [EMAIL PROTECTED] | Volunteer        |
| <sanitized>    | <sanitized>                  | Computer Science |
| Some Teacher   | [EMAIL PROTECTED]   | some subject     |
+----------------+------------------------------+------------------+
3 rows in set (0.00 sec)

mysql>

The above is also essentialy what you see in your browser (sans headers).

So far so good...

What I want (and can't figure out) is how to have each email address have a URL (i.e. mailto:[EMAIL PROTECTED]).

I'm fairly new to PHP, I hope this question made some sense.

Suggestions?

~Scott


--- End Message ---
--- Begin Message ---
hi guys this seems to return on the first letter of the table name ?? return 
@mysql_field_table($this->result,0); what could bne the problem ?



--- End Message ---
--- Begin Message ---
ok i worked out the problem possible bug ??

SELECT f.filmID, f.programID, prg.name FROM films f LEFT JOIN EPG.TblProgram 
prg ON f.programID=prg.programID WHERE f.alive=1 AND ((NOW()>=f.start_date) 
AND (NOW() <= f.end_date))

the mysql_field_table wont show up properly on a join or even when selected 
fields

this worked though

select * from films

how can i make it work with a join ?
>===== Original Message From daniel <[EMAIL PROTECTED]> =====
>hi guys this seems to return on the first letter of the table name ?? return
>@mysql_field_table($this->result,0); what could bne the problem ?
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---

Reply via email to