OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 8 Jul 2003 09:54:48 -0000 Issue 2163

php-general-digest-helplists.php.net
Date: Tue Jul 08 2003 - 04:54:48 CDT


php-general Digest 8 Jul 2003 09:54:48 -0000 Issue 2163

Topics (messages 154254 through 154328):

Re: PHP/Content Management
        154254 by: Richard Baskett
        154262 by: Robert Samuel White
        154271 by: Thomas Seifert
        154283 by: Robert Samuel White

Re: New to PHP
        154255 by: Ray Hunter
        154256 by: Micah Montoy
        154257 by: Hiren Mehta
        154260 by: Kevin Stone
        154261 by: Steve Keller
        154267 by: Jeff Harris
        154288 by: Ralph

Re: script not stopping
        154258 by: Micah Montoy
        154269 by: Thomas Seifert
        154274 by: Paul Chvostek

Table trouble
        154259 by: phpu
        154264 by: Kevin Stone
        154265 by: Jeff Harris
        154272 by: phpu
        154273 by: phpu
        154285 by: Ralph
        154286 by: Ralph

Re: qry not running??
        154263 by: Jeff Harris

Changing Apache Log/Environment entries
        154266 by: Guy Davis

Re: reposting data into forms after confirmation screen
        154268 by: Dean E. Weimer

Re: Call by reference to function arguments
        154270 by: Alain Williams
        154287 by: David Otton

php arrays into flash
        154275 by: Jim McNeely
        154276 by: Jim Lucas
        154277 by: Miles Thompson
        154278 by: Pascal Polleunus
        154284 by: Ralph

Eregi filtering..
        154279 by: Miranda, Joel Louie M
        154280 by: Ralph
        154281 by: Miranda, Joel Louie M
        154282 by: Mike Migurski

problem with 4.3.2
        154289 by: user.domain.invalid
        154318 by: Jonathan Freedom

Image verification problem..
        154290 by: Miranda, Joel Louie M
        154291 by: Ralph
        154292 by: Ralph
        154294 by: Miranda, Joel Louie M
        154298 by: Miranda, Joel Louie M
        154301 by: Miranda, Joel Louie M
        154303 by: Miranda, Joel Louie M

Re: a recommended FREE PHP shopping cart
        154293 by: Ralph

Re: PEAR
        154295 by: Ralph

Re: Spammer! ...
        154296 by: Joel Rees

Forgotton Command
        154297 by: Brenton Dobell
        154300 by: Ralph

Re: print vs. heredoc
        154299 by: Ralph

Re: print vs heredoc
        154302 by: Joel Rees
        154304 by: Tom Rogers
        154310 by: Philip Olson
        154314 by: Tom Rogers
        154316 by: Tom Rogers
        154319 by: alex

Re: error on array loop through foreach?
        154305 by: Micah Montoy
        154328 by: Lars Torben Wilson

Regular Expression
        154306 by: Ralph
        154321 by: Giz

Wrong parameter count for fgets
        154307 by: Miranda, Joel Louie M
        154308 by: Joel Rees

Storing large amounts of text in db
        154309 by: Aaron Axelsen
        154311 by: Mike Migurski

multiple select box not showing values
        154312 by: Micah Montoy
        154313 by: David Robley
        154315 by: Micah Montoy
        154324 by: Giz

(pas d'objet)
        154317 by: RIVES Sergio SOFRECOM
        154323 by: Giz

include like function
        154320 by: sgeorge9q
        154322 by: David Otton
        154327 by: Ian Mantripp

Retaining formatting problem
        154325 by: brenton.lefevrehs.sa.edu.au

Re: Retaining formatting problem[Scanned]
        154326 by: Michael Egan

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


Do you realize that link does not work with the Safari browser? it just
shows up blank :(

Rick

When one door closes, another opens; but we often look so long and so
regretfully upon the closed door that we do not see the one which has opened
for us. - Alexander Graham Bell

> From: "Robert Samuel White" <webmasterenetwizard.net>
> Reply-To: Robert Samuel White <webmasterenetwizard.net>
> Date: Mon, 07 Jul 2003 16:54:11 -0400
> To: php-generallists.php.net
> Subject: [PHP] PHP/Content Management
>
> Just a quick message to let everyone know that after ten months I have
> finally released the first official open source version of eNetwizard
> Matrix Server, my sophisticated content management system and
> application server. All it needs is PHP, MySQL, and Apache. Full
> instructions are included on the website. More information about it is
> below...
>
> http://matrix.enetwizard.net/default.rsw
>
>
> About eNetwizard Matrix Server
>
> eNetwizard Matrix Server takes content management and web application
> serving to levels undreamt, infusing your web environment with sheer
> power and possibility.
>
>
> Cutting Edge Technology
>
> - Never before has a content management system been designed around
> the concept of a universal point of contact for all requests. This
> server knows all, and delivers all.
>
> - Never before has a content management system been designed to render
> and manage the content of an unlimited number of domains and websites
> for an unlimited number of businesses and organizations. Expect
> nothing less from our server.
>
>
> Core Features
>
> - Production Environment Ready. The server before you has had no
> corners cut in its design. It is stable and ready for production
> environments, with only a few minor limitations or idiocyncracies. And
> it's free and open source.
>
> - Infinitely Expansive Design. The server was designed to manage an
> infinite number of domains, websites, components, organizations,
> groups, and users, all from a single running copy of its distribution.
>
> - Complete Content Management. The server manages the content of all
> mime types and can deliver the content to the requesting client based
> on customizable settings of the server for each mime type.
>
> - Seemless Integration with Other Server Software. The server was
> designed to complement the job of the web server and server side
> scripting languages, and does not replace nor interfere with their
> purposes. In fact, you can utilize all of them from within the system
> in a myriad of useful ways.
>
> - Language Independent. The server, objects, and wizards were all
> designed to contain its strings in an XML localization file, allowing
> it to run in any language it has been translated into. In a near
> future release, it will also be possible to render content into the
> language appropriate for the visitor.
>
> - Cascading Templates. Web page design and layout are controlled by
> templates, allowing for quick and cost-effective website redesigns.
> Templates can be modified in real time, changing the layout, colors,
> and other style properties instantaneously. Templates are cascading
> through the matrix folder, meaning templates can be defined for a
> single page or an entire domain or website.
>
> - Workflow Ready. This version of the server includes everything
> needed to manage an infinite number of organizations, groups, and
> users, all with unique roles, policy permissions, and access rights
> throughout the matrix. It lacks only a few things when it comes to
> workflow, and these added features will be included in a near future
> release.
>
> - Inclusive Session Management. The server does not rely upon cookies
> at all to manage the individual sessions of each user accessing the
> server. Instead, it automatically and uniquely propagates this
> information into each request and embeds the information into every
> link managed by the server.
>
> - Search Engine Aware. The server automatically disables sessions for
> known search engines, preventing them from including session
> information in their indexes. This is also useful if you wish to
> create a page for the search engine that does not include the template,
> thereby only showing the content of the page to the search engine for
> indexing.
>
> - Browser Aware. The server automatically determines browser
> information from each visitor and assigns it to their session. Some of
> the collected information includes the user's languages and screen
> resolution, as well as their browser capabilities. This information is
> made available via the $Core->BrowserInfo[] array.
>
> - Extensive Logging. The server logs activity to all components, from
> websites and pages to files and objects. It logs all form post and get
> data, cookies, system functions, and script warnings and errors,
> depending upon your configuration. It also logs all attempts at
> treacherous activity anywhere within the system!
>
> - Wizardly Management. The server includes a built-in wizard
> component, which includes the eNetwizard Control Panel, for easy
> management of every aspect of the server. As expressed by a recent
> user of the Control Panel, it's "overwhelmingly powerful."
>
> - Customizable Website Applications. Objects are a powerful way to
> make use of the server, allowing you to click once and build anything
> from a guestbook or newsletter to a first-class e-commerce application,
> rendered in the style properties appropriate for the website, and fully
> managed from the eNetwizard Control Panel.
>
> - Much More!
>
> http://matrix.enetwizard.net/default.rsw
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

attached mail follows:


Hello,

I was just alerted of the issue by another fellow with a way excellent
website at saturn5.com :-)

I wish I could help you! But I have never heard of the Safari browser
and without using it or getting more information about what is causing
your problem, I cannot do anything!

It is known to work with IE 4-6+ on Windows, most Netscapes, Mozilla,
Lynx, etc.., but may have some problems with the Mac and now the Safari
browser...

Is it possible the problem could be Safari does not recognize the Header
() command in PHP???

Thanks!

=============

Do you realize that link does not work with the Safari browser? it just
shows up blank :(

Rick

When one door closes, another opens; but we often look so long and so
regretfully upon the closed door that we do not see the one which has
opened
for us. - Alexander Graham Bell

> From: "Robert Samuel White" <webmasterenetwizard.net>
> Reply-To: Robert Samuel White <webmasterenetwizard.net>
> Date: Mon, 07 Jul 2003 16:54:11 -0400
> To: php-generallists.php.net
> Subject: [PHP] PHP/Content Management
>
> Just a quick message to let everyone know that after ten months I have
> finally released the first official open source version of eNetwizard
> Matrix Server, my sophisticated content management system and
> application server. All it needs is PHP, MySQL, and Apache. Full
> instructions are included on the website. More information about it
is
> below...
>
> http://matrix.enetwizard.net/default.rsw
>
>
> About eNetwizard Matrix Server
>
> eNetwizard Matrix Server takes content management and web application
> serving to levels undreamt, infusing your web environment with sheer
> power and possibility.
>
>
> Cutting Edge Technology
>
> - Never before has a content management system been designed around
> the concept of a universal point of contact for all requests. This
> server knows all, and delivers all.
>
> - Never before has a content management system been designed to render
> and manage the content of an unlimited number of domains and websites
> for an unlimited number of businesses and organizations. Expect
> nothing less from our server.
>
>
> Core Features
>
> - Production Environment Ready. The server before you has had no
> corners cut in its design. It is stable and ready for production
> environments, with only a few minor limitations or idiocyncracies.
And
> it's free and open source.
>
> - Infinitely Expansive Design. The server was designed to manage an
> infinite number of domains, websites, components, organizations,
> groups, and users, all from a single running copy of its distribution.
>
> - Complete Content Management. The server manages the content of all
> mime types and can deliver the content to the requesting client based
> on customizable settings of the server for each mime type.
>
> - Seemless Integration with Other Server Software. The server was
> designed to complement the job of the web server and server side
> scripting languages, and does not replace nor interfere with their
> purposes. In fact, you can utilize all of them from within the system
> in a myriad of useful ways.
>
> - Language Independent. The server, objects, and wizards were all
> designed to contain its strings in an XML localization file, allowing
> it to run in any language it has been translated into. In a near
> future release, it will also be possible to render content into the
> language appropriate for the visitor.
>
> - Cascading Templates. Web page design and layout are controlled by
> templates, allowing for quick and cost-effective website redesigns.
> Templates can be modified in real time, changing the layout, colors,
> and other style properties instantaneously. Templates are cascading
> through the matrix folder, meaning templates can be defined for a
> single page or an entire domain or website.
>
> - Workflow Ready. This version of the server includes everything
> needed to manage an infinite number of organizations, groups, and
> users, all with unique roles, policy permissions, and access rights
> throughout the matrix. It lacks only a few things when it comes to
> workflow, and these added features will be included in a near future
> release.
>
> - Inclusive Session Management. The server does not rely upon cookies
> at all to manage the individual sessions of each user accessing the
> server. Instead, it automatically and uniquely propagates this
> information into each request and embeds the information into every
> link managed by the server.
>
> - Search Engine Aware. The server automatically disables sessions for
> known search engines, preventing them from including session
> information in their indexes. This is also useful if you wish to
> create a page for the search engine that does not include the
template,
> thereby only showing the content of the page to the search engine for
> indexing.
>
> - Browser Aware. The server automatically determines browser
> information from each visitor and assigns it to their session. Some
of
> the collected information includes the user's languages and screen
> resolution, as well as their browser capabilities. This information
is
> made available via the $Core->BrowserInfo[] array.
>
> - Extensive Logging. The server logs activity to all components, from
> websites and pages to files and objects. It logs all form post and
get
> data, cookies, system functions, and script warnings and errors,
> depending upon your configuration. It also logs all attempts at
> treacherous activity anywhere within the system!
>
> - Wizardly Management. The server includes a built-in wizard
> component, which includes the eNetwizard Control Panel, for easy
> management of every aspect of the server. As expressed by a recent
> user of the Control Panel, it's "overwhelmingly powerful."
>
> - Customizable Website Applications. Objects are a powerful way to
> make use of the server, allowing you to click once and build anything
> from a guestbook or newsletter to a first-class e-commerce
application,
> rendered in the style properties appropriate for the website, and
fully
> managed from the eNetwizard Control Panel.
>
> - Much More!
>
> http://matrix.enetwizard.net/default.rsw
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

attached mail follows:


Safari is the new Mac-Browser by Apple.
Its using the KHTML-component from Konqueror (Linux).

Thomas

On Mon, 07 Jul 2003 18:06:29 -0400 webmasterenetwizard.net (Robert Samuel White) wrote:

> Hello,
>
> I was just alerted of the issue by another fellow with a way excellent
> website at saturn5.com :-)
>
> I wish I could help you! But I have never heard of the Safari browser
> and without using it or getting more information about what is causing
> your problem, I cannot do anything!
>
> It is known to work with IE 4-6+ on Windows, most Netscapes, Mozilla,
> Lynx, etc.., but may have some problems with the Mac and now the Safari
> browser...
>
> Is it possible the problem could be Safari does not recognize the Header
> () command in PHP???
>
> Thanks!
>
> =============
>
> Do you realize that link does not work with the Safari browser? it just
> shows up blank :(
>
> Rick
>
> When one door closes, another opens; but we often look so long and so
> regretfully upon the closed door that we do not see the one which has
> opened
> for us. - Alexander Graham Bell
>
> > From: "Robert Samuel White" <webmasterenetwizard.net>
> > Reply-To: Robert Samuel White <webmasterenetwizard.net>
> > Date: Mon, 07 Jul 2003 16:54:11 -0400
> > To: php-generallists.php.net
> > Subject: [PHP] PHP/Content Management
> >
> > Just a quick message to let everyone know that after ten months I have
> > finally released the first official open source version of eNetwizard
> > Matrix Server, my sophisticated content management system and
> > application server. All it needs is PHP, MySQL, and Apache. Full
> > instructions are included on the website. More information about it
> is
> > below...
> >
> > http://matrix.enetwizard.net/default.rsw
> >
> >
> > About eNetwizard Matrix Server
> >
> > eNetwizard Matrix Server takes content management and web application
> > serving to levels undreamt, infusing your web environment with sheer
> > power and possibility.
> >
> >
> > Cutting Edge Technology
> >
> > - Never before has a content management system been designed around
> > the concept of a universal point of contact for all requests. This
> > server knows all, and delivers all.
> >
> > - Never before has a content management system been designed to render
> > and manage the content of an unlimited number of domains and websites
> > for an unlimited number of businesses and organizations. Expect
> > nothing less from our server.
> >
> >
> > Core Features
> >
> > - Production Environment Ready. The server before you has had no
> > corners cut in its design. It is stable and ready for production
> > environments, with only a few minor limitations or idiocyncracies.
> And
> > it's free and open source.
> >
> > - Infinitely Expansive Design. The server was designed to manage an
> > infinite number of domains, websites, components, organizations,
> > groups, and users, all from a single running copy of its distribution.
> >
> > - Complete Content Management. The server manages the content of all
> > mime types and can deliver the content to the requesting client based
> > on customizable settings of the server for each mime type.
> >
> > - Seemless Integration with Other Server Software. The server was
> > designed to complement the job of the web server and server side
> > scripting languages, and does not replace nor interfere with their
> > purposes. In fact, you can utilize all of them from within the system
> > in a myriad of useful ways.
> >
> > - Language Independent. The server, objects, and wizards were all
> > designed to contain its strings in an XML localization file, allowing
> > it to run in any language it has been translated into. In a near
> > future release, it will also be possible to render content into the
> > language appropriate for the visitor.
> >
> > - Cascading Templates. Web page design and layout are controlled by
> > templates, allowing for quick and cost-effective website redesigns.
> > Templates can be modified in real time, changing the layout, colors,
> > and other style properties instantaneously. Templates are cascading
> > through the matrix folder, meaning templates can be defined for a
> > single page or an entire domain or website.
> >
> > - Workflow Ready. This version of the server includes everything
> > needed to manage an infinite number of organizations, groups, and
> > users, all with unique roles, policy permissions, and access rights
> > throughout the matrix. It lacks only a few things when it comes to
> > workflow, and these added features will be included in a near future
> > release.
> >
> > - Inclusive Session Management. The server does not rely upon cookies
> > at all to manage the individual sessions of each user accessing the
> > server. Instead, it automatically and uniquely propagates this
> > information into each request and embeds the information into every
> > link managed by the server.
> >
> > - Search Engine Aware. The server automatically disables sessions for
> > known search engines, preventing them from including session
> > information in their indexes. This is also useful if you wish to
> > create a page for the search engine that does not include the
> template,
> > thereby only showing the content of the page to the search engine for
> > indexing.
> >
> > - Browser Aware. The server automatically determines browser
> > information from each visitor and assigns it to their session. Some
> of
> > the collected information includes the user's languages and screen
> > resolution, as well as their browser capabilities. This information
> is
> > made available via the $Core->BrowserInfo[] array.
> >
> > - Extensive Logging. The server logs activity to all components, from
> > websites and pages to files and objects. It logs all form post and
> get
> > data, cookies, system functions, and script warnings and errors,
> > depending upon your configuration. It also logs all attempts at
> > treacherous activity anywhere within the system!
> >
> > - Wizardly Management. The server includes a built-in wizard
> > component, which includes the eNetwizard Control Panel, for easy
> > management of every aspect of the server. As expressed by a recent
> > user of the Control Panel, it's "overwhelmingly powerful."
> >
> > - Customizable Website Applications. Objects are a powerful way to
> > make use of the server, allowing you to click once and build anything
> > from a guestbook or newsletter to a first-class e-commerce
> application,
> > rendered in the style properties appropriate for the website, and
> fully
> > managed from the eNetwizard Control Panel.
> >
> > - Much More!
> >
> > http://matrix.enetwizard.net/default.rsw
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>

attached mail follows:


I fixed the problem; now works with Safari. =)

Richard Baskett wrote:

>Do you realize that link does not work with the Safari browser? it just
>shows up blank :(
>
>Rick
>
>When one door closes, another opens; but we often look so long and so
>regretfully upon the closed door that we do not see the one which has opened
>for us. - Alexander Graham Bell
>
>
>
>>From: "Robert Samuel White" <webmasterenetwizard.net>
>>Reply-To: Robert Samuel White <webmasterenetwizard.net>
>>Date: Mon, 07 Jul 2003 16:54:11 -0400
>>To: php-generallists.php.net
>>Subject: [PHP] PHP/Content Management
>>
>>Just a quick message to let everyone know that after ten months I have
>>finally released the first official open source version of eNetwizard
>>Matrix Server, my sophisticated content management system and
>>application server. All it needs is PHP, MySQL, and Apache. Full
>>instructions are included on the website. More information about it is
>>below...
>>
>>http://matrix.enetwizard.net/default.rsw
>>
>>
>>About eNetwizard Matrix Server
>>
>>eNetwizard Matrix Server takes content management and web application
>>serving to levels undreamt, infusing your web environment with sheer
>>power and possibility.
>>
>>
>>Cutting Edge Technology
>>
>>- Never before has a content management system been designed around
>>the concept of a universal point of contact for all requests. This
>>server knows all, and delivers all.
>>
>>- Never before has a content management system been designed to render
>>and manage the content of an unlimited number of domains and websites
>>for an unlimited number of businesses and organizations. Expect
>>nothing less from our server.
>>
>>
>>Core Features
>>
>>- Production Environment Ready. The server before you has had no
>>corners cut in its design. It is stable and ready for production
>>environments, with only a few minor limitations or idiocyncracies. And
>>it's free and open source.
>>
>>- Infinitely Expansive Design. The server was designed to manage an
>>infinite number of domains, websites, components, organizations,
>>groups, and users, all from a single running copy of its distribution.
>>
>>- Complete Content Management. The server manages the content of all
>>mime types and can deliver the content to the requesting client based
>>on customizable settings of the server for each mime type.
>>
>>- Seemless Integration with Other Server Software. The server was
>>designed to complement the job of the web server and server side
>>scripting languages, and does not replace nor interfere with their
>>purposes. In fact, you can utilize all of them from within the system
>>in a myriad of useful ways.
>>
>>- Language Independent. The server, objects, and wizards were all
>>designed to contain its strings in an XML localization file, allowing
>>it to run in any language it has been translated into. In a near
>>future release, it will also be possible to render content into the
>>language appropriate for the visitor.
>>
>>- Cascading Templates. Web page design and layout are controlled by
>>templates, allowing for quick and cost-effective website redesigns.
>>Templates can be modified in real time, changing the layout, colors,
>>and other style properties instantaneously. Templates are cascading
>>through the matrix folder, meaning templates can be defined for a
>>single page or an entire domain or website.
>>
>>- Workflow Ready. This version of the server includes everything
>>needed to manage an infinite number of organizations, groups, and
>>users, all with unique roles, policy permissions, and access rights
>>throughout the matrix. It lacks only a few things when it comes to
>>workflow, and these added features will be included in a near future
>>release.
>>
>>- Inclusive Session Management. The server does not rely upon cookies
>>at all to manage the individual sessions of each user accessing the
>>server. Instead, it automatically and uniquely propagates this
>>information into each request and embeds the information into every
>>link managed by the server.
>>
>>- Search Engine Aware. The server automatically disables sessions for
>>known search engines, preventing them from including session
>>information in their indexes. This is also useful if you wish to
>>create a page for the search engine that does not include the template,
>>thereby only showing the content of the page to the search engine for
>>indexing.
>>
>>- Browser Aware. The server automatically determines browser
>>information from each visitor and assigns it to their session. Some of
>>the collected information includes the user's languages and screen
>>resolution, as well as their browser capabilities. This information is
>>made available via the $Core->BrowserInfo[] array.
>>
>>- Extensive Logging. The server logs activity to all components, from
>>websites and pages to files and objects. It logs all form post and get
>>data, cookies, system functions, and script warnings and errors,
>>depending upon your configuration. It also logs all attempts at
>>treacherous activity anywhere within the system!
>>
>>- Wizardly Management. The server includes a built-in wizard
>>component, which includes the eNetwizard Control Panel, for easy
>>management of every aspect of the server. As expressed by a recent
>>user of the Control Panel, it's "overwhelmingly powerful."
>>
>>- Customizable Website Applications. Objects are a powerful way to
>>make use of the server, allowing you to click once and build anything
>>from a guestbook or newsletter to a first-class e-commerce application,
>>rendered in the style properties appropriate for the website, and fully
>>managed from the eNetwizard Control Panel.
>>
>>- Much More!
>>
>>http://matrix.enetwizard.net/default.rsw
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>
>
>
>

attached mail follows:


If you are on developing on linux then that would be good.

however, i strongly encourage gaining knowledge of programming concepts
if that is what you are doing with php. Having a solid foundation of
programming concepts will help you in php and any other language.

--
BigDog

On Mon, 2003-07-07 at 15:49, Hiren Mehta wrote:
> Do you suggests any pre-requisites before starting off with the books?
> Someone told me it would be much better if I learn Linux first
> Hiren
>
> ----- Original Message -----
> From: "Kevin Stone" <kevinhelpelf.com>
> To: "Hiren Mehta" <hirenactivetopic.com>; "PHP" <php-generallists.php.net>
> Sent: Tuesday, July 08, 2003 3:18 AM
> Subject: Re: [PHP] New to PHP
>
>
> > There are many great books to help get you started. Infact.. believe it
> or
> > not.. for the complete newbie "PHP for Dummies" is a great chioce. It's
> > very well written and starts with no assumptions about your skill level.
> >
> > But if you do happen to have some programming experience try "PHP and
> MySQL
> > Web Development" (do a search on Amazon). That's the book that helped me
> > out the most. It has some great real-world examples with complete
> > walk-through tutorials.
> >
> > Don't bother purchasing a function reference becuase the php.net reference
> > is the best there is. And it's free. :)
> >
> > HTH,
> > Kevin
> >
> >
> > ----- Original Message -----
> > From: "Hiren Mehta" <hirenactivetopic.com>
> > To: "PHP" <php-generallists.php.net>
> > Sent: Monday, July 07, 2003 3:27 PM
> > Subject: [PHP] New to PHP
> >
> >
> > Hi I am new to PHP and would like to learn more about it. Which would be
> the
> > best place to start with besides the manual and what would you suggest is
> a
> > pre-requiste for learning PHP.
> >
> > Thanks
> >
> > Regards,
> >
> > Hiren
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>

attached mail follows:


Only if you are planning on using PHP & MySQL on Linux. If you are going
the windows direction, then you don't need too.

good luck

"Hiren Mehta" <hirenactivetopic.com> wrote in message
news:00fe01c344d1$b2143bf0$4603000ahiren...
> Do you suggests any pre-requisites before starting off with the books?
> Someone told me it would be much better if I learn Linux first
> Hiren
>
> ----- Original Message -----
> From: "Kevin Stone" <kevinhelpelf.com>
> To: "Hiren Mehta" <hirenactivetopic.com>; "PHP"
<php-generallists.php.net>
> Sent: Tuesday, July 08, 2003 3:18 AM
> Subject: Re: [PHP] New to PHP
>
>
> > There are many great books to help get you started. Infact.. believe it
> or
> > not.. for the complete newbie "PHP for Dummies" is a great chioce. It's
> > very well written and starts with no assumptions about your skill level.
> >
> > But if you do happen to have some programming experience try "PHP and
> MySQL
> > Web Development" (do a search on Amazon). That's the book that helped
me
> > out the most. It has some great real-world examples with complete
> > walk-through tutorials.
> >
> > Don't bother purchasing a function reference becuase the php.net
reference
> > is the best there is. And it's free. :)
> >
> > HTH,
> > Kevin
> >
> >
> > ----- Original Message -----
> > From: "Hiren Mehta" <hirenactivetopic.com>
> > To: "PHP" <php-generallists.php.net>
> > Sent: Monday, July 07, 2003 3:27 PM
> > Subject: [PHP] New to PHP
> >
> >
> > Hi I am new to PHP and would like to learn more about it. Which would be
> the
> > best place to start with besides the manual and what would you suggest
is
> a
> > pre-requiste for learning PHP.
> >
> > Thanks
> >
> > Regards,
> >
> > Hiren
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>

attached mail follows:


Thnx alot guys.... You have been of great help :D

Regards,
Hiren Mehta

----- Original Message -----
From: "Ray Hunter" <bigdogventicon.com>
To: "PHP" <php-generallists.php.net>
Sent: Tuesday, July 08, 2003 3:26 AM
Subject: Re: [PHP] New to PHP

> If you are on developing on linux then that would be good.
>
> however, i strongly encourage gaining knowledge of programming concepts
> if that is what you are doing with php. Having a solid foundation of
> programming concepts will help you in php and any other language.
>
> --
> BigDog
>
>
>
> On Mon, 2003-07-07 at 15:49, Hiren Mehta wrote:
> > Do you suggests any pre-requisites before starting off with the books?
> > Someone told me it would be much better if I learn Linux first
> > Hiren
> >
> > ----- Original Message -----
> > From: "Kevin Stone" <kevinhelpelf.com>
> > To: "Hiren Mehta" <hirenactivetopic.com>; "PHP"
<php-generallists.php.net>
> > Sent: Tuesday, July 08, 2003 3:18 AM
> > Subject: Re: [PHP] New to PHP
> >
> >
> > > There are many great books to help get you started. Infact.. believe
it
> > or
> > > not.. for the complete newbie "PHP for Dummies" is a great chioce.
It's
> > > very well written and starts with no assumptions about your skill
level.
> > >
> > > But if you do happen to have some programming experience try "PHP and
> > MySQL
> > > Web Development" (do a search on Amazon). That's the book that helped
me
> > > out the most. It has some great real-world examples with complete
> > > walk-through tutorials.
> > >
> > > Don't bother purchasing a function reference becuase the php.net
reference
> > > is the best there is. And it's free. :)
> > >
> > > HTH,
> > > Kevin
> > >
> > >
> > > ----- Original Message -----
> > > From: "Hiren Mehta" <hirenactivetopic.com>
> > > To: "PHP" <php-generallists.php.net>
> > > Sent: Monday, July 07, 2003 3:27 PM
> > > Subject: [PHP] New to PHP
> > >
> > >
> > > Hi I am new to PHP and would like to learn more about it. Which would
be
> > the
> > > best place to start with besides the manual and what would you suggest
is
> > a
> > > pre-requiste for learning PHP.
> > >
> > > Thanks
> > >
> > > Regards,
> > >
> > > Hiren
> > >
> > >
> > >
> > >
> > > --
> > > 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
>

attached mail follows:


No there are no real pre-requisites to learning PHP. You should be
comfortable working with the OS that you're used to, but that goes without
saying. PHP is an almost ideal beginner's language. Knowledge of Linux is
certainly not required. There are PHP installers for Windows and Mac that
are point and click. Very easy step by step. And there's plenty of easily
accessible info on Google Groups if you get stuck.
- Kevin

----- Original Message -----
From: "Hiren Mehta" <hirenactivetopic.com>
To: "PHP" <php-generallists.php.net>
Sent: Monday, July 07, 2003 3:49 PM
Subject: Re: [PHP] New to PHP

> Do you suggests any pre-requisites before starting off with the books?
> Someone told me it would be much better if I learn Linux first
> Hiren
>
> ----- Original Message -----
> From: "Kevin Stone" <kevinhelpelf.com>
> To: "Hiren Mehta" <hirenactivetopic.com>; "PHP"
<php-generallists.php.net>
> Sent: Tuesday, July 08, 2003 3:18 AM
> Subject: Re: [PHP] New to PHP
>
>
> > There are many great books to help get you started. Infact.. believe it
> or
> > not.. for the complete newbie "PHP for Dummies" is a great chioce. It's
> > very well written and starts with no assumptions about your skill level.
> >
> > But if you do happen to have some programming experience try "PHP and
> MySQL
> > Web Development" (do a search on Amazon). That's the book that helped
me
> > out the most. It has some great real-world examples with complete
> > walk-through tutorials.
> >
> > Don't bother purchasing a function reference becuase the php.net
reference
> > is the best there is. And it's free. :)
> >
> > HTH,
> > Kevin
> >
> >
> > ----- Original Message -----
> > From: "Hiren Mehta" <hirenactivetopic.com>
> > To: "PHP" <php-generallists.php.net>
> > Sent: Monday, July 07, 2003 3:27 PM
> > Subject: [PHP] New to PHP
> >
> >
> > Hi I am new to PHP and would like to learn more about it. Which would be
> the
> > best place to start with besides the manual and what would you suggest
is
> a
> > pre-requiste for learning PHP.
> >
> > Thanks
> >
> > Regards,
> >
> > Hiren
> >
> >
> >
> >
> > --
> > 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
>
>

attached mail follows:


At 7/8/2003 03:30 AM, Hiren Mehta wrote:

> Thnx alot guys.... You have been of great help :D

And don't forget this list! There are a lot of really talented people on
this list, so if you're trying to figure something out and haven't been
able to find an answer on your own, don't hesitate to ask here.

I've learned a lot just by reading the threads started by other people;
more often than not, someone has already asked or is in the process of
asking questions about the exact same problem I'm working on.

There's also a searchable archive of this list at:

http://marc.theaimsgroup.com/?l=php-general

Chances are, someone's already asked.

--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Email: skellerhealthtvchannel.org
Web: www.healthtvchannel.org

attached mail follows:


On Jul 7, 2003, "Steve Keller" claimed that:

|At 7/8/2003 03:30 AM, Hiren Mehta wrote:
|
| > Thnx alot guys.... You have been of great help :D
|
|And don't forget this list! There are a lot of really talented people on
|this list, so if you're trying to figure something out and haven't been
|able to find an answer on your own, don't hesitate to ask here.
|
|I've learned a lot just by reading the threads started by other people;
|more often than not, someone has already asked or is in the process of
|asking questions about the exact same problem I'm working on.

[snip]

|--
|S. Keller

After coding for a while, I would suggest that while you're reading
through coding excercises, you find a coding style that works for you and
keep it consistant. One of the least fun parts of creating your php pages
is reading some code that you coded months (years) ago, and it's totally
out of style with everything else that you're doing.

One good place is the "Official Pear Coding Standard:"
http://pear.php.net/manual/en/standards.php

Jeff
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.

attached mail follows:


Here are some sites for you to get started:

http://www.zend.com/developers.php
http://www.phpcomplete.com/tutorials.php
http://www.evilwalrus.com/articles.php

And for books, here are some excellent books I've come across:

Programming PHP
By Rasmus Lerdorf

Web Application Development with PHP 4.0
by Tobias Ratschiller

Professional PHP4 Programming
By Deepak Thomas

-----Original Message-----
From: Hiren Mehta [mailto:hirenactivetopic.com]
Sent: Monday, July 07, 2003 2:28 PM
To: PHP
Subject: [PHP] New to PHP

Hi I am new to PHP and would like to learn more about it. Which would be
the best place to start with besides the manual and what would you
suggest is a pre-requiste for learning PHP.

Thanks

Regards,

Hiren

attached mail follows:


How do I specify it that I just want to check to see if the form field was
blank and if so, inform the user? I know I could do this with JavaScript
but I need to be able to do correct conditions.

thanks

"Paul Chvostek" <paul+phpit.ca> wrote in message
news:20030707213050.GA54434mail.it.ca...
> On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote:
> >
> > if ($_POST["imgList"] = ""){
>
> You're *assigning* a variable in this condition.
>
> --
> Paul Chvostek <paulit.ca>
> it.canada http://www.it.ca/
> Free PHP web hosting! http://www.it.ca/web/
>

attached mail follows:


try that

if (!isset($_POST["imgList"]) || empty($_POST["imgList"])){

for the comparison.

Thomas

On Mon, 7 Jul 2003 16:02:21 -0600 montmicaisu.edu (Micah Montoy) wrote:

> How do I specify it that I just want to check to see if the form field was
> blank and if so, inform the user? I know I could do this with JavaScript
> but I need to be able to do correct conditions.
>
> thanks
>
>
>
> "Paul Chvostek" <paul+phpit.ca> wrote in message
> news:20030707213050.GA54434mail.it.ca...
> > On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote:
> > >
> > > if ($_POST["imgList"] = ""){
> >
> > You're *assigning* a variable in this condition.
> >
> > --
> > Paul Chvostek <paulit.ca>
> > it.canada http://www.it.ca/
> > Free PHP web hosting! http://www.it.ca/web/
> >
>
>

attached mail follows:


> "Paul Chvostek" <paul+phpit.ca> wrote in message news:20030707213050.GA54434mail.it.ca...
> > On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote:
> > >
> > > if ($_POST["imgList"] = ""){
> >
> > You're *assigning* a variable in this condition.

On Mon, Jul 07, 2003 at 04:02:21PM -0600, Micah Montoy wrote:
>
> How do I specify it that I just want to check to see if the form field was
> blank and if so, inform the user?

    if ( !isset($_POST["imgList"]) ) { }

or if imgList is a text string, you could safely punt with:

    if ( $_POST["imgList"] == "" ) { }

>I know I could do this with JavaScript
> but I need to be able to do correct conditions.

What do you mean by "correct"? Why can't you do this in JS? (Note that
even if you do it in JavaScript, you should *still* do it in PHP, to
support all browsers. These days, quite a few corporate networks force
web traffic through proxies that block JavaScript, cookies and sometimes
even Flash.)

--
  Paul Chvostek <paulit.ca>
  it.canada http://www.it.ca/
  Free PHP web hosting! http://www.it.ca/web/

attached mail follows:


Hello
I need help.
I'm querying a database then printing the results in a table. I want the result to be in a table with 2 columns per row.
something like that
 
--------------------------------------------------------
-- -- --
-- row 1 -- row 2 --
-- -- --
--------------------------------------------------------
-- -- --
-- row 3 -- row 4 --
-- -- --
--------------------------------------------------------
-- -- --
-- row 5 -- row 6 --
-- -- --
--------------------------------------------------------
     and so on.....

How can I do that?
Please help me asap

attached mail follows:


I'd just dump all of the results into an array and do something like this:

echo "<table border=1>\n";
for($i=0; $i<count($array);)
{
    echo "\t<tr>\n";
    for($j=0; $j<2; $j++)
    {
        echo "\t\t<td>".$array[$i]."</td>\n";
        $i++;
    }
    echo "\t</tr>\n";
}
echo "</table>\n";

On odd numbered arrays you'll end up with an empty cell. Most browsers will
handel the empty cell by simply not displaying it. Others might show the
box. It's a minor cosmetic thing but if you want it to look consistent then
test for that situation and add a non-breaking space to the final cell.

HTH,
Kevin

----- Original Message -----
From: "phpu" <phpugo.ro>
To: <php-generallists.php.net>
Sent: Monday, July 07, 2003 4:03 PM
Subject: [PHP] Table trouble

Hello
I need help.
I'm querying a database then printing the results in a table. I want the
result to be in a table with 2 columns per row.
something like that

--------------------------------------------------------
-- -- --
-- row 1 -- row 2 --
-- -- --
--------------------------------------------------------
-- -- --
-- row 3 -- row 4 --
-- -- --
--------------------------------------------------------
-- -- --
-- row 5 -- row 6 --
-- -- --
--------------------------------------------------------
     and so on.....

How can I do that?
Please help me asap

attached mail follows:


On Jul 8, 2003, "phpu" claimed that:

|Hello
|I need help.
|I'm querying a database then printing the results in a table. I want the result to be in a table with 2 columns per row.
|something like that
|
|--------------------------------------------------------
|-- row 1 -- row 2 --
|--------------------------------------------------------
|-- row 3 -- row 4 --
|--------------------------------------------------------

|How can I do that?
|Please help me asap
|

I suggest you learn to count by 2's and create a loop using that counting
pattern. It looks like you want the odd rows on the left and the even
rowss on the right.

Jeff
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.

attached mail follows:


10x but i am new to php and i do not know how to dump all of the results
into an array.... can you help me with this one please?

----- Original Message -----
From: "Kevin Stone" <kevinhelpelf.com>
To: "phpu" <phpugo.ro>; <php-generallists.php.net>
Sent: Tuesday, July 08, 2003 1:19 AM
Subject: Re: [PHP] Table trouble

> I'd just dump all of the results into an array and do something like this:
>
> echo "<table border=1>\n";
> for($i=0; $i<count($array);)
> {
> echo "\t<tr>\n";
> for($j=0; $j<2; $j++)
> {
> echo "\t\t<td>".$array[$i]."</td>\n";
> $i++;
> }
> echo "\t</tr>\n";
> }
> echo "</table>\n";
>
> On odd numbered arrays you'll end up with an empty cell. Most browsers
will
> handel the empty cell by simply not displaying it. Others might show the
> box. It's a minor cosmetic thing but if you want it to look consistent
then
> test for that situation and add a non-breaking space to the final cell.
>
> HTH,
> Kevin
>
> ----- Original Message -----
> From: "phpu" <phpugo.ro>
> To: <php-generallists.php.net>
> Sent: Monday, July 07, 2003 4:03 PM
> Subject: [PHP] Table trouble
>
>
> Hello
> I need help.
> I'm querying a database then printing the results in a table. I want the
> result to be in a table with 2 columns per row.
> something like that
>
> --------------------------------------------------------
> -- -- --
> -- row 1 -- row 2 --
> -- -- --
> --------------------------------------------------------
> -- -- --
> -- row 3 -- row 4 --
> -- -- --
> --------------------------------------------------------
> -- -- --
> -- row 5 -- row 6 --
> -- -- --
> --------------------------------------------------------
> and so on.....
>
> How can I do that?
> Please help me asap
>
>
>
>
>

attached mail follows:


so far i have:

$sql="select * from cate order by name asc";
$resurs=mysql_query($sql);
while ($row=mysql_fetch_array($resurs))
{

echo ".$row[1].";
echo ".$row[2].";
echo ".$row[3].";

}

how can i put all of this together?
echo "</table>";
----- Original Message -----
From: "Michael A Smith" <msmithprattmuseum.org>
To: "phpu" <phpugo.ro>
Sent: Tuesday, July 08, 2003 1:43 AM
Subject: Re: [PHP] Table trouble

> fetchinto?
> On Mon, 2003-07-07 at 14:42, phpu wrote:
> > 10x but i am new to php and i do not know how to dump all of the results
> > into an array.... can you help me with this one please?
> >
> > ----- Original Message -----
> > From: "Kevin Stone" <kevinhelpelf.com>
> > To: "phpu" <phpugo.ro>; <php-generallists.php.net>
> > Sent: Tuesday, July 08, 2003 1:19 AM
> > Subject: Re: [PHP] Table trouble
> >
> >
> > > I'd just dump all of the results into an array and do something like
this:
> > >
> > > echo "<table border=1>\n";
> > > for($i=0; $i<count($array);)
> > > {
> > > echo "\t<tr>\n";
> > > for($j=0; $j<2; $j++)
> > > {
> > > echo "\t\t<td>".$array[$i]."</td>\n";
> > > $i++;
> > > }
> > > echo "\t</tr>\n";
> > > }
> > > echo "</table>\n";
> > >
> > > On odd numbered arrays you'll end up with an empty cell. Most
browsers
> > will
> > > handel the empty cell by simply not displaying it. Others might show
the
> > > box. It's a minor cosmetic thing but if you want it to look
consistent
> > then
> > > test for that situation and add a non-breaking space to the final
cell.
> > >
> > > HTH,
> > > Kevin
> > >
> > > ----- Original Message -----
> > > From: "phpu" <phpugo.ro>
> > > To: <php-generallists.php.net>
> > > Sent: Monday, July 07, 2003 4:03 PM
> > > Subject: [PHP] Table trouble
> > >
> > >
> > > Hello
> > > I need help.
> > > I'm querying a database then printing the results in a table. I want
the
> > > result to be in a table with 2 columns per row.
> > > something like that
> > >
> > > --------------------------------------------------------
> > > -- -- --
> > > -- row 1 -- row 2 --
> > > -- -- --
> > > --------------------------------------------------------
> > > -- -- --
> > > -- row 3 -- row 4 --
> > > -- -- --
> > > --------------------------------------------------------
> > > -- -- --
> > > -- row 5 -- row 6 --
> > > -- -- --
> > > --------------------------------------------------------
> > > and so on.....
> > >
> > > How can I do that?
> > > Please help me asap
> > >
> > >
> > >
> > >
> > >
> --
> Michael Smith
> msmithcustom87.net
>
> "The great thing about democracy is that it gives
> every voter a chance to do something stupid."
> -Art Spander
>

attached mail follows:


Here's a tutorial on doing this:

http://codewalkers.com/tutorials.php?show=15

-----Original Message-----
From: phpu [mailto:phpugo.ro]
Sent: Monday, July 07, 2003 3:04 PM
To: php-generallists.php.net
Subject: [PHP] Table trouble

Hello
I need help.
I'm querying a database then printing the results in a table. I want the
result to be in a table with 2 columns per row.
something like that
 
--------------------------------------------------------
-- -- --
-- row 1 -- row 2 --
-- -- --
--------------------------------------------------------
-- -- --
-- row 3 -- row 4 --
-- -- --
--------------------------------------------------------
-- -- --
-- row 5 -- row 6 --
-- -- --
--------------------------------------------------------
     and so on.....

How can I do that?
Please help me asap

attached mail follows:


> fetchinto?
> On Mon, 2003-07-07 at 14:42, phpu wrote:
> > 10x but i am new to php and i do not know how to dump all of the
results
> > into an array.... can you help me with this one please?

$sql="select * from cate order by name asc";
$resurs=mysql_query($sql);
while ($row=mysql_fetch_array($resurs))
{
  $results_array[] = (
     'field_1' => $row['1'],
     'field_2' => $row['2'],
     'field_3' => $row['3']
  );
}

echo "<table border=1>\n";
for($i=0; $i<count($results_array);)
{
   echo "\t<tr>\n";
   for($j=0; $j<2; $j++)
   {
      echo "\t\t<td>".$results_array[$i]."</td>\n";
      $i++;
   }
   echo "\t</tr>\n";
}

attached mail follows:


On Jul 7, 2003, "Micah Montoy" claimed that:

|Well, I redid the code a bit but it is still blowing up with the same error
|message. I also did the echo bit and it returned "Resource id #10". What
|ever that is. At least I know its returning something. But when I did
|mssql_row_nums($result), it returned the value 0. I'm not sure if this is
|where its encountering problems or not. Here is the script that I'm using
|for everything. I believe the syntax is correct but let me know if you see
|anything out of place.

[snip]
If the number of rows being returned is zero, what data do you expect to
get? Shouldn't you check to see if the number of rows returned is zero and
produce some other message and stop processing the non-existant results?

Jeff
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.

attached mail follows:


Hi all,

I have a question which I'll try to convey as best as I can. I want to
change the referer variable so when I do a:

header("Location: $location");

the log files on the resulting location have the information in the referer
environment variable that I have set, not what was originally in that
referer variable.

Here's an example.

Someone does a search on yahoo for the term 'search engine positioning'. The
referer information in the log contains something similar to the following:

host156.wdia.com - - [05/Jul/2003:13:35:27 -0700] "GET
?term=search+engine+positioning+and+placementbullseye.html HTTP/1.1" 200
8688
"http://us.rd.yahoo.com/search/navbar/nexts/*-http://search.yahoo.com/search
?p=search+engine+positioning&xargs=02u3hs9yoaKCstSjWzAFC1QsyyctTTIMFUAACqRb4
F&b=21" "Mozilla/4.0 (compatible ; MSIE 4.0 ; Windows 95/98 ; 1236446)"

I want to change that information by pulling the variables after the http so
the only thing passed is the http info.

Can this be done?

A way I've gotten around it that is not acceptable is to use a javascript
form submit instead of the header function. This won't work because we have
a requirement that our users can hit the back button on their browser.
Hitting the back button with the javascript solution just resubmits the
javascript form.

Thanks so much,

Guy Davis

attached mail follows:


Alternately, you could place code similar to this in your first form.

echo "<input type=\"text\" name=\"data\"";
if ( isset($_POST['data']) ) {
  echo "value=\"".$_POST['data']."\";
}
echo " />"

When you first access this form it would output:
<input type="test" name="data" />
And when returning, assuming that your edit button is on a form posting
the data:
<input type="text" name="data" value="Some Data..." />

> You could save all of the form data in session variables, when they
> click edit re-populate the form fields with the session data.
>
>>>> "Artoo" <artoo_shotmail.com> 07/07/03 04:00PM >>>
> Anyone know where I can view some sample code that does the following?
>
> When the user clicks on SUBMIT, they are taken to a confirmation
> screen
> which they can click an EDIT button or SUBMIT button. If they click on
> the
> EDIT button they are taken back to the first form. How do you repost
> the
> data the user entered into the first form, as I get a empty form when
> I
> click on EDIT?
>
> Thanks
>
>
>
> --
> 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
>
>

--
Thanks,
  Dean E. Weimer
  http://www.dwiemer.org/
  dweimerdweimer.org

attached mail follows:


On Mon, Jul 07, 2003 at 06:20:42PM +0100, David Otton wrote:
> On Mon, 7 Jul 2003 17:36:26 +0100, you wrote:
>
> >I want to write a function (as I have written in several other languages) that
> >obtains it's arguments dynamically (using func_get_arg()) and then assigns to that
> >argument. Think of the way that scanf() works -- that sort of thing.
> >
> >I have distilled what I want to do in the code below. foo adds 1 to all of it's arguments.
> >
> >function foo () {
> > $count = func_num_args();
> > for($i = 0; $i <= $count; $i++) {
> > $var = func_get_arg($i);
> > // The following line should do it, but throws a syntax error
> > &$var = $var + 1;
> > }
> >}
> >
> >$a = '1';
> >$b = '2';
> >$c = '3';
> >
> >foo($a, $b, $c);
> >
> >What I am doing is quite different than the above (and more complex), but I will be able
> >to achieve what I want if I can get the above to work.
>
> Well.... this would work
>
> function foo () {
> $count = func_num_args();
> for($i = 0; $i < $count; $i++) {
> $var = func_get_arg($i);
> $var = $var + 1;
> echo ($var);
> }
> }
>
> But I get the feeling you're trying to modify the elements in-place? Any
> particular reason?
>
> If it's because you want to return multiple values from the function,
> consider this:
>
> function foo () {
> $args = array();
> for ($i = 0; $i < func_num_args(); $i++) {
> $args[] = func_get_arg($i);
> }
>
> $args = array_map (create_function ('$a','return($a+1);'), $args);
>
> return ($args);
> }
>
> list ($a, $b, $c) = foo(1, 2, 3);
>
> echo ("$a, $b, $c");

No, the reason that I want to do it is for the same reason that sscanf() does it -- I want
to change the values of the variables that are passed to it.

--
Alain Williams

#include <std_disclaimer.h>

FATHERS-4-JUSTICE - Campaigning for equal rights for parents and the
best interests of our children. See http://www.fathers-4-justice.org

attached mail follows:


On Mon, 7 Jul 2003 23:37:58 +0100, you wrote:

>On Mon, Jul 07, 2003 at 06:20:42PM +0100, David Otton wrote:
>> On Mon, 7 Jul 2003 17:36:26 +0100, you wrote:
>>
>> >I want to write a function (as I have written in several other languages) that
>> >obtains it's arguments dynamically (using func_get_arg()) and then assigns to that
>> >argument. Think of the way that scanf() works -- that sort of thing.
>> >
>> >I have distilled what I want to do in the code below. foo adds 1 to all of it's arguments.
>> >
>> >function foo () {
>> > $count = func_num_args();
>> > for($i = 0; $i <= $count; $i++) {
>> > $var = func_get_arg($i);
>> > // The following line should do it, but throws a syntax error
>> > &$var = $var + 1;
>> > }
>> >}
>> >
>> >$a = '1';
>> >$b = '2';
>> >$c = '3';
>> >
>> >foo($a, $b, $c);

>> But I get the feeling you're trying to modify the elements in-place? Any
>> particular reason?
>>
>> If it's because you want to return multiple values from the function,

>No, the reason that I want to do it is for the same reason that sscanf() does it -- I want
>to change the values of the variables that are passed to it.

So you really do want to modify the variables in-place? Well ok, it's your
code.

The only way to do this (from within PHP), AFAIK, is to shoehorn a
non-variable argument in there by passing the variables as an array.

<?
function foo($args) {
    array_walk ($args, create_function ('&$a','$a++;'));
}

$a = 1;
$b = 2;
$c = 3;

foo (array (&$a, &$b, &$c));

echo ("$a, $b, $c");
?>

*shudder*.

The other option is to write in C and bolt it on as a custom extension.

(BTW, my first example used func_get_arg() in a loop to build an array when
I really should have used func_get_args().)

attached mail follows:


I know a lot more about php than about flash (which is probably sad)
but does anyone know how to take info in an array and pass it into an
array in flash? I think they have arrays, but the only thing I can seem
to find in flash to get info from php is the loadvariable actionscript
step. I looked around via google and I couldn't find anything within a
reasonable time that seemed to answer this question.

TIA

Jim McNeely
Envision Data
jimenvisiondata.com
http://www.envisiondata.com

attached mail follows:


don't know about loading it directly in flash, but you could always create a
javascript array in the page that loads the flash module and then have flash
read it or javascript enter it into the flash module.

Jim lucas
----- Original Message -----
From: "Jim McNeely" <jimenvisiondata.com>
To: <php-generallists.php.net>
Sent: Monday, July 07, 2003 4:29 PM
Subject: [PHP] php arrays into flash

> I know a lot more about php than about flash (which is probably sad)
> but does anyone know how to take info in an array and pass it into an
> array in flash? I think they have arrays, but the only thing I can seem
> to find in flash to get info from php is the loadvariable actionscript
> step. I looked around via google and I couldn't find anything within a
> reasonable time that seemed to answer this question.
>
> TIA
>
> Jim McNeely
> Envision Data
> jimenvisiondata.com
> http://www.envisiondata.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Jim,

The key words are "implode" on the PHP side and "split" on the Flash side.
Here's an example:

The data is returned from PHP like so, after doing the connect, select,
etc. to produce an array of 7 dates for back issues ... no claim that this
is optimal code.

if( $result && mysql_num_rows( $result ) >= 1 )
{
         while( $row = mysql_fetch_array( $result ) )
         {
                  $arrdates[] = $row[ dtStory ];
         }
         $issuedates = implode( ",", $arrdates );
  }

echo "issuedates=".$issuedates;

and in Flash, as part of the LoadVars varGetDates.onLoad = function(
success) callback is handled like so ...

_root.arrIssueDates = issuedates.split( "," );
_root.dtDate = _root.arrIssueDates[0];
for (i=0; i < arrIssueDates.length; i++)
{
    //load combo-display and data same in this case
    cboIssueDates.addItem(arrIssueDates[i],arrIssueDates[i]);
}

At 06:29 PM 7/7/2003 -0500, Jim McNeely wrote:
>I know a lot more about php than about flash (which is probably sad) but
>does anyone know how to take info in an array and pass it into an array in
>flash? I think they have arrays, but the only thing I can seem to find in
>flash to get info from php is the loadvariable actionscript step. I looked
>around via google and I couldn't find anything within a reasonable time
>that seemed to answer this question.
>
>TIA
>
>Jim McNeely
>Envision Data
>jimenvisiondata.com
>http://www.envisiondata.com
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Jim McNeely wrote:
> I know a lot more about php than about flash (which is probably sad) but
> does anyone know how to take info in an array and pass it into an array
> in flash? I think they have arrays, but the only thing I can seem to
> find in flash to get info from php is the loadvariable actionscript
> step. I looked around via google and I couldn't find anything within a
> reasonable time that seemed to answer this question.

You can do it via XML, or you could use serialize in PHP and write an
unserialize function in ActionScript.

Macromedia Flash MX Documentation:
http://www.macromedia.com/support/flash/documentation.html

>
> TIA
>
> Jim McNeely
> Envision Data
> jimenvisiondata.com
> http://www.envisiondata.com
>
>

attached mail follows:


Here is a site you might want to look at:

http://polar-lights.com/en/

-----Original Message-----
From: Jim McNeely [mailto:jimenvisiondata.com]
Sent: Monday, July 07, 2003 4:29 PM
To: php-generallists.php.net
Subject: [PHP] php arrays into flash

I know a lot more about php than about flash (which is probably sad)
but does anyone know how to take info in an array and pass it into an
array in flash? I think they have arrays, but the only thing I can seem
to find in flash to get info from php is the loadvariable actionscript
step. I looked around via google and I couldn't find anything within a
reasonable time that seemed to answer this question.

TIA

Jim McNeely
Envision Data
jimenvisiondata.com
http://www.envisiondata.com

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

attached mail follows:


elseif (eregi("a-ZA-9", $v_tel_filter)) {
echo "'$v_tel_filter' Telephone Number Contains words";

} else {

im looking how to verify numbers alone and dash "-" can that be possible? I
have tried using "a-ZA-9" but did not work.

any ideas?

thanks,
louie

--
Thank you,
Louie

attached mail follows:


Here is one of doing this:

if(strrpos($v_tel_filter,' ') > 0 || strspn($v_tel_filter,
"0123456789-") != strlen($v_tel