Re: [PHP] Looping from A to Z

2006-02-20 Thread Jason Motes
Richard K Miller wrote: Good afternoon. I'm having trouble getting PHP to loop from A through Z. Here is what I tried, coming from a C background: for ($l = "A"; $l <= "Z"; $l++) echo $l; I use this: for($i='a'; $i != 'aa'; $i++){ print $i; | -- PHP General Mailing List (http://w

Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-27 Thread Jason Motes
fed. IndexIgnore * SetEnvIfNoCase Referer "^http://example.com/viewer.php"; local_ref=1 Order Allow,Deny Allow from env=local_ref Jason Motes php at imotes.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions Issue

2005-08-02 Thread Jason Motes
We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session()) we get calls to undefined function errors. This is lea

Re: [PHP] SSL ldap bind

2005-06-16 Thread Jason Motes
I am trying to do an ssl ldap bind to novell's edir 8.7. I have followed the examples from http://us4.php.net/manual/en/function.ldap-connect.php I know these examples are for AD, but they should be close to the same. I have exported the server cert and made the changes to ldap.conf. and

Re: [PHP] SSL ldap bind

2005-06-16 Thread Jason Motes
$ldapserver="ldapserver"; //this works $ldapserver="ldaps://ldapserver"; //this fails $ldapserver="ldapserver:636"; //this fails if (!($ldap = ldap_connect($ldapserver))) { die ("Could not connect to LDAP Server: $server\n"); } else { print "Connected\n"; } if (!(ldap_bind($ldap, $bindU

[PHP] SSL ldap bind

2005-06-16 Thread Jason Motes
nldap.org/devel/cvsweb.cgi/~checkout~/doc/drafts/draft-ietf-ldapext-ldap-c-api-xx.txt This page says something about a constant value LDAP_SASL_SIMPLE. Is there anyway to configure this? I am using: PHP 4.3.3 --with-openssl --with-ldap=yes Apache 2.0 Openldap OpenSSL 0.9.7b 10 Apr 2003 I have

[PHP] Re: hey dip shit

2005-05-17 Thread Jason Motes
Sorry for this post. A coworker was messing around with my computer and sent it. Please direct all flames to [EMAIL PROTECTED] Sorry!! Jason Motes wrote: HAH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] hey dip shit

2005-05-17 Thread Jason Motes
HAH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SOLVEDphp Full Page Calendar not date picker

2005-04-29 Thread Jason Motes
Here is cal from a scheduling app i have working on. http://www.imotes.com/cal2.php http://www.imotes.com/cal2.phps Richard Lynch wrote: Here's source code to one I wrote ages and ages ago... http://chatmusic.com/calendar.phps http://chatmusic.com/calendar.php Here's a similar one with PDF output:

[PHP] Re: PHP config issues when moving from Fedora to SuSe

2005-04-05 Thread Jason Motes
Whil Hentzen wrote: Hi folks, I've done a bit of work with PHP/MySQL on a Fedora Core server over the past few months and just about the time I got comfortable, it was time to change the server to SuSE. What a delight! Installed Apache 2, PHP and MySQL and I was processing pages within minutes.

Re: [PHP] pdf properties

2005-02-10 Thread Jason Motes
snip Maybe if you send it 5 more times, someone will answer you. /snip Be kind, i tried sending this yesterday and my post would not show up and they were not bounced back to me. Then i figured out what i did wrong and they all went through. Sorry -- PHP General Mailing List (http://www.php.ne

[PHP] pdf properties

2005-02-10 Thread Jason Motes
actual title of the document instead of just the file name. I have searched the manual and google, everything that comes up refers to generating pdfs on the fly, not working with an already made pdf. Thanks in Advance, Jason Motes -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] pdf properties

2005-02-10 Thread Jason Motes
actual title of the document instead of just the file name. I have searched the manual and google, everything that comes up refers to generating pdfs on the fly, not working with a already made pdf. Thanks in Adance, Jason Motes -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] pdf properties

2005-02-10 Thread Jason Motes
actual title of the document instead of just the file name. I have searched the manual and google, everything that comes up refers to generating pdfs on the fly, not working with an already made pdf. Thanks in Advance, Jason Motes -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] pdf properties

2005-02-10 Thread Jason Motes
actual title of the document instead of just the file name. I have searched the manual and google, everything that comes up refers to generating pdfs on the fly, not working with an already made pdf. Thanks in Advance, Jason Motes -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Hostname

2004-12-15 Thread Jason Motes
Chris Boget wrote: In earlier versions of PHP, you could use the $HOSTNAME global variable to get the server/machine name that is running Apache/PHP. However, that variable is no longer working and I can't seem to find a replacement in any of the super global variables. Is there one? How can you

[PHP] Re: alternating table entry colors

2004-12-10 Thread Jason Motes
Brad Ciszewski wrote: i need some assistance making my table (rows) change color for every other data. here is what i have so far, but i get a "unexpected T_STRING error". this error's line is: if($thisRow mode 2 == 0){ I beleive you want if($thisRow % 2 == 0) not if($thisRow mode 2 == 0) http://us

[PHP] Re: Pure PHP menu tree

2004-10-25 Thread Jason Motes
Basically i am looking for a PHP "menu tree", looking on google I have found many but most of them use Javascript with php, or are pure JS or DHTML, I want one that is pure php so it will work accross all browsers. http://phplayersmenu.sourceforge.net/ -- PHP General Mailing List (http://www.php.