[PHP] vhost php_value include_path: Seg fault
Using: - Apache 1.3.27 - PHP 4.2.3 I just changed my httpd.conf to have two virtual hosts. One of them uses php, so I added the include_path, but when I try to test the config I get a core dump. Here's the vhost section for the domain using php: [...] VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/www/data/domain/ ServerName domain.org ErrorLog /var/log/domain.org-error_log CustomLog /var/log/domain.org-access_log common php_value include_path .:/usr/local/domainlibs Alias /admin/ /usr/local/www/data/domain/admin/ /VirtualHost [...] thanks, Jay __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Serving files with different filename from their own
Is there a way to serve files with a different file name than they actually have? Here's my situation: Users can upload software manuals, which are then saved with a unique name. Their title, filename, type and id are then save into a db. But when they go to download a file, they'll of course see a very cryptic filename in their save as dialog. Lets say they aren't smart enough to change that name. So would their be a way to serve a file with a different name than it's actual one? thanks, Jay __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Ldap bind: checking group membership
I need my ldap bind to check whether a user is member of a group, but the user isn't exclusively from that group. So for example, I have the user jbrown and the ldap connection string: $r=ldap_bind($ds, uid=$uid, ou=people,dc=mycompany,dc=mydomain,dc=dom, $passw); That works fine. But I need to check whether jbrown is part of the group admins (Cn=admins). In apache the authldap connects has the feature to check groups: AuthLDAPURL ldap://myserver/ou=people,dc=mycompany,dc=mydomain,dc=dom require group cn=admins,ou=people,dc=mycompany,dc=mydomain,dc=dom How can I do the same with a php script? thanks, Jay __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Authentication: Addressing the user variable
I'm using LDAP to authenticate my users. login.php and any script that requires authentication start off with the following code: -- session_start(); if (session_is_registered(valid_user)) { header( Location: admin.php ); -- The ldap binds as such: ldap_bind($ds, uid=$uid,ou=people,dc=server,dc=domain,dc=dom, $passw); What I want is to be able to display AND use the $uid throughout the other scripts. How can I do this? thanks, Jay __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Bubble windows
Remember those bubbles windows php.net used to have? What are those actually called? Any tutorials that show how to make them? thanks, Jay __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php