[PHP] PHP to replace javascript
Greetings, This is my first post here and I am still new to PHP and learning. I just joined this list last night. Javascript can open a separate and specifically sized window from a web page when a user clicks on a link that might reference a note or picture etc. Can this be done with PHP? If yes, will someone tell me where in the manual on the php.net site I can find the information to learn how to do this? I have been looking through the manual on the site but without knowing the name or names of what I am looking for it is real hard to find it. TIA, -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP to replace javascript
On Friday 03 September 2004 01:11 am, Sam Hobbs wrote: > "Jack Gates" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Javascript can open a separate and specifically sized window from a web > > page > > when a user clicks on a link that might reference a note or picture etc. > > > > Can this be done with PHP? If yes, will someone tell me where in the > > manual > > on the php.net site I can find the information to learn how to do this? > > > > I have been looking through the manual on the site but without knowing > > the name or names of what I am looking for it is real hard to find it. > > I am new to PHP also but there is some fundamental understanding of PHP > that is likely to make things much more clear. PHP is a server-side > facility. PHP executes before the HTML is (considered to be) complete. Then > the HTML is sent to the client. By the time that the user clicks on the > page, PHP is totally gone (for the purposes of the page). This concept is > quite easy to explain and to understand, yet you are likely to spend many, > many hours of reading before you read enough to understand this. In other > words, I am sure you can understand it, but this is the type of concept > that documentation seldom makes clear. > > You can, instead, put resize code (using PHP or nearly any language) in the > page that shows the image. This is also a more object-oriented solution. Thanks for the response, it makes sense. I already understand that PHP is server side code and Javascript is client side code. Last night I was tired when I sent this. I knew I had seen a pop up window on a web site that I new was completely written in PHP and driven by MySQL. The HTML output was done on the fly by the code and database, which prompted my question. I went to the actual PHP script source since I have direct access to it. The picture that was popping up when the link is picked is being done by Javascript embedded in the source PHP script. Now it is a lot clearer that the window pop up can't be done with PHP. If by chance my conclusion is wrong some one please enlighten me. My objective here is to remove Javascript from my site every where that I possibly can and to replace it with server side code or something else. The reason for this is simply because some people are going to turn off Javascript from their browser because of the danger that it could pose to their local box if they visit a site with evil intent. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP site ?
How is osCommerce doing this? Go here to see exactly what I am talking about: http://wiki.oscommerce.com/docs I am using the REMOTE_ADDR but it does not provide all the information that osCommerce is showing. When I use the variable it shows the numbers like 192.168.10.25 (I know this is an internal network address, it is just for example.) osCommerce gets more than just the numbers, they get the name as well I think. Thanks for any insight on what they might be doing. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP site ?
Thanks for all the responses. Now I am satisfied and can leave this one alone. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Does any one else get this?
Every time I post to the list, I get an undeliverable on the address below. Does any one else get this? If this address is on the list can we get it removed? To: [EMAIL PROTECTED] Subject: [PHP] PHP site ? was undeliverable due to the following reason: [EMAIL PROTECTED] - User doesn't exist or is inactive. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP site ?
I replaced this: $address = getenv("REMOTE_ADDR"); with this $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); and now I am getting exactly what I was trying to get. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Does any one else get this?
Sorry! Chris, I meant to send this to the list. On Saturday 04 September 2004 10:17 pm, Chris Martin wrote: > Jack Gates wrote: > > Every time I post to the list, I get an undeliverable on the address > > below. Does any one else get this? > > > > If this address is on the list can we get it removed? > > > > To: [EMAIL PROTECTED] > > Subject: [PHP] PHP site ? > > > > was undeliverable due to the following reason: > > > > [EMAIL PROTECTED] - User doesn't exist or is inactive. > > I don't get them from that address, but I get them from > > From: "Mailer Iguanahosting.com" <[EMAIL PROTECTED]> > Subject: Destinatario No exitente I get that one also. So far those are the only two. > > On top of that I've received post confirmations for messages I never > sent. Hopefully since I never confirmed them, they never made it. I > don't want to be considered one of the spammers that I'd like to knock > the F* out. I send addresses to spamcop.net all the time. > > > -- > Chris Martin > Web Developer > Open Source & Web Standards Advocate > http://www.chriscodes.com/ -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP to execute hyperlink?
I use an application that has a web browser engine built in and every time I open the app there is some code executing a hyperlink and pulling up a HTML page to a specific place on the page. This action changes according to if it is AM or PM and the date. Example: from 00:00 to 11:59 during the same day you will see the same starting place on the page any time this app is opened. From 12:00 to 23:59 during the same day you will see something different from the AM but it will be the same for the 12 hour time period. The next day the AM section and the PM do the same thing but on a different place on the page. Each day this behavior repeats but each day the place on the page is new. The page that is called has name anchors through out the page. It is these name anchors that are being called on the page. I said all that to ask this. I want to do the same thing using PHP script. Can this be done? I know PHP is server side script. I am not sure which date/time function to use. I assume that "if else" statements will be needed. I don't know how to get PHP to execute the hyperlink when the page opens. Basically the PHP code would execute something like this: Get the current date and time, find the matching name anchor that reflects the current month and day and if it is AM or PM and then display the correct place on the page. I am still learning PHP so this as been a little more than I can figure out right now. Just trying to figure out how to use all the date time functions is confusing. I do know how to use date() that one was easy to figure out. I don't know if I should be using date() or getdate() If I could figure out the start and end of the script I could probably figure this out. I think the middle with the "if else" statements will be easy to figure out. Every time I try to figure out these date time functions I get syntax errors. I can't figure out what the PHP manual says about these functions. Any body have any ideas? Thanks, -- Jack "The Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP4 readdir is_dir working incorrectly?
> Out of respect for everyone on the list, it is probably best to not use > this mailing list as a sales tool. Many of us here on the list are in > the same business of developing and hosting. It is wise to assume > everyone on the list is in the same business (even if it is untrue). > Just know that if someone is looking for hosting, they will definitely > post a request specifically looking for such services. It may also be > beneficial to you personally if you were to have a working PHP5 server > online before attempting to sell it as a service. I hope you take this > advice kindly, as I mean you no harm. > > One thing that I am not sure of is whether or not the PHP.NET group > already has a mailing list specifically for posting PHP related service > availability. If so, you may want to look for business there. > > Best of luck in your ventures. The US economy is starting to pick up > which is hopefully a benefit to all PHP programmers worldwide. > > Respectfully, > > -- > Kristopher Spencer-Yates > Dev Mgr/Systems Administration > [EMAIL PROTECTED] -- Jack "The Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP4 readdir is_dir working incorrectly?
This is just to say that I never sent that to the list. I sent it privately. So for you to send this to the list to say that I probably should not was not good either. Because now the whole list has been bothered instead of just one. On Thursday 16 September 2004 03:15 pm, Kristopher Spencer-Yates wrote: > Out of respect for everyone on the list, it is probably best to not use > this mailing list as a sales tool. Many of us here on the list are in > the same business of developing and hosting. It is wise to assume > everyone on the list is in the same business (even if it is untrue). > Just know that if someone is looking for hosting, they will definitely > post a request specifically looking for such services. It may also be > beneficial to you personally if you were to have a working PHP5 server > online before attempting to sell it as a service. I hope you take this > advice kindly, as I mean you no harm. > > One thing that I am not sure of is whether or not the PHP.NET group > already has a mailing list specifically for posting PHP related service > availability. If so, you may want to look for business there. > > Best of luck in your ventures. The US economy is starting to pick up > which is hopefully a benefit to all PHP programmers worldwide. > > Respectfully, > > -- > Kristopher Spencer-Yates > Dev Mgr/Systems Administration > [EMAIL PROTECTED] -- Jack "The Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: New PHP tutorial - suggestions welcome
On Sunday 26 September 2004 12:32 am, John Taylor-Johnston wrote: > Consistently crashes my Netscape 4.8 (circa 2003). yeah, I still use it, > because I prefer its news reader. Very few attacks on this mature mail > program. That said, you're forcing me to use IE6 :-| No one is forcing you to use anything. You made your own choice to use an older browser. His site works great with Mozilla 1.4 on Linux an Mozilla 1.7.1 on Windows -- Jack "The Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Shopping Carts
On Saturday 08 July 2006 18:31, Michael B Allen wrote: > I need a (free) shopping cart. The simpler the better. This one is what > I'm looking for: > > http://www.zend.com/codex.php?id=112&single=1 > > but it doesn't use current session handling, needs validation, etc. > > Any ideas? > > Thanks, > Mike > > -- > Michael B Allen > PHP Extension for SSO w/ Windows Group Authorization > http://www.ioplex.com/ http://www.oscommerce.com built with PHP and is free. -- Jack Gates http://www.jlgates.com/ http://www.myenergyproducts.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Best way to get PHP5
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: > I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some > negative things about it in general (FC5). What sort of negative things have you heard in general about (FC5)? -- Jack Gates http://www.morningstarcom.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Best way to get PHP5
On Wednesday 09 August 2006 19:24, Jochem Maas wrote: > Jonathan Duncan wrote: > > On Wed, 9 Aug 2006, Chris W. Parker wrote: > >> Jack Gates <mailto:[EMAIL PROTECTED]> > >> > >>on Wednesday, August 09, 2006 10:16 AM said: > >>> On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: > >>>> I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some > >>>> negative things about it in general (FC5). > >>> > >>> What sort of negative things have you heard in general about > >>> (FC5)? > >> > >> Honestly I don't remember. But I've now got a generally negative > >> view of FC5 versus previous versions (last one I used was 4 I > >> think). > >> > >> If you're aware of any FUD that's been spread about it, feel > >> free to speak the truth. > > > > If you want to really learn Linux, try Gentoo. If you just want > > a very good and easy to use Linux, go with SuSE. > > sane words. debian is a good alterative to Gentoo (and there's > Ubuntu which is a more userfriendly derivative of debian). > > personally I prefer eating razor blade than using something from > redhat - I have never used FC but if it's anything like RedHat > Enterprise Server then I'd only use as a bookend (if at all) if I > were you. ;-) > > FUD-tastic! > > > Jonathan Chris, Jochem just proved what I said earlier. Every one has their own preference and some go so far as to claim that the ones they just don't like are evil. That is why there are so many different flavors of Linux. That is also what will continue to hold Linux back in the market place and allow the truly evil OS to hold there market share on the desktop. > personally I prefer eating razor blades to using something from > Redmond Washington -- Jack Gates http://www.morningstarcom.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LAMP Experts Needed
I am looking for some serious coders that want to make a name for themselves and/or a lot of money. I need to talk to any one who is considered an Expert with any of these: Linux Apache MySQL or PostgreSQL PHP, Perl, Python HTML CSS XML XSL I am going to convince my employer to replace a very expensive package that they are using right now. This project will take several months to complete and then will be on going with a monthly maintenance and service. If you have any interest at all and want to know the details contact me. Send what you can and will do for this project to me at [EMAIL PROTECTED] It is going to be a web interface interacting with a very large database. -- Jack Gates http://www.morningstarcom.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php