[PHP] Interfacing with Verisign
I'm finishing up a site for an organization that wants to have members register online. I've done shopping carts in other languages before prior to CyberCash's decline. Before I get started, I wonder what requirements I'll need and if anyone has some good examples of the final stage of a purchase (I'm not looking for a shopping cart app.) The examples in the manual are good, but I'm not altogether sure if they'll work with Verisign's newer system. Thanks for any help you can provide. Mark
RE: [PHP] Getting users monitor size
Currently, I'm developing a site that makes full use of a 1024 x 768 display since 90% of my users have that config. In the off chance they have a smaller display, I have this in the header of my HTML template: SCRIPT LANGUAGE=JavaScript var smallver = {SCREEN_SIZE}; if(!smallver screen.width 1000) self.location.replace({RESIZED_SMALL}); else if(smallver screen.width 1000) self.location.replace({RESIZED_LARGE}); /SCRIPT Where: 'SCREEN_SIZE' = $sessiondata['session_small'] ? 1 : 0, 'RESIZED_SMALL' = $PHP_SELF.?resize=1.$QUERY_STRING, 'RESIZED_LARGE' = $PHP_SELF.?resize=0.$QUERY_STRING What all this means is that I store a Boolean variable in a sessions table for 'session_small'. In the php header of each page, I simply look at that variable to decide how to draw the page. The JavaScript is necessary since only client-side scripting can pick up that value for you automatically. If it sees that the screen size is set to normal (large) and the display won't allow it, it runs the page again with 'resize=1' in the query string to allow the change of the variable in the sessions table. Alternatively, if the 'session_small' variable true and the display will allow more, the page is reloaded with the correct value in the table. Hope this helps, Mark -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 2:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting users monitor size Is there a way to do this with PHP? I couldn't find it in the online docs and the archive search is offline :( 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
[PHP] 2 Syntax Questions
I'm very new to PHP. I've scanned the manual for these two, but I can't quite find the answers: 1. Is the following legal? INPUT TYPE=hidden NAME=user_id VALUE=? echo $user_id ? Or is it necessary to do this? ? echo(INPUT TYPE=\hidden\ NAME=\user_id\ VALUE=\.$user_id.\); ? 2. If I use the ? if: else: endif; ? syntax to avoid echoing larger blocks of HTML, within those statements, is it legal to use the standard ? if(...) {...} else {...} ? syntax? Thanks! Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Export selected data to a text file
I'm brand new to PHP, but very familiar with how to do this in another language. I'm want to read a member's record and export the selected data to a downloadable vCard. The vCard is simply a text file with a .vcf extension. Once I've read all the data for that user, I need to create the file line by line with a \r\n at the end of each. Example: BEGIN:VCARD VERSION:2.1 N:List;PHP;Mailing FN:PHP Mailing List EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20020503T111208Z END:VCARD How do I export each line to a text file then move that newly created file to a web root subdirectory? Thanks! Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php