RE: [PHP] FDF quit work for Acrobat 6
I don't see any substantial differences between your snippet and the one we're using. (In fact, the only real difference in output is that I've got an additional \n following the Root 1 0 R.) Our system has continued working with Acrobat 6, although we've noticed the newer reader has a tendency to cache old FDF's rather than using the fresh one. Is that what you're seeing as well, or do you get some sort of error message? -- Mark Roedel Web Programmer / Analyst LeTourneau University Longview, Texas USA -Original Message- From: Eric Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:14 PM To: [EMAIL PROTECTED] Subject: [PHP] FDF quit work for Acrobat 6 Launching a PDF form from PHP is easy (got the code below from php.net). Anyway this method works with Acrobat 5 readers and not Acrobat 6. Does anyone know why? thanks, -eric wood snip $fdfdata = %FDF-1.2\n%~B~D~\~T\n; $fdfdata .= 1 0 obj \n /FDF ; $fdfdata .= /Fields [\n; foreach($values as $key=$val) { $fdfdata.= /V ($val)/T ($key) ; } $fdfdata .= ]\n; $fdfdata .= /F (http://www.pdfs.com/Invoice.pdf); $fdfdata .= \nendobj\ntrailer\n\n/Root 1 0 R\n\n; $fdfdata .= %%EOF; header (Content-Type: application/vnd.fdf); print $fdfdata; snap -- 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
RE: [PHP] can pdf forms be used to submit data into db?
Guess I'm a little late to this party, but... If you're still looking for help with tying a PDF form to a database, drop me a note. I've got some code I developed for our online admissions application that I can probably be talked into sharing. -- Mark Roedel Web Programmer / Analyst LeTourneau University Longview, Texas USA -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 7:52 PM To: [EMAIL PROTECTED] Subject: [PHP] can pdf forms be used to submit data into db? hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically possible to have a pdf form be filled out online and then once the user hits submit, php takes the data and puts it into a db or some sort of db technology and if the need arises to pull up that record once more, php fetches the data from the db and dynamically fills out the pdf form and presents it to the end user...can do? or anyone know who i can talk to about this... thanks and mahalo from hawaii incentive if anyone can help me or point me in the right direction, i MAY be inclined to send some macadamia nuts to the continental US /incentive -- 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
RE: [PHP] open source content management systems?
When we were doing our search, we were pretty impressed with Typo3 (http://typo3.com/) from a features-and-interface standpoint. It died here because of lack of contract-able commercial support, but if that's not a factor in your process I'd say it's worth looking at. (We wound up selecting OpenCMS, which is Java-based. If you'd like to hear more about our decision-making process, or how the implementation has gone, I'd be glad to discuss it off-list.) -- Mark Roedel Web Programmer/Analyst LeTourneau University -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 7:39 PM To: [EMAIL PROTECTED] Subject: [PHP] open source content management systems? hi all does anyone have any recommendations for good open source content management systems for websites? - preferably, written in php... i have about a 5 page site running on a freebsd/apache server. it gets a fair number of hits a day. right now, the great majority of my pages are statically generated by my 30+ ftp users. there is no consistency of layout between sections of the site. i wanted to investigate open source content management systems in order to make our pages easier to create and update (preferably so i can do away with the majority of my ftp accounts and have my users create and update pages from a webbrowser), and maintain a consistent layout scheme across the site. i'd also be into investigating commercial cms's, although i'd like to stick with open source if possible... thanks redmond -- 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
RE: [PHP] HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!! can someone tell me whats wrong here? (newbie)
You're missing at least one closing brace (}) -- the one that belongs with the else if ($login==check) { ten or so lines up from the bottom. --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -Original Message- From: Mark Clarkstone [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 10:38 AM To: [EMAIL PROTECTED] Subject: [PHP] HELP can someone tell me whats wrong here? (newbie) Can anyone help me with this code I just get someting about $end help me fix it Thanks Parse error: parse error, unexpected $end in C:/apache/htdocs/test.php on line 73 title Control Panel/title font face=\Tahoma\ size=\2\ ? require(cpconf.php); if ($instal==0) { print pfont size=\2\ face=\Tahoma\bWelcome to The Control Panel Installerbr br /bThis will install the control Panel/font/p form method=\POST\ action=\?action=check\ font face=\Tahoma\ size=\2\Please enter your site domain e.g. freesite.cjb.com (without a www or a dot please) leave as localhost if you are using it as a local testing server./fontbr input type=\text\ name=\csiteex\ size=\20\ value=\localhost\br br font size=\2\ face=\Tahoma\Please enter a Username amp; password to access the areabr Usernamebr input type=\text\ name=\user\ size=\20\br Passwordbr input type=\text\ name=\pass\ size=\20\/fontbr input type=\submit\ value=\Submit\ name=\B1\/p /form; } else if ($action == check) { if (!$csiteex) { echo Please enter your domain; } else if (!$user) { echo Please enter a username; } else if (!$pass) { echo Please enter a password; } else if ($csiteex $user $pass) { $data = ? \$l33t = \C:/miniserve/Apache/conf/l33t.conf\; \$syspath = \C:\; \$install = \1\; \$siteex = \$csiteex\; \$admin = \$user\; \$adpw = \$pass\; ?; $fp = fopen(cpconf.php,'w'); $fw = fwrite($fp,$data); fclose($fp); } } else if ($install ==1) { echo pfont size=\2\ face=\Tahoma\bWelcome to The Control Panel/b/font/p form method=\POST\ action=\?login=check\ font size=\2\ face=\Tahoma\Please enter a Username amp; password to access the areabr Usernamebr input type=\text\ name=\userlogin\ size=\20\br Passwordbr input type=\text\ name=\passlogin\ size=\20\/fontbr input type=\submit\ value=\Submit\ name=\B1\/p /form; } else if ($login==check) { if (!$userlogin !$passlogin) { echo Sorry but No Username or password was found; } else if ($userlogin $userpass == $admin $adpw) { include(admin.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] w32api functions?
Removed? $PHPDIR/ext/w32api still seems to exist in the 4.3.2 I just installed. Did you compile your own, or download a prebuilt binary? --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -Original Message- From: DvDmanDT [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:31 PM To: [EMAIL PROTECTED] Subject: [PHP] w32api functions? Hello everyone... I was wondering why the w32api functions were removed? And will they come back? Else, will the 4.2.3 version work with 4.3.2? I really want those functions for educational purposes you see... Thanks in advance // DvDmanDT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] delete query doesnt work
First two things I'd check: (1) Make sure the user you're connecting as has permission to delete rows, and (2) Make sure that your $delete variable has the value you were expecting. --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 4:06 PM To: [EMAIL PROTECTED] Subject: [PHP] delete query doesnt work i have a delete query: mysql_query(delete from members where company='$delete'); it doesnt work should i change it to : mysql_query(delete from members where company like '$delete');?? the first one worked in mysql client but it doesnt work in php script for some reason... also having problems with update... if nothing on the form changes and it gets submitted anyways all the records in the db gets changed to the same thing that one record has in it... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 -- 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
RE: [PHP] while loop- will this work?
-Original Message- From: SpyProductions Support Team [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:57 AM To: [EMAIL PROTECTED] Subject: [PHP] while loop- will this work? Should this work? Nope...because the value returned by mysql_query() isn't the number of rows returned by the query...it's a pointer to the result set (which could be empty). $f1 = rand(999,999); while($check_sid = mysql_query(SELECT * FROM that_table WHERE this = '$f1')){ $f1 = rand(999,999); } You'll want something more like... do { $f1 = rand(999,); $check_sid = mysql_query(SELECT * from that_table WHERE this='$f1')); } while (mysql_num_rows($check_sid)) --- Mark Roedel | The most overlooked advantage to owning a Systems Programmer| computer is that if they foul up there's no LeTourneau University | law against whacking them around a little. Longview, Texas USA |-- Owen Porterfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 4.2.3, Apache 2.0.40, gettext(), and web don't work
Are you *sure* your Apache module and commandline interpreter were both compiled with the same set of options? Does a phpinfo() call to the Apache module indicate that gettext is enabled there? --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -Original Message- From: Dubravko Kakarigi [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 1:01 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP 4.2.3, Apache 2.0.40, gettext(), and web don't work PHP 4.2.3 compiled with gettext(), with Apache 2.0.40. A call to bindtextdomain() when viewed through the web generates PHP Fatal error: Call to undefined function: bindtextdomain() in ... When I run the same script from the command line, as in php -f index.php, it works fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problem: Only 1 fsockopen() connection for apache at a time.
-Original Message- From: William Bailey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 6:04 AM To: [EMAIL PROTECTED] Subject: [PHP] Problem: Only 1 fsockopen() connection for apache at a time. I have a script that uses fsockopen() to connect to a remote server/port and from what i am seeing mod_php4 with apache only allows 1 fsockopen connection at a time and will que the other fsockopen calls and then process them when the one before it has closed. Is there a way round this? Not true here...what operating system are you running? (I know some versions of Windows in particular have a limit as to how many simultaneous connections the tcp/ip layer can support...) --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Exiting from an include or required file
Seems like the easy way, at least in this case, would be to make the second part of your File A an else to your if. ?php if (empty($_POST['search_criteria'])) { echo You must provide search criteria; } else { echo You provided search criteria; } --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 9:40 AM To: [EMAIL PROTECTED] Subject: [PHP] Exiting from an include or required file Hi All, I would like to exit from an include file and continue in the calling script! As an example FILE A: ?php if (empty($_POST['search_criteria')) { echo You must provide search criteria; // exit the include file here But how? } echo You have provided serach criteria; ? FILE B #include A; form method=post input name=search_criteria type=text /form TIA Henry -- 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
RE: [PHP] PHP and Windows Active Directory...
-Original Message- From: Glenn Sieb [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 11:30 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Windows Active Directory... I know that *ahem* theoretically Active Directory uses LDAP... has anyone had any luck getting PHP to talk to Active Directory? Working like a champ here. I did have to make sure that I was connecting as a user who had permission to browser the appropriate portions of the AD tree. (Our network admins were pretty helpful in that regard...if you've got specific questions about that side of things, I'll be happy to pass them along.) --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)
You *did* read the notice that came up at the end of your 'configure' run, right? (Specifically the part that said *** NOTE *** The default for register_globals is now off. If your application relies on register_globals being ON, you should explicitly set it to on in your php.ini file. Note that you are strongly encouraged to read http://www.php.net/manual/en/security.registerglobals.php about the implications of having register_globals set to on, and avoid using it if possible.) For more info, see the above link, or the External Variables section of the 4.2.1 release notes at http://www.php.net/release_4_2_1.php, or the manual section on predefined variables at http://www.php.net/manual/en/language.variables.predefined.php --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -Original Message- From: Kristopher Yates [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 2:52 PM To: php-general Subject: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2) I have been running 4.1.2 for a while with no problems. This morning, I downloaded 4.2.2, did a configure/make/make install. All seemed to have gone well. However, it broke all my sites that use PHP. Here is a description of how it appeared to be broken. This is just an example, as I dont really own fakename.com. [snip] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php