[PHP] Curl Problem
How do you retrieve a session cookie with curl? How do you trick a page to make it think that it was submit from within the domain? www.domainname.com/index.php -> www.domainname.com/logincheck.php (validates the from address) Any help would be greatly appreciate. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] odbc_prepare
I am using MSSQL. I need to speed up a page. I have 3 count queries and one data query that gets loop through by the # of items * # of weeks that I need to return. Basically 460 as a general idea. I thought about using the prepare statement, something I have notice in pear. But its not support in mssql. So I decide to try the odbc but am having trouble. Not sure how to pass different variables through the odbc execute. Is there a better way? If not has anyone use this type of arrangement before? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP & NNTP w/o IMAP?
pear.php.net search for nntp. There are some problems with the code in certain secure newsgroup but overall seems to work well. It will definitely let you see how it is done. Thanks, Jeff -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 4:12 PM To: Mike Walsh Cc: [EMAIL PROTECTED] Subject: [PHP] Re: PHP & NNTP w/o IMAP? http://php.resourceindex.com/ search for NNTP. On Tue, 4 Mar 2003, Mike Walsh wrote: > I am looking for some PHP code that implements an NNTP interface that > doesn't require IMAP. > > I do not need a full featured NNTP implementation and it only needs to > support read access. If anyone knows of such a thing I would greatly > appreciate a pointer. My Google searches have not turned up anything to > date. I am trying to retrieve the newest 10 articles a newsgroup and > display it as part of a web page. > > Thanks, > > Mike - mike_walsh at mindspring dot com > > > > -- > 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Return more than 255 chars
I'm running Advance Server with MSSQL 2000 Enterprise. I can not get php to return more than 255 characters. In MSSQL I have set a column up as an ntext, nvarchar (4000), etc... But no matter what it only returns 255 characters. Its not the MSSQL Server because I have no trouble returning with other languages. Any Suggestion? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using the pdf tags.
Does anyone know of a way to rotate text in a pdf? I can rotate an image and rotate a page but can not seen to rotate text. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Using the pdf tags.
Yes I'm using the PDFlib. I understand the rotating of the page. So this is what I am doing: I am building a page $pdf. If I rotate the page then everything on the page rotates also. I need to put titles in a 45 degree angle. These titles can change and there can be between 3-6 depending on the users input. Is there a way to build this text on a separate page then merge it into the $pdf page. Or any ideas of how you might do it. If it was just one title or on a page by itself then I understand how to do it. The problem is that it isn't. Thanks -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 1:39 PM To: Jeff Hatcher Cc: PHP-General Subject: Re: [PHP] Using the pdf tags. On Wed, 22 May 2002, Jeff Hatcher wrote: > Does anyone know of a way to rotate text in a pdf? > I can rotate an image and rotate a page but can not seen to rotate > text. You're using PDFlib? It works just fine, but you have to understand how PostScript works. Calling PDF_rotate rotates the entire page beneath you by that amount. Call it first, THEN draw your text. It may be sensible to wrap the whole thing in a PDF_save and PDF_restore so you don't have to keep track and manually unrotate. So: 1. pdf_save 2. pdf_rotate 3. pdf_show 4. pdf_restore miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Using the pdf tags.
Thanks, That seems to work. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 2:33 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Using the pdf tags. That's why I suggested using PDF_save and PDF_restore. PDF_save saves all sorts of attributes like the current color, scale, skew, rotation, etc. So you can call that, then make any changes, draw anything that needs to be affected by those changes, then call PDF_restore, and you're back to normal. You can nest those as much as necessary, too. miguel On Wed, 22 May 2002, Jeff Hatcher wrote: > I understand the rotating of the page. So this is what I am doing: I > am building a page $pdf. If I rotate the page then everything on the > page rotates also. I need to put titles in a 45 degree angle. These > titles can change and there can be between 3-6 depending on the users > input. Is there a way to build this text on a separate page then merge > it into the $pdf page. Or any ideas of how you might do it. If it was > just one title or on a page by itself then I understand how to do it. > The problem is that it isn't. > > Thanks > > -Original Message- > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 1:39 PM > To: Jeff Hatcher > Cc: PHP-General > Subject: Re: [PHP] Using the pdf tags. > > > On Wed, 22 May 2002, Jeff Hatcher wrote: > > Does anyone know of a way to rotate text in a pdf? > > I can rotate an image and rotate a page but can not seen to rotate > > text. > > You're using PDFlib? > > It works just fine, but you have to understand how PostScript works. > Calling PDF_rotate rotates the entire page beneath you by that amount. > Call it first, THEN draw your text. > > It may be sensible to wrap the whole thing in a PDF_save and > PDF_restore so you don't have to keep track and manually unrotate. > > So: > > 1. pdf_save > 2. pdf_rotate > 3. pdf_show > 4. pdf_restore > > miguel > > > -- > 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Array in a Loop Question
I have a form that gets repeated depending on number of members in a group(1 form surrounds all members). I separate the entries by assigning a count value to the names of the inputs (Ex. ). Does anyone know how I can pull the values back out of the $_POST[]? Example of ideal scenario that does not work: case "process1": for ($i=0;$i<$_POST[count];$i++) { $_POST[address$i] } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Array in a Loop Question
for ($i=0;$i<$_POST[count];$i++) { echo $_POST['address' . $i] . ''; } Concanate array key 'address' with $i This works fine and I also can do the address[] but my ultimate result is to put this in the database. So address='$_POST['address' . $i]' fails and address='$_POST[address][$i]' fails. I can reassign the values to new variables i.e. $address = $_POST['address' . $i]; DB Update address='$address' Or $address $_POST[address][$i]; DB Update address='$address' So my question is how can I put this in the database without having to reassign my variable name? Current Solution: case "process1": for ($i=0;$i<$_POST[count];$i++) { $postal=$_POST[postal1][$i] . " " . $_POST[postal2][$i]; $state=$_POST[state][$i]; $address=$_POST[address][$i]; $email=$_POST[email][$i]; $city=$_POST[city][$i]; $customerid=$_POST[customerid][$i]; mssql_query("UPDATE customer SET postal='$postal',state='$state',address='$address',email=$_POST['email' . $i],city='$city' WHERE id='$customerid'") or die("DATABASE ERROR: updating customer, residentchange process 1"); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php