RE: [PHP] highlight_string()

2006-03-10 Thread Weber Sites LTD
Hi I'm trying to go with your idea but I'm having difficulties with preg_match_all. I want the text between ?php and ?. The use of preg_match_all bellow only Returns text that is in a single line. If the php is on one line and the ? is A few lines bellow, it does not match.

Re: [PHP] Extending a class with a static constructur (like PEAR::DB)

2006-03-10 Thread Andreas Korthaus
[EMAIL PROTECTED] wrote: Ahhh! I'd kept thinking what connect() returned was a db object, but it does look like it returns varying objects depending on which database you're using. correct Maybe I'd want to extend DB_common instead of DB_mysql, so that the methods would be inhereted by

Re: [PHP] Extending a class with a static constructur (like PEAR::DB)

2006-03-10 Thread Andreas Korthaus
Chris wrote: You'll need to: $dbtoy = new DBToyExt(); $dbtoy-connect() $dbtoy-testext('testing'); But you cannot do: $dbtoy = new DBToyExt(); $dbtoy-connect() $dbtoy-testext('testing'); $result = $dbtoy-query('SELECT...'); //[...] You have to do something like this: $dbtoy = new

[PHP] displaying documents stored under web root

2006-03-10 Thread Adrian Bruce
Hi After some advice (surprise!) I currently store restricted documents beneath the web root so they are not accessible via the URL, when a valid user wishes to view a document i copy it to a temporary folder above the root and load it in a new page. the only way i can then manage to delete

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Meron
I wanted to add texts from an html form to existing pdf. I was able to create a pdf but not to edit it. Please give me guidance how to. -- View this message in context: http://www.nabble.com/Editing-an-existing-pdf--t1202479.html#a3337105 Sent from the PHP - General forum at Nabble.com. --

RE: [PHP] displaying documents stored under web root

2006-03-10 Thread Kevin Davies - Bonhurst Consulting
Hi Adrian, I had the same dilemma on a project I was working on, and came across this: http://www.vibralogix.com/linklokurl/index.php It basically adds an authentication code, which can lock the download to an IP address and also you can limit the life of the URL to a length of time. You can

Re: [PHP] highlight_string()

2006-03-10 Thread chris smith
On 3/10/06, Weber Sites LTD [EMAIL PROTECTED] wrote: Hi I'm trying to go with your idea but I'm having difficulties with preg_match_all. I want the text between ?php and ?. The use of preg_match_all bellow only Returns text that is in a single line. If the php is on one line and the ? is A

Re: [PHP] highlight_string()

2006-03-10 Thread Robin Vickery
On 10/03/06, Weber Sites LTD [EMAIL PROTECTED] wrote: Hi I'm trying to go with your idea but I'm having difficulties with preg_match_all. I want the text between ?php and ?. The use of preg_match_all bellow only Returns text that is in a single line. If the php is on one line and the ? is

[PHP] DB calls vs Session solution

2006-03-10 Thread Thomas
Hi there, Quick question on performance: I have got some expensive sql queries (doing lots of LEFT JOINS) that result in anything between 10 to 1 results. I need to do paging on those. So far I have used a LIMIT solution which will not do anymore because you don't get the whole total. Now,

RE: [PHP] highlight_string()

2006-03-10 Thread Weber Sites LTD
Hi I found an example for this on WeberDev and got it to work pretty good. However, when I started to check, I now have a different issue. Till now, I just highlighted all of the text. Now I take the php code Out, highlight only the php code and put it back in. The problem is that I'm looking

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Sam Smith
I wanted to add texts from an html form to existing pdf. I was able to create a pdf but not to edit it. Please give me guidance how to. FDF is what you're after if I understand this brief post. Google FDF PDF PHP. PHP writes the FDF file which fills out a linked PDF form. Notice I said

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: [snip] As far as I can tell you will have to ask the user to login at the web application level again, but you can verify it against your AD via LDAP with the basic stuff from http://www.php.net/ldap [/snip] We are sitting here having a discussion on login techniques

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread jblanchard
[snip] We are sitting here having a discussion on login techniques and I cam up with a thought...why not have a login script write a cookie that then coulod be read by PHP and compared against the AD via LDAP? Does anyone see any gotcha's with that kind of process? Couldn't I write my own

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: [snip] Couldn't I write my own cookie to fool the authentication into thinking I'm somebody else? [/snip] I suppose that you could do that if you were savvy enough to realize that automatic login to the intranet used a cookie for authentication and you knew how to

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Meron
Thankyou for the quick reply Sam. Infact I took this option at first but I didnot proceed because creating a pdf form is new to me. And also I donot have the tool. what do you advise me. -- View this message in context: http://www.nabble.com/Editing-an-existing-pdf--t1202479.html#a3339621 Sent

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread jblanchard
[snip] First, let me apologize for having to take it to a basic level. I'll admit that I'm fairly new to web development, but this is something I could *really* use at work and I want to make sure I understand (just to set the stage, we use Windows/Active Directory/MS SQL Server at work,

Re: [PHP] Dynamic Form List - how to change values

2006-03-10 Thread Jochem Maas
tedd wrote: Pat: I would suggest changing to: http://.../chkout.php?imagename=NATURE-1.jpgcount=6continue=Continue+Checkout, $newqty = $_GET['count']; $imagename = $_GET['imagename']; Also, to see what you are actually getting try: echo (br/); echo (pre); echo (GET info:\n);

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: You could just store a username, since they have already authenticated, but a cookie with just a username would be easy to duplicate. My current thought is to hash a checksum of some sort and storing that in the cookie as well. That way you avoid the username only

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Jochem Maas
Rick Emery wrote: Quoting [EMAIL PROTECTED]: You could just store a username, since they have already authenticated, but a cookie with just a username would be easy to duplicate. My current thought is to hash a checksum of some sort and storing that in the cookie as well. That way you avoid

[PHP] Displaying documents stored under web root

2006-03-10 Thread Gerry Danen
Adrian, I use something like this: ?php if ( $is_member) // global var set during login { include(/home/belowdocroot/project_a/memberprofile.php); // or whatever your page is } else { echo Sorry, members only. Please login or register.; header(location:/members/login.php ); } HTH

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Sam Smith
Thankyou for the quick reply Sam. Infact I took this option at first but I didnot proceed because creating a pdf form is new to me. And also I donot have the tool. what do you advise me. I would like to hang out on a yacht off the coast of Saint Tropez where Paris Hilton and her friends

[PHP] QUARANTINED: Xuvpcx

2006-03-10 Thread WorkgroupMail Content Filter
The message Xuvpcx from MAILER-DAEMON, sent on 3/10/2006 09:42 was quarantined because it contained either an executable file, a batch file or a screen saver file. All of these types of attachments are considered security risks. Please consult your mail administrator who can release the

[PHP] PDOStatement::execute() Return Values

2006-03-10 Thread Chris
Under what circumstances does PDOStatement::execute() return false? It seems to always return true. Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Meron
Thank you for replying patiently. No hard feelings but imagination is better than preinformation. Einstein -- View this message in context: http://www.nabble.com/Editing-an-existing-pdf--t1202479.html#a3343684 Sent from the PHP - General forum at Nabble.com. -- PHP General Mailing List

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting Jochem Maas [EMAIL PROTECTED]: Rick Emery wrote: Okay, I'm following all of this. So I could take, say, the username reversed and encode it, then decode it in the PHP application, and be I wouldn't do it like that instead stick the username in the cookie in plaintext and

Re: [PHP] ebay/nusoap example?

2006-03-10 Thread Paul Reinheimer
I tried to get the eBay API working with nusoap for quite a while, but eventually gave up and wrote my own code from scratch. There is a pear project that deals with eBay if you're more interested in using a prefab solution than coding your own from scratch. paul On 3/8/06, jon [EMAIL

[PHP] Re: displaying documents stored under web root

2006-03-10 Thread Chuck Anderson
Adrian Bruce wrote: Hi After some advice (surprise!) I currently store restricted documents beneath the web root so they are not accessible via the URL, when a valid user wishes to view a document i copy it to a temporary folder above the root and load it in a new page. the only way i can

[PHP] mktime month

2006-03-10 Thread Mark Steudel
Im a little confused on the number I should use for the month: Take the following: echo date('Ymd', mktime(0, 0, 0, 3, 0, date(Y)) ); I expected it to output: 20060331 But instead it outputs 20060228. In the examples for january in the php manual I get december instead of january. Is

Re: [PHP] mktime month

2006-03-10 Thread Austin Denyer
Mark Steudel wrote: Im a little confused on the number I should use for the month: Take the following: echo date('Ymd', mktime(0, 0, 0, 3, 0, date(Y)) ); I expected it to output: 20060331 But instead it outputs 20060228. Correct. You are asking it for the zeroth day of March,

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rory Browne
I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't logged in. Store the username in the session