Re: [PHP] ADSI & PHP
Hello Evan, I imagined that the PHP LDAP functions would work, however, this would only work on LDAP compliant directory servers, such as Microsoft and Novell. This would not work however for a local NT machine which is not joined to a domain. ADSI has a 'WinNT://" provider for this, where as the 'LDAP://"; provider is meant for the domain (directory) environment. To make a long story short, the PHP LDAP library is not really ADSI & PHP, but rather an LDAP library which works with LDAP compliant directory servers. I was looking for a way to use ADSI with PHP. I appreciate your response, Evan. - Jeremy Pc Technics, Inc. www.pc-technics.com 100% FREE Internet Hosting! "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Okay I'm no expert for windows- I had to look up ADSI and found > http://www.microsoft.com/windows2000/techinfo/howitworks/activedirectory/adsilinks.asp > which mentions LDAP. Take a look at php.net/ldap and see if it does what you > need. > > > > On Saturday 25 October 2003 09:24 am, Pc Technics, Inc. wrote: > > Anyone know if its possible to use ADSI with PHP? I can not seem to find > > any good articles which explain how to convert ASP to PHP using the COM > > properties of PHP. I would really like to write this in PHP, rather than > > ASP. > > > > Thanks in advance > > > > - Jeremy > > Pc Technics, Inc. > > www.pc-technics.com > > 100% FREE Internet Hosting! > > -- > Evan Nemerson > [EMAIL PROTECTED] > > -- > "...the whole idea of revenge and punishment is a childish daydream. Properly > speaking, there is no such thing as revenge. Revenge is an act which you want > to commit when you are powerless and because you are powerless: as soon as > the sense of impotence is removed, the desire evaporates also. " > > -George Orwell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] limits on variable/classname length
Hmmm I _think_ it depends on size_t, which (IIRC) is typically typdef'd as an unsigned long int. I say that because there are macros (like ZEND_SET_SYMBOL) that do strlen(name) all over the place. Here's an except from limits.h: /* Maximum value an `unsigned long int' can hold. (Minimum is 0.) */ # if __WORDSIZE == 64 # define ULONG_MAX18446744073709551615UL # else # define ULONG_MAX4294967295UL # endif On Saturday 25 October 2003 09:36 pm, Greg Beaver wrote: > Hi, > > Are there any limits on the length a variable or classname may be in > PHP? I was unable to find anything in the manual, and my tests found > that a variable over 2000 characters long still caused no error or > problems. > > This is important because phpDocumentor 2.0 will be using a database to > cache parsed data, and I need to know how much space to allocate for the > names of classes and other things. > > Greg -- Evan Nemerson [EMAIL PROTECTED] -- "The people are the only sure reliance for preservation of our liberty." -Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: reading/parsing file names
A little something I whipped up to avoid my zoology homework (I /really/ don't care that the damn sperm of nematodes are unusual because they lack a flagellum and acrosome). Conclusion: substr is faster than preg_match [tadpole tadpole]$ php -q ./bench.php substr: 3.6424000263214 PCRE: 5.121386051178 substr: 3.2655299901962 PCRE: 3.8099709749222 substr: 3.2664449214935 PCRE: 3.7604590654373 substr: 3.2712109088898 PCRE: 3.7643429040909 substr: 3.496111035347 PCRE: 4.4902020692825 substr: 3.3643230199814 PCRE: 4.404403090477 substr: 3.5383290052414 PCRE: 4.0583729743958 substr: 3.3862169981003 PCRE: 5.0897340774536 substr: 4.3838140964508 PCRE: 3.887619972229 substr: 3.4568190574646 PCRE: 3.8514100313187 Averages: substr: 3.5071199059486 pcre: 4.2237901210785 [tadpole tadpole]$ cat ./bench.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ADSI & PHP
Okay I'm no expert for windows- I had to look up ADSI and found http://www.microsoft.com/windows2000/techinfo/howitworks/activedirectory/adsilinks.asp which mentions LDAP. Take a look at php.net/ldap and see if it does what you need. On Saturday 25 October 2003 09:24 am, Pc Technics, Inc. wrote: > Anyone know if its possible to use ADSI with PHP? I can not seem to find > any good articles which explain how to convert ASP to PHP using the COM > properties of PHP. I would really like to write this in PHP, rather than > ASP. > > Thanks in advance > > - Jeremy > Pc Technics, Inc. > www.pc-technics.com > 100% FREE Internet Hosting! -- Evan Nemerson [EMAIL PROTECTED] -- "...the whole idea of revenge and punishment is a childish daydream. Properly speaking, there is no such thing as revenge. Revenge is an act which you want to commit when you are powerless and because you are powerless: as soon as the sense of impotence is removed, the desire evaporates also. " -George Orwell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] limits on variable/classname length
Hi, Are there any limits on the length a variable or classname may be in PHP? I was unable to find anything in the manual, and my tests found that a variable over 2000 characters long still caused no error or problems. This is important because phpDocumentor 2.0 will be using a database to cache parsed data, and I need to know how much space to allocate for the names of classes and other things. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] scrolling tables within a page
>My query output is about 20 to 30 records only. Instead of making the >visitors scroll the whole page, can I make a scrolling table with the >page such that the visitor scroll the results output table only? This isn't strictly a PHP question, but you may want to look into the HTML iframe element, or conversely the CSS overflow attribute. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page encoding
$ telnet localhost 80 Cheba wrote: That's what I've try to tell You... And figure ot for myself. BTW, How did You get the headers? Marek Kilimajer wrote: No, I copypasted as it is, only chaged the charset. But if I comment it out I get garbage. Now that I checked the headers apache sends I see why it it's so: HTTP/1.1 200 OK Date: Sat, 25 Oct 2003 23:21:58 GMT Server: Apache-AdvancedExtranetServer/1.3.28 (Mandrake Linux/3mdk) PHP/4.3.3 X-Powered-By: PHP/4.3.3 Connection: close Content-Type: text/html; charset=ISO-8859-1 header content-type takes precedence before meta. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: reading/parsing file names
On Sat, Oct 25, 2003 at 04:16:49PM -0700, koly wrote: : : [EMAIL PROTECTED] (Koly) wrote: : > : > I've got a list of files in a directory, and I'd like to get a only of : > filenames that end in ".jpg", however, exlude the files that end in : > ".thumb.jpg" : > : > ex: : > file.php : > index.htm : > photo.jpg : > photo.thumb.jpg : > etc : : sorry, after re-reading, I'm not sure this post makes sense - : : I'd like to get a count of all the ".jpg" files in a specific directory : and exclude all other files. $dir = '/path/to/specific/directory/'; $files = glob($dir.'*.jpg'); $count = count($files); : Secondarily, I'd like to be able to refer to only ".thumb.jpg" files for : another instance (displaying those images) - but I assume once I figure : out how to parse/explode/read/exclude unwanted random file names, I'll : be able to figure out how to look for specific file names I want. : : Basically, I need a kind of wildcard filename parse? Something like: : : if($file == '*.thumb.jpg') foreach ($files as $file) { if (preg_match('\.thumb\.jpg$', $file)) { # do something } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page encoding
That's what I've try to tell You... And figure ot for myself. BTW, How did You get the headers? Marek Kilimajer wrote: No, I copypasted as it is, only chaged the charset. But if I comment it out I get garbage. Now that I checked the headers apache sends I see why it it's so: HTTP/1.1 200 OK Date: Sat, 25 Oct 2003 23:21:58 GMT Server: Apache-AdvancedExtranetServer/1.3.28 (Mandrake Linux/3mdk) PHP/4.3.3 X-Powered-By: PHP/4.3.3 Connection: close Content-Type: text/html; charset=ISO-8859-1 header content-type takes precedence before meta. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: reading/parsing file names
koly wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Koly) wrote: my problem: I've got a list of files in a directory, and I'd like to get a only of filenames that end in ".jpg", however, exlude the files that end in ".thumb.jpg" ex: file.php index.htm photo.jpg photo.thumb.jpg etc how can I count only those files that end with ".jpg" ? Any help appreciated. sorry, after re-reading, I'm not sure this post makes sense - I'd like to get a count of all the ".jpg" files in a specific directory and exclude all other files. Secondarily, I'd like to be able to refer to only ".thumb.jpg" files for another instance (displaying those images) - but I assume once I figure out how to parse/explode/read/exclude unwanted random file names, I'll be able to figure out how to look for specific file names I want. Basically, I need a kind of wildcard filename parse? Something like: if($file == '*.thumb.jpg') You could use a regular expression if ( preg_match ( "/\.thumb\.jpg$/", $file ) ) { some code... } I prefer the Perl regex's because I know it, but the POSIX style seems to be more popular with the PHP 'in' crowd. :) Perl RegEx : http://us2.php.net/manual/en/ref.pcre.php POSIX RegEx : http://us2.php.net/manual/en/ref.regex.php -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page encoding
No, I copypasted as it is, only chaged the charset. But if I comment it out I get garbage. Now that I checked the headers apache sends I see why it it's so: HTTP/1.1 200 OK Date: Sat, 25 Oct 2003 23:21:58 GMT Server: Apache-AdvancedExtranetServer/1.3.28 (Mandrake Linux/3mdk) PHP/4.3.3 X-Powered-By: PHP/4.3.3 Connection: close Content-Type: text/html; charset=ISO-8859-1 header content-type takes precedence before meta. Cheba wrote: Have You commented out Header() function? Marek Kilimajer wrote: Please reply to the list, your chance of getting answer will increase. Use reply all button if Netscape/7.02 has it. I tried you example, except that my editor saved the page in unicode, so I had to change windows-1251 to utf-8. Then it displayed correctly. Cheba wrote: Ok. Try Yourself. Header('Content-type: text/html; charset=windows-1251'); echo ' Русский Українська '; ?> You shold have Cyrillic fonts to see difference. Comment out line 3 (the Header() function). Marek Kilimajer wrote: That was the first mistake I noticed, now I see it was completely wrong, it should be: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] reading/parsing file names
php.net/substr php.net/ereg php.net/preg_match foreach ( $files as $filename ) if ( substr($filename, -4) == '.jpg' ) array_push($jpegs, $filename); Keep in mind, though, that not all JPEG files end with jpg. There is also jpe and jpeg, and you have to consider case sensitivity. On Saturday 25 October 2003 03:41 pm, koly wrote: > my problem: > I've got a list of files in a directory, and I'd like to get a only of > filenames that end in ".jpg", however, exlude the files that end in > ".thumb.jpg" > > ex: > file.php > index.htm > photo.jpg > photo.thumb.jpg > etc > > > how can I count only those files that end with ".jpg" ? > > Any help appreciated. -- Evan Nemerson [EMAIL PROTECTED] -- "I am indeed amazed when I consider how weak my mind is and how prone to error. " -Rene Descartes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: reading/parsing file names
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Koly) wrote: > my problem: > I've got a list of files in a directory, and I'd like to get a only of > filenames that end in ".jpg", however, exlude the files that end in > ".thumb.jpg" > > ex: > file.php > index.htm > photo.jpg > photo.thumb.jpg > etc > > > how can I count only those files that end with ".jpg" ? > > Any help appreciated. > > -- > koly out. sorry, after re-reading, I'm not sure this post makes sense - I'd like to get a count of all the ".jpg" files in a specific directory and exclude all other files. Secondarily, I'd like to be able to refer to only ".thumb.jpg" files for another instance (displaying those images) - but I assume once I figure out how to parse/explode/read/exclude unwanted random file names, I'll be able to figure out how to look for specific file names I want. Basically, I need a kind of wildcard filename parse? Something like: if($file == '*.thumb.jpg') -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: New line characters and carriage returns
Jonathan Villa wrote: $msg .= "From: [EMAIL PROTECTED] Content-Type: text/plain\r\n" PHP is retaining the implicit linefeed in the text so there is a blank line between From and Content-Type, the end-of-header indicator. (You must have a dos-ish system.) Change it to: $msg .= "From: [EMAIL PROTECTED]" . "Content-Type: text/plain\r\n"; $fileName = 'errors.'.date('dmY').'.log'; The log files will sort a lot more sensibly if you use 'Ymd'. -- jimoe at sohnen-moe dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page encoding
Have You commented out Header() function? Marek Kilimajer wrote: Please reply to the list, your chance of getting answer will increase. Use reply all button if Netscape/7.02 has it. I tried you example, except that my editor saved the page in unicode, so I had to change windows-1251 to utf-8. Then it displayed correctly. Cheba wrote: Ok. Try Yourself. Header('Content-type: text/html; charset=windows-1251'); echo ' Русский Українська '; ?> You shold have Cyrillic fonts to see difference. Comment out line 3 (the Header() function). Marek Kilimajer wrote: That was the first mistake I noticed, now I see it was completely wrong, it should be: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] manual key generation
Your question has been answered, I just want to add that you should lock your table before this query and release the lock after the new row is inserted. Joao Andrade wrote: Aloha! I have a script that inserts a new row in a table called "quotations", which has a primary key called "quotation_id". "quotation_id" is an int(11) type. When I enter: SELECT MAX(quotation_id)+1 from quotations I get simply the number 7 (which is ok) But when I do: $new_key = mysql_query("SELECT MAX(quotation_id)+1 from quotations") I get $new_key = Resource id #3 What the hell is that supposed to mean? Thanx a bunch. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: .htaccess question protect my php test environment
Frank Tudor wrote: I restart the server and then go to another computer and put in the URL and no password box comes up. Add this to the [virtual]host's section: AllowOverride AuthConfig Options and restart httpd. -- jimoe at sohnen-moe dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page encoding
Please reply to the list, your chance of getting answer will increase. Use reply all button if Netscape/7.02 has it. I tried you example, except that my editor saved the page in unicode, so I had to change windows-1251 to utf-8. Then it displayed correctly. Cheba wrote: Ok. Try Yourself. Header('Content-type: text/html; charset=windows-1251'); echo ' Русский Українська '; ?> You shold have Cyrillic fonts to see difference. Comment out line 3 (the Header() function). Marek Kilimajer wrote: That was the first mistake I noticed, now I see it was completely wrong, it should be: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: how to use pclzip class
DvDmanDT -- ...and then DvDmanDT said... % ... % Example: % $zipfile="uploaded.zip"; % $zip=new PclZip($zipfile); % $file_list= $zip->listContent(); [snip] Aha! Now I see! Thanks *so* much! I'll try it out and let you know how it goes :-) HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] manual key generation
On Sat, 25 Oct 2003 20:31:37 -0200, you wrote: >When I enter: > >SELECT MAX(quotation_id)+1 from quotations > >I get simply the number 7 (which is ok) > >But when I do: > >$new_key = mysql_query("SELECT MAX(quotation_id)+1 from quotations") > >I get $new_key = Resource id #3 Long answer: you need to read the manual pages for mysql_query. The function doesn't return data, it returns a database connection from which you can recover the data. Short answer: $rs = mysql_query("SELECT MAX(quotation_id)+1 from quotations"); $row = mysql_fetch_row ($rs); print_r ($row); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] reading/parsing file names
my problem: I've got a list of files in a directory, and I'd like to get a only of filenames that end in ".jpg", however, exlude the files that end in ".thumb.jpg" ex: file.php index.htm photo.jpg photo.thumb.jpg etc how can I count only those files that end with ".jpg" ? Any help appreciated. -- koly out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] manual key generation
Joao Andrade wrote: Aloha! I have a script that inserts a new row in a table called "quotations", which has a primary key called "quotation_id". "quotation_id" is an int(11) type. When I enter: SELECT MAX(quotation_id)+1 from quotations I get simply the number 7 (which is ok) But when I do: $new_key = mysql_query("SELECT MAX(quotation_id)+1 from quotations") I get $new_key = Resource id #3 What the hell is that supposed to mean? Thanx a bunch. mysql_query returns a resource id. you have to use mysql_fetch_row or mysql_fetch_array to get the data from this resurce id something like $sql_result = mysql_query("SELECT MAX(quotation_id)+1 from quotations"); $new_key = mysql_fetch_row($sql_result); HTH R'twick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] manual key generation
- Original Message - From: "Joao Andrade" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 26, 2003 12:31 AM Subject: [PHP] manual key generation > > Aloha! > > I have a script that inserts a new row in a table called "quotations", > which has a primary key called "quotation_id". "quotation_id" is an int(11) > type. When I enter: > > SELECT MAX(quotation_id)+1 from quotations > > I get simply the number 7 (which is ok) > > But when I do: > > $new_key = mysql_query("SELECT MAX(quotation_id)+1 from quotations") > > I get $new_key = Resource id #3 > > What the hell is that supposed to mean? As the error-text says... mysql_query returns a result id use this code instead: $mri = mysql_query("SELECT MAX(quotation_id)+1 from quotations"); $result = mysql_fetch_row($mri); $new_key = $result[0]; see the php.net website for details ! // Ewout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page encoding
That was the first mistake I noticed, now I see it was completely wrong, it should be: Cheba wrote: It does'nt work. Marek Kilimajer wrote: Try ;) Cheba wrote: Hi! I have to use windows-1251 encoding for my pages. But just inserting is not enough. What shold I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] manual key generation
Aloha! I have a script that inserts a new row in a table called "quotations", which has a primary key called "quotation_id". "quotation_id" is an int(11) type. When I enter: SELECT MAX(quotation_id)+1 from quotations I get simply the number 7 (which is ok) But when I do: $new_key = mysql_query("SELECT MAX(quotation_id)+1 from quotations") I get $new_key = Resource id #3 What the hell is that supposed to mean? Thanx a bunch. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page encoding
Try ;) Cheba wrote: Hi! I have to use windows-1251 encoding for my pages. But just inserting is not enough. What shold I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page encoding
On Sat, 25 Oct 2003 23:19:33 +0300, you wrote: >I have to use windows-1251 encoding for my pages. But just inserting > is >not enough. What shold I do? Meta tags are generally substitutes for headers. Declare the content-type with a header() statement. Oh, and you have a typo in "enncoding". (An aside, for anyone who's interested - good article on character encodings here: http://www.joelonsoftware.com/articles/Unicode.html) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Page encoding
Hi! I have to use windows-1251 encoding for my pages. But just inserting is not enough. What shold I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] where to get info for medium size sites?
Hi there, I have a internet community running which is getting pretty popular. The problem is, that my knowledge ends at certain points and I cant find any info on the net on that. For example what to do with all the apache logdata (200MB each day). The stats tool I am using (sawmill 6.4.x) takes about 3 hours to update logdata each saturday. How to find a proper backup solution for all the new member data. etc. Does anybody know some good links on that topic? Where can I get more info on operating such middle scale sites? Booktitles are aprechiated as well. Thank you for any help, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Recommendation for Unique URL
I have an application that does not require a user to log in. But, they do enter their email address and their dept. manager's email address. I want to send an email to the dept. manager that contains a personalized URL so they can click on that and see a page relevant to what the employee entered. What is the best approach to the unique page ID? I thought I would store the dept. mgrs. email address and the session ID in a db, and use the session ID in the URL. Do I even need the mgr's email address? Is another approach better? What have you used? -- Jim Kaufman mailto:[EMAIL PROTECTED] Linux Evangelistcell: 612-481-9778 public key 0x6D802619 fax: 952-937-9832 http://www.linuxforbusiness.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to start a session
Okay for those interested the reason session_start() wasn't working was b/c in OpendBSD Apache runs in a chroot by default. So you have to change put a 'tmp/ directory in the ServerRoot of the web server. You also have to change your include paths and stuff to something inside the ServerRoot. --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Jough Jeaux ([EMAIL PROTECTED]): > > > > There is room left on /tmp. Now that means the > 'tmp' > > directory under the root directory on the > filesystem > > right? I don't have to make a directory called > 'tmp' > > in the DirectoryRoot or someplace else do I? > > df -h /tmp will ensure you are looking at the > proper device that > tmp is mounted on. > > > > > I also went ahead and chmod 777 /tmp to see if > that > > would help. It didn't. I had never used the > 'sticky > > bit'. I went ahead and turned it back on... > > That is good, the sticky bit makes it so only the > creator of the > file has permissions to see the contents of the > file. > > > Curt > -- > "My PHP key is worn out" > > PHP List stats since 1997: > http://zirzow.dyndns.org/html/mlists/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to organise an array
and I suppose you think pine or mutt is a manly mans mail program? Well I happen to use those clients also, but not for this list Jim - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 25, 2003 9:09 AM Subject: Re: [PHP] Trying to organise an array > * Thus wrote Jim Lucas ([EMAIL PROTECTED]): > > my god man, do you know what indenting is? > > > > that confused the heck out of me. > > X-Mailer: Microsoft Outlook Express 6.00.2800.1158 > > Use a real email client and you wont be so confused. His > indentation was perfectly fine. > > Now, top posting over 114 lines of code, with a comment like that > is another story... > > Curt > -- > "My PHP key is worn out" > > PHP List stats since 1997: > http://zirzow.dyndns.org/html/mlists/ > > -- > 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] Re: Got myself confused
Jesus. How drunk were you when you concocted this mess? Joachim Tom Wollaston wrote: I have been trying to write some code for a simple menu system. The idea was that every item on a menu should be tied to anouther to give a menu structure. To do this I have tried to use the following code. Some of it I have added in to try and understand why its not really working. My first problem is that the function I use seems to omit the first result, even if I make the select compleatly unbounded. My second problem is that I do not seem to be able to figure out how to display the correct part of the array. Currently I have been using print_r which just displays a list. When I try to display what I want it doesn't do anything. I think I may have messed up the function codeing but I cannot see where I have gone wrong and I have been doing it all day (time now 1.02 in the morning). If anybody can help it would be appreciated. $link = @mysql_connect($DB_server, $DB_user, $DB_pwd) or die ("Could not connect"); @mysql_select_db($DB_user) or die ("Could not select database"); $null=getinfo('0'); for ($i=1; $i<=sizeof($null); $i++); { print_r($null); /* print $nul[$i]['name']; $j=$null[$i]['id']; /*$fisrt=getinfo["1"]; for ($k=1; $k<=sizeof($first); $k++); { echo $first[$k]['name']; $l=$first[$k]['id']; $second=getinfo['$m']; for ($m=1; $m<=sizeof($second); $m++); { echo $second[$m]['name']; } }*/ } ?> $n = 1; while ($row=mysql_fetch_array($result,MYSQL_ASSOC)) { foreach ($row as $colname => $value) { $array[$n][$colname] = $value; } $n++; } return $array; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Timo Boettcher <[EMAIL PROTECTED]> wrote: > > http://shiflett.org/dev/php-general/ampersand.php > > can you put the source of that online, too? You can view the source in your browser to see the HTML, which is the relevant part. If you see the HTML entity for an ampersand in your browser's location bar after submitting the form, then your browser has a bug. If you only see a plain ampersand, your browser is fine, and your code has a bug. > I get the same result as you do. > BUT: that page doesn't validate *g* Look again. Mine is not a full page, obviously, in order to focus your attention to the relevant markup. What is there is XHTML-compliant. I'm not sure what "validate" means to you, but your earlier complaint about an ampersand not validating leads me to believe you were validating against XHTML transitional or strict. You can let us know which, if you want, but it is irrelevant to your immediate problem. I am trying to not let you distract yourself; this is what makes solving problems more difficult for many people. > The HTML entity for an ampersand is: & Use that instead of the ampersand in your above example. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Chris, Nachricht vom Samstag, 25. Oktober 2003, 18:28:27: > --- Timo Boettcher <[EMAIL PROTECTED]> wrote: >> > I find that *very* hard to believe. I'm not aware of any browser >> > that mishandles HTML entities. Basically, when you say this: >> > >> > action="/mypage.php?para1=val1¶2=val2" >> > >> > Your browser's HTTP request line will appear as: >> > >> > /mypage.php?para1=val1¶2=val2 >> >> That seems to be different here. With IE and opera, I get >> "mypage.php?para1=val1¶2=val2" as the page address. > I'm curious now. Try this page: > http://shiflett.org/dev/php-general/ampersand.php can you put the source of that online, too? > View source and make sure this matches your situation. When I click > the submit button, the next page looks like this for me: [...] > Also, the URL I go to is: > http://shiflett.org/dev/php-general/ampersand.php?foo=1&bar=2 > Note that the HTML entity was decoded by my browser. What are your > results? I get the same result as you do. BUT: that page doesn't validate *g* I guess I have got a problem with my encoding or something... I have: Title . . . > Chris Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Sessions
Hi All, I have a login page that which verifies he username & password against a MySql database and then passes the username to another page as a session. I created this on my PC, which is running PHP version 4.3.2, and it works with no problem. My host has the following set on the server which is running PHP Version 4.3.3: 1. register_globals set to off, 2. Session.bug_compa4_42 set to on 3. Session.bug.Compat-Warn set to on. When I submit the form I get a warning about : "Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0" I have tried using : ini_set ("session.bug_compat_42", "0") and ini_set ("session.bug_compat_warn", "0"), to override the PHP.ini on the server but now when I submit the form on the Login page the server just hangs and then the services on that server stop. Can anyone shed any light on why a simple login page could crash a server.? Thanks for any advice so that I can pass information to my host to rectify what maybe a configuration error. Thanks again. Phil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: It will not work. One of the requirements of my app is that I can place a bookmark on any page and return to it. That wouldn't work with hidden fields, would it? BTW, I am using http-post. It will work. Change your form method from post to get, and drop your variables from the url string down to hidden form variables. When you submit the form, all the variables will be in the url query string. ... -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Timo Boettcher <[EMAIL PROTECTED]> wrote: > It will not work. One of the requirements of my app is that I can > place a bookmark on any page and return to it. That wouldn't work > with hidden fields, would it? It would if you use the GET method as someone had suggested. Basically, this is how Google works. When you perform a search, the method that the form uses is GET, so you can bookmark search results, email the URL to a friend, or whatever. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: Marek's right, and this is the case for every browser I know of. In this case, you can specify para1 and para2 as hidden form variables, and it will work. It will not work. One of the requirements of my app is that I can place a bookmark on any page and return to it. That wouldn't work with hidden fields, would it? Yes, it would. ... would result in script.php?par=val BTW, I am using http-post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Chris, Nachricht vom Samstag, 25. Oktober 2003, 18:13:10: > --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: >> > >> >> Get variables in action URL don't work with get method, at least in >> Mozilla. > Marek's right, and this is the case for every browser I know of. > In this case, you can specify para1 and para2 as hidden form > variables, and it will work. It will not work. One of the requirements of my app is that I can place a bookmark on any page and return to it. That wouldn't work with hidden fields, would it? BTW, I am using http-post. > Hope that helps. > Chris Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Timo Boettcher <[EMAIL PROTECTED]> wrote: > > I find that *very* hard to believe. I'm not aware of any browser > > that mishandles HTML entities. Basically, when you say this: > > > > action="/mypage.php?para1=val1¶2=val2" > > > > Your browser's HTTP request line will appear as: > > > > /mypage.php?para1=val1¶2=val2 > > That seems to be different here. With IE and opera, I get > "mypage.php?para1=val1¶2=val2" as the page address. I'm curious now. Try this page: http://shiflett.org/dev/php-general/ampersand.php View source and make sure this matches your situation. When I click the submit button, the next page looks like this for me: GET Array ( [foo] => 1 [bar] => 2 ) POST Array ( [blah] => 3 ) Also, the URL I go to is: http://shiflett.org/dev/php-general/ampersand.php?foo=1&bar=2 Note that the HTML entity was decoded by my browser. What are your results? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ADSI & PHP
Anyone know if its possible to use ADSI with PHP? I can not seem to find any good articles which explain how to convert ASP to PHP using the COM properties of PHP. I would really like to write this in PHP, rather than ASP. Thanks in advance - Jeremy Pc Technics, Inc. www.pc-technics.com 100% FREE Internet Hosting! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to organise an array
On Sat, 25 Oct 2003 08:55:15 -0700, you wrote: >my god man, do you know what indenting is? Uhm... it's that thing I did with 4-space tabs, all the way down. Allman-style, not K&R, for what it's worth. >that confused the heck out of me. Mailer problem? Thisparagraph has two tabsbetween eachword. Can you see them? >> while ($row = mysql_fetch_array ($rs, MYSQL_ASSOC)) >> { >> $result[$row['id']] = $row['name']; >> } It didn't look like that when it left here. Or when it got bounced back by the mailing list, for that matter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > > > Get variables in action URL don't work with get method, at least in > Mozilla. Marek's right, and this is the case for every browser I know of. In this case, you can specify para1 and para2 as hidden form variables, and it will work. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] output
On Sat, 25 Oct 2003 11:52:53 +0300, you wrote: >I'm getting output from program I run (exec) to the web page. >How can I avoid this ? Did you even look at the manual? http://uk.php.net/manual/en/ref.exec.php escapeshellarg -- escape a string to be used as a shell argument escapeshellcmd -- escape shell metacharacters exec -- Execute an external program passthru -- Execute an external program and display raw output proc_close -- Close a process opened by proc_open() and return the exit code of that process. proc_get_status -- Get information about a process opened by proc_open() proc_nice -- Change the priority of the current process proc_open -- Execute a command and open file pointers for input/output proc_terminate -- kills a process opened by proc_open shell_exec -- Execute command via shell and return complete output as string system -- Execute an external program and display output >These I've tried: > > error_reporting = E_ERROR > >and even this: > error_reporting = ~E_ALL > > display_errors = Off Error reporting has nothing to do with it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to organise an array
* Thus wrote Jim Lucas ([EMAIL PROTECTED]): > my god man, do you know what indenting is? > > that confused the heck out of me. X-Mailer: Microsoft Outlook Express 6.00.2800.1158 Use a real email client and you wont be so confused. His indentation was perfectly fine. Now, top posting over 114 lines of code, with a comment like that is another story... Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to organise an array
my god man, do you know what indenting is? that confused the heck out of me. Jim Lucas - Original Message - From: "David Otton" <[EMAIL PROTECTED]> To: "Tom Wollaston" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, October 25, 2003 8:53 AM Subject: Re: [PHP] Trying to organise an array > On Sat, 25 Oct 2003 09:17:46 +0100, you wrote: > > >I have made this function which should be quite simple but doesn't seem to > >do what it is meant to. > >What I want it to do is create an array where there is a numbered key (the > >rows of the table) and the colume headings as the second key. > > First, you can't have two keys on an index (AFAIK). What you're creating is > an array-of-arrays. > > Better to create $n when you /output/ the array. > > >It doesn't seem to work. If I set $pid=0 then I get no results (even though > >there are such values in the table), and when $pid=1 I get the results I > >expect but they are not sorted in the way I expected. > > Use an ORDER BY clause in the SQL to sort the results. > > >function getinfo($pid) > >{ > > $query = "SELECT name,id,parentid FROM ubsc_menu WHERE parentid='$pid' "; > > $result = mysql_query ($query) or die ("Query failed"); > > Your code as written assumes that a database connection exists. This is bad, > because your function should be a black-box, not make assumptions about the > environment it's running in. > > > $row=mysql_fetch_array($result,MYSQL_ASSOC); > > You're throwing away the first row. > > > $n = 1; > > while ($row=mysql_fetch_array($result,MYSQL_ASSOC)) > > 'cos it gets overritten first time round the loop > > > foreach ($row as $colname => $value) > > The foreach in the while... I have no idea what that's going to do. I > /think/ you're unwrapping the database row into multiple array lines. > > Try this rewrite (warning: completely untested) > > function getinfo ($pid, $dbconn) > { > $result = array(); > > if (!is_int ($pid)) // to stop SQL injection > { > return (NULL); > } > > /* no need to get parentid - you already have it */ > $sql = "SELECT id, name FROM ubsc_menu WHERE parentid = $pid ORDER > BY name"; > > /* if there's an error while running the query, return NULL */ > if (($rs = mysql_query ($sql, $dbconn)) == FALSE) > { > return (NULL); > } > > while ($row = mysql_fetch_array ($rs, MYSQL_ASSOC)) > { > $result[$row['id']] = $row['name']; > } > > /* at this point we have a dictionary where > $result['id'] = name */ > > /* no results found? return FALSE */ > if (sizeof ($result) == 0) > { > return (FALSE); > } > > return ($result); > } > > /* change these to the correct values */ > $dbname = 'ubsc'; > $pid = 1; > > /* attempt to connect to database */ > if (($dbconn = mysql_connect ()) == FALSE) > { > die ("There was a problem\r\n"); > } > > $result = getinfo ($pid, $dbconn); > > if ($result === NULL) > { > die ("There was a problem\r\n"); > } > > if ($result !== FALSE) > { > $n = 0; > foreach ($result as $id => $name) > { > echo ("" . $n+1 . ". $id: $name\r\n"); > $n+=1; > } > } else { > echo ("No results found\r\n"); > } > ?> > > -- > 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] Trying to organise an array
On Sat, 25 Oct 2003 09:17:46 +0100, you wrote: >I have made this function which should be quite simple but doesn't seem to >do what it is meant to. >What I want it to do is create an array where there is a numbered key (the >rows of the table) and the colume headings as the second key. First, you can't have two keys on an index (AFAIK). What you're creating is an array-of-arrays. Better to create $n when you /output/ the array. >It doesn't seem to work. If I set $pid=0 then I get no results (even though >there are such values in the table), and when $pid=1 I get the results I >expect but they are not sorted in the way I expected. Use an ORDER BY clause in the SQL to sort the results. >function getinfo($pid) >{ > $query = "SELECT name,id,parentid FROM ubsc_menu WHERE parentid='$pid' "; > $result = mysql_query ($query) or die ("Query failed"); Your code as written assumes that a database connection exists. This is bad, because your function should be a black-box, not make assumptions about the environment it's running in. > $row=mysql_fetch_array($result,MYSQL_ASSOC); You're throwing away the first row. > $n = 1; > while ($row=mysql_fetch_array($result,MYSQL_ASSOC)) 'cos it gets overritten first time round the loop > foreach ($row as $colname => $value) The foreach in the while... I have no idea what that's going to do. I /think/ you're unwrapping the database row into multiple array lines. Try this rewrite (warning: completely untested) There was a problem\r\n"); } $result = getinfo ($pid, $dbconn); if ($result === NULL) { die ("There was a problem\r\n"); } if ($result !== FALSE) { $n = 0; foreach ($result as $id => $name) { echo ("" . $n+1 . ". $id: $name\r\n"); $n+=1; } } else { echo ("No results found\r\n"); } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Marek, Nachricht vom Samstag, 25. Oktober 2003, 16:42:49: > Hi, I'm not sure if this was asked, but what browser are you using? Opera 7.21 IE 6.0.2800.1106 > I get everything correctly and I don't remember any browser with > this kind of bug. Also, can you post the relevant part of page source? As the page is fairly complex (and that effect is experienced over three pages, that submit to each other or send header("Location:...") to another, I'll try to build an example-page to show that effect more easily... > Timo Boettcher wrote: >> Yes. When I use >> >> everything works ok, the form is submitted to the given address. >> When I do >> >> the form is submitted to the given address, too, and that includes the >> & so that my application gets broken parameters and breaks. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 25 Oct 2003 15:32:34 -0000 Issue 2376
php-general Digest 25 Oct 2003 15:32:34 - Issue 2376 Topics (messages 167518 through 167559): Re: Post form variables to a frame 167518 by: Luis Lebron 167519 by: Evan Nemerson 167520 by: Pablo Gosse 167546 by: Luis Lebron Re: Code optimization: single vs. double quotes? 167521 by: olinux Re: Integrating interbase.so 167522 by: Todd Cary Trying to start a session 167523 by: Jough Jeaux 167526 by: Marek Kilimajer 167535 by: Ed van der Mark 167544 by: Jough Jeaux 167545 by: Jough Jeaux 167549 by: Curt Zirzow scrolling tables within a page 167524 by: Denis L. Menezes 167528 by: Burhan Khalid how to use pclzip class 167525 by: David T-G 167534 by: DvDmanDT Printing in Linux 167527 by: Manilal K M 167529 by: Marek Kilimajer Trying to organise an array 167530 by: Tom Wollaston Re: w3c-compliant form-action parameters 167531 by: Timo Boettcher 167532 by: Timo Boettcher 167536 by: Marek Kilimajer 167537 by: Timo Boettcher 167538 by: John Nichel 167539 by: Marek Kilimajer 167540 by: Marek Kilimajer 167541 by: John Nichel 167547 by: Timo Boettcher 167548 by: Timo Boettcher 167552 by: Marek Kilimajer output 167533 by: Shmuel 167542 by: J. Cox Compiling PHP on Mandrake 9.1 with Interbase 167543 by: Luiz Gustavo Sarubi Macchi sockets - fine tunning 167550 by: Cosmin 167551 by: Curt Zirzow 167553 by: Cosmin Redirect 167554 by: Joao Andrade 167555 by: John Nichel 167556 by: James Hicks 167558 by: Jon Kriek CURL remote server get data back 167557 by: Dan McCullough Re: session_destroy causes backspace on IE 167559 by: bill Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- I tried that but it did not work. Luis -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 10:14 PM To: Luis Lebron; [EMAIL PROTECTED] Subject: Re: [PHP] Post form variables to a frame On Friday 24 October 2003 06:08 pm, Luis Lebron wrote: > How can I post a form to the left frame of a frameset. I want to have an > user submit a form that opens a frameset. The left frame contains the > results of a query based on the posted parameters. Try setting the target attribute of the form element to the name of the left frame. http://www.w3schools.com/tags/tag_form.asp > > What I want to create is a master detail page. Let's say a person is > looking for a particular car. They would fill out a form. When the form is > submitted a frameset shows up with thumbnails and some information on the > car on the left frame. When the person clicks on the thumbnail, a larger > picture and more information shows up on the right hand frame. > > My only problem is getting the form variables to the left frame. > > thanks, > > Luis -- Evan Nemerson [EMAIL PROTECTED] -- "...the whole idea of revenge and punishment is a childish daydream. Properly speaking, there is no such thing as revenge. Revenge is an act which you want to commit when you are powerless and because you are powerless: as soon as the sense of impotence is removed, the desire evaporates also. " -George Orwell --- End Message --- --- Begin Message --- On Friday 24 October 2003 08:28 pm, Luis Lebron wrote: > I tried that but it did not work. > What about javascript? There are several ways- create a form then submit it w/ the js, build a URI and set the frame's location, etc. If you need help with this I suggest a javascript forum or usenet. > > Luis > > -Original Message- > From: Evan Nemerson [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 10:14 PM > To: Luis Lebron; [EMAIL PROTECTED] > Subject: Re: [PHP] Post form variables to a frame > > On Friday 24 October 2003 06:08 pm, Luis Lebron wrote: > > How can I post a form to the left frame of a frameset. I want to have an > > user submit a form that opens a frameset. The left frame contains the > > results of a query based on the posted parameters. > > Try setting the target attribute of the form element to the name of the > left frame. > > http://www.w3schools.com/tags/tag_form.asp > > > What I want to create is a master detail page. Let's say a person is > > looking for a particular car. They would fill out a form. When the form > > is submitted a frameset shows up with thumbnails and some information on > > the car on the left frame. When the person clicks on the thumbnail, a > > larger picture and more information shows up on the right hand frame. > > > > My only problem is getting the form
Re: [PHP] session_destroy causes backspace on IE
Aha, I'm using PHP 4.1.2 with trans-sid enabled for browsers that don't use cookies. Now that I know where to look, I found that putting ob_start() at the beginning seems to help. kind regards, bill David Otton wrote: On Fri, 24 Oct 2003 15:42:45 -0400, you wrote: Tried breaking up the echo, but still didn't work. What PHP version are you using? 4.10, maybe? http://bugs.php.net/bug.php?id=14695
Re: [PHP] Redirect
header() refresh/redirect with delay. --- http://www.example.com'); exit(); } ob_end_flush(); ?> --- header() refresh/re-direct without delay --- http://www.example.com'); exit(); } ob_end_flush(); ?> --- -- Jon Kriek http://phpfreaks.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CURL remote server get data back
I have an install script that verifies someones registration key and information against my client database and installs or patches, or whatever else. I'm new with CURL but is there away to get back a response from the server that your are querying back through CURL? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Redirect
On Saturday 25 October 2003 10:54 am, Joao Andrade wrote: > Hi there people, > > I'm looking for a function that will redirect a browser to another page > after a PHP scrip has run. I tried serching for it in the doc but found > nothing. It shall be similar to Tcl's "ns_returnredirect". > Thanx. You can either use the php function header() or the HTML meta refresh thing. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Redirect
http://us2.php.net/manual/en/function.header.php Joao Andrade wrote: Hi there people, I'm looking for a function that will redirect a browser to another page after a PHP scrip has run. I tried serching for it in the doc but found nothing. It shall be similar to Tcl's "ns_returnredirect". Thanx. Joao Penna Andrade Undergraduate, Mechanical Engineering UNICAMP, Brazil -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Redirect
Hi there people, I'm looking for a function that will redirect a browser to another page after a PHP scrip has run. I tried serching for it in the doc but found nothing. It shall be similar to Tcl's "ns_returnredirect". Thanx. Joao Penna Andrade Undergraduate, Mechanical Engineering UNICAMP, Brazil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] sockets - fine tunning
On Sat, 2003-10-25 at 17:42, Curt Zirzow wrote: > * Thus wrote Cosmin ([EMAIL PROTECTED]): > > I'm trying to make an application using XML-RPC, and I have the > > following problem: I use fsockopen() to simulate a POST to my local > > web-server. All goes very well except it's very very slow. Here is my > > code maybe someone could tell me what I'm doing wrong: > > = > > $url= parse_url($this->serverURL); > > $requestString= "POST ".$url['path']." HTTP/1.1\r\nHost: > > ".$url['host']."\r\nContent-type: > > application/x-www.form-urlencoded\r\nContent-length: > > ".strlen($this->requestData)."\r\n\r\n".$this->requestData;; > > Have you tried to simulate this on a web browser? > > My guess is there might be some dns issue somewhere causing the > webserver to take a while before even processing the request. > > Try and find out where the bottleneck is by echo'ing between steps > to see where the problem is, for example: > > echo time(), "\n"; > > $fp = fsockopen($url['host'], 80, $err_num, $err_msg, 5); > echo time(), "\n"; > > > Curt > -- > "My PHP key is worn out" > > PHP List stats since 1997: > http://zirzow.dyndns.org/html/mlists/ Here are the times: 1:1067092779.6042 2:1067092795.7176 And here is the code: echo '1:'.getmicrotime(),"\n\n"; while($data=fread($fp, 32768)) { $response.=$data; } echo '2:'.getmicrotime(),"\n\n"; I don't know what else to do ... I've changed the buffer length but it's still the same :(( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi, I'm not sure if this was asked, but what browser are you using? I get everything correctly and I don't remember any browser with this kind of bug. Also, can you post the relevant part of page source? Timo Boettcher wrote: Yes. When I use everything works ok, the form is submitted to the given address. When I do the form is submitted to the given address, too, and that includes the & so that my application gets broken parameters and breaks. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] sockets - fine tunning
* Thus wrote Cosmin ([EMAIL PROTECTED]): > I'm trying to make an application using XML-RPC, and I have the > following problem: I use fsockopen() to simulate a POST to my local > web-server. All goes very well except it's very very slow. Here is my > code maybe someone could tell me what I'm doing wrong: > = > $url= parse_url($this->serverURL); > $requestString= "POST ".$url['path']." HTTP/1.1\r\nHost: > ".$url['host']."\r\nContent-type: > application/x-www.form-urlencoded\r\nContent-length: > ".strlen($this->requestData)."\r\n\r\n".$this->requestData;; Have you tried to simulate this on a web browser? My guess is there might be some dns issue somewhere causing the webserver to take a while before even processing the request. Try and find out where the bottleneck is by echo'ing between steps to see where the problem is, for example: echo time(), "\n"; > $fp = fsockopen($url['host'], 80, $err_num, $err_msg, 5); echo time(), "\n"; Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] sockets - fine tunning
I'm trying to make an application using XML-RPC, and I have the following problem: I use fsockopen() to simulate a POST to my local web-server. All goes very well except it's very very slow. Here is my code maybe someone could tell me what I'm doing wrong: = $url= parse_url($this->serverURL); $requestString= "POST ".$url['path']." HTTP/1.1\r\nHost: ".$url['host']."\r\nContent-type: application/x-www.form-urlencoded\r\nContent-length: ".strlen($this->requestData)."\r\n\r\n".$this->requestData;; $fp = fsockopen($url['host'], 80, $err_num, $err_msg, 5); if ($fp) { //make the request to the xml-rpc server fputs($fp, $requestString); //gets the result while (!feof($fp)) { $response .= fgets($fp, 1024); } fclose($fp); $this->rawResponse=$response; $this->error=false; } else { $this->error=true; $this->errorMessage=$err_msg; } This is the slowest part of my script(about 16 seconds). The server's execution time is only 0.00064206123352051 seconds. I don't know why it takes so much to write a string to the socket and then to read the response. Here are the execution times: Server StartServer Stop 1067090777.5339 1067090777.5346 Client StartClient Stop 1067090777.5303 1067090794.5286 If someone knows a way on how to speed this up please tell me how to do it. Thank you for your time -- Cosmin <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to start a session
* Thus wrote Jough Jeaux ([EMAIL PROTECTED]): > > There is room left on /tmp. Now that means the 'tmp' > directory under the root directory on the filesystem > right? I don't have to make a directory called 'tmp' > in the DirectoryRoot or someplace else do I? df -h /tmp will ensure you are looking at the proper device that tmp is mounted on. > > I also went ahead and chmod 777 /tmp to see if that > would help. It didn't. I had never used the 'sticky > bit'. I went ahead and turned it back on... That is good, the sticky bit makes it so only the creator of the file has permissions to see the contents of the file. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Chris, Nachricht vom Freitag, 24. Oktober 2003, 21:12:06: > --- Timo Boettcher <[EMAIL PROTECTED]> wrote: >> I am trying to get my pages through the w3c-validator for html. >> It doesn't like my >> >> Changing & to & got my page through the validator, but broke my >> app, which seems not to be getting any parameters over URL >> anymore. > I find that *very* hard to believe. I'm not aware of any browser > that mishandles HTML entities. Basically, when you say this: > action="/mypage.php?para1=val1¶2=val2" > Your browser's HTTP request line will appear as: > /mypage.php?para1=val1¶2=val2 That seems to be different here. With IE and opera, I get "mypage.php?para1=val1¶2=val2" as the page address. > So, by the time PHP sees it, everything is the same either way. My guess is > that you have some other problem. > Hope that helps. > Chris Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Marek, Nachricht vom Freitag, 24. Oktober 2003, 19:17:36: > Whoops. The first sentense should be a question. > Marek Kilimajer wrote: >> It breaks your server side scripts. & should be translated to & by >> the browser and never get to php. >> >> Timo Boettcher wrote: >> >>> Hi, >>> >>> I am trying to get my pages through the w3c-validator for html. >>> It doesn't like my >>> >>> Changing & to & got my page through the validator, but broke my >>> app, which seems not to be getting any parameters over URL anymore. >>> How can I fix that? >>> >>> PS.: Moving that information from the URL to hidden fields or >>> cookies/sessions is not an option. >>> >>> Timo Yes. When I use everything works ok, the form is submitted to the given address. When I do the form is submitted to the given address, too, and that includes the & so that my application gets broken parameters and breaks. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Post form variables to a frame
Here is the frameset: and here is the form: 1 2 3 4 and here is the relevant lines of browse.php $category=$_POST["category"]; $query="Select username, age, height, eyeColor, haircolor, build, id from users where category='$category'"; thanks, Luis -Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:38 PM To: Luis Lebron; [EMAIL PROTECTED] Subject: RE: [PHP] Post form variables to a frame On Friday, October 24, 2003 8:28 PM Luis Lebron wrote > I tried that but it did not work. Can you post the html code you used? Setting should do the trick. This is very standard, so if it's not working that's very strange. Post the code so we can take a look. Cheers, Pablo -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 10:14 PM To: Luis Lebron; [EMAIL PROTECTED] Subject: Re: [PHP] Post form variables to a frame On Friday 24 October 2003 06:08 pm, Luis Lebron wrote: > How can I post a form to the left frame of a frameset. I want to have an > user submit a form that opens a frameset. The left frame contains the > results of a query based on the posted parameters. Try setting the target attribute of the form element to the name of the left frame. http://www.w3schools.com/tags/tag_form.asp > > What I want to create is a master detail page. Let's say a person is > looking for a particular car. They would fill out a form. When the form is > submitted a frameset shows up with thumbnails and some information on the > car on the left frame. When the person clicks on the thumbnail, a larger > picture and more information shows up on the right hand frame. > > My only problem is getting the form variables to the left frame. > > thanks, > > Luis -- Evan Nemerson [EMAIL PROTECTED] -- "...the whole idea of revenge and punishment is a childish daydream. Properly speaking, there is no such thing as revenge. Revenge is an act which you want to commit when you are powerless and because you are powerless: as soon as the sense of impotence is removed, the desire evaporates also. " -George Orwell -- 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] Re: Trying to start a session
I'm not using Windows, I'm using OpenBSD. --- Ed van der Mark <[EMAIL PROTECTED]> wrote: > If you are using Windows try C:\windows\temp as /tmp > directory. > Ed > > "Jough Jeaux" <[EMAIL PROTECTED]> schreef in > bericht > news:[EMAIL PROTECTED] > > The very simple following script: > > > session_start(); > > ?> > > > > Produces an error that says it can't write the > file > > for the session. > > > > The permissions for /tmp are rwxrwxrwt > > > > Any ideas on how I can fix this? > > > > Thanks! > > > > These are the exact errors: > > Warning: > > open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, > > O_RDWR) failed: No such file or directory (2) in > > /nex/htdocs/login/try.php on line 2 > > > > Warning: > > open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, > > O_RDWR) failed: No such file or directory (2) in > > Unknown on line 0 > > > > Warning: Failed to write session data (files). > > Please verify that the current setting of > > session.save_path is correct (/tmp) in Unknown on > line > > 0 > > > > > > __ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product > search > > http://shopping.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to start a session
There is room left on /tmp. Now that means the 'tmp' directory under the root directory on the filesystem right? I don't have to make a directory called 'tmp' in the DirectoryRoot or someplace else do I? I also went ahead and chmod 777 /tmp to see if that would help. It didn't. I had never used the 'sticky bit'. I went ahead and turned it back on... --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Is there any space left on /tmp partition? > > Jough Jeaux wrote: > > The very simple following script: > > > session_start(); > > ?> > > > > Produces an error that says it can't write the > file > > for the session. > > > > The permissions for /tmp are rwxrwxrwt > > > > Any ideas on how I can fix this? > > > > Thanks! > > > > These are the exact errors: > > Warning: > > open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, > > O_RDWR) failed: No such file or directory (2) in > > /nex/htdocs/login/try.php on line 2 > > > > Warning: > > open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, > > O_RDWR) failed: No such file or directory (2) in > > Unknown on line 0 > > > > Warning: Failed to write session data (files). > > Please verify that the current setting of > > session.save_path is correct (/tmp) in Unknown on > line > > 0 > > > > > > __ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product > search > > http://shopping.yahoo.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compiling PHP on Mandrake 9.1 with Interbase
Please, i d like to compile the php because i need to use Interbase I really dont know how to do it ! Has anyone a tutorial to compile it correctly ? thanks a lot any help Gugao -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: output
"Shmuel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm getting output from program I run (exec) to the web page. > How can I avoid this ? > > These I've tried: > > error_reporting = E_ERROR > > and even this: > error_reporting = ~E_ALL > > display_errors = Off > > Any ideas ? > I'm assuming that you are trying to turn off error reporting. http://www.php.net/manual/en/function.ini-set.php Should get you started, or you could suppress the errors with @. Am I in the right ballpark? J. Cox http://www.xaraya.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Marek Kilimajer wrote: John Nichel wrote: Sure it is. Change the method of the form from a 'post' to a 'get' Get variables in action URL don't work with get method, at least in Mozilla. Right, my bad. He'd have to move them into hidden fields to be in the URL query string ... -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Can you upload the problematic page somewhere. I don't believe & entity is the real problem. Timo Boettcher wrote: Hi Marek, Nachricht vom Samstag, 25. Oktober 2003, 13:02:06: Timo Boettcher wrote: Its not easy to get the value of a hidden field in a bookmark. Don't use & in bookmarks, use just &. But when I say "Bookmark this Page" (in any browser) that gets me a bookmark on the url, and not on hidden fields. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
John Nichel wrote: Sure it is. Change the method of the form from a 'post' to a 'get' Get variables in action URL don't work with get method, at least in Mozilla. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: Hi John, Nachricht vom Freitag, 24. Oktober 2003, 19:06:33: Timo Boettcher wrote: Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that information from the URL to hidden fields or cookies/sessions is not an option. Timo I'm curiouswhy are hidden fields not an option? Its not easy to get the value of a hidden field in a bookmark. Timo Sure it is. Change the method of the form from a 'post' to a 'get' Of course, all of your variables will be in the URL then. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Marek, Nachricht vom Samstag, 25. Oktober 2003, 13:02:06: > Timo Boettcher wrote: >> Its not easy to get the value of a hidden field in a bookmark. > Don't use & in bookmarks, use just &. But when I say "Bookmark this Page" (in any browser) that gets me a bookmark on the url, and not on hidden fields. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: Its not easy to get the value of a hidden field in a bookmark. Timo Don't use & in bookmarks, use just &. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Trying to start a session
If you are using Windows try C:\windows\temp as /tmp directory. Ed "Jough Jeaux" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > The very simple following script: > session_start(); > ?> > > Produces an error that says it can't write the file > for the session. > > The permissions for /tmp are rwxrwxrwt > > Any ideas on how I can fix this? > > Thanks! > > These are the exact errors: > Warning: > open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, > O_RDWR) failed: No such file or directory (2) in > /nex/htdocs/login/try.php on line 2 > > Warning: > open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, > O_RDWR) failed: No such file or directory (2) in > Unknown on line 0 > > Warning: Failed to write session data (files). > Please verify that the current setting of > session.save_path is correct (/tmp) in Unknown on line > 0 > > > __ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: how to use pclzip class
// - --- // Function : PclZip() // Description : // Creates a PclZip object and set the name of the associated Zip archive // filename. // Note that no real action is taken, if the archive does not exist it is not // created. Use create() for that. // - --- Example: $zipfile="uploaded.zip"; $zip=new PclZip($zipfile); $file_list= $zip->listContent(); $file_list[$index] -> ["filename"] (not sure) -> ["stored_filename"] (filename in archive) -> ["size"] (uncompressed size) -> ["compressed_size"] (name says it all) -> ["index"](index in archive) -> ["mtime"] (last mod) $zip->extractByIndex($index_to_extract,"./folder_to_extract_into/"); -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are using windows, you may be infected by Swen. Please go here to find out more: http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ## "David T-G" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] output
I'm getting output from program I run (exec) to the web page. How can I avoid this ? These I've tried: error_reporting = E_ERROR and even this: error_reporting = ~E_ALL display_errors = Off Any ideas ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Pablo, Nachricht vom Freitag, 24. Oktober 2003, 19:14:31: > Hi, Timo. Why can't use use hidden fields instead of appending the > values to the url? It would be the same to access them via > $_GET['para1'] $_GET['para2] (unless you were using post as your method, > in which case it would simply be $_POST['varname']) if they were on the > url or in hidden fields. > Why can't you make this switch? You can't set a bookmark to include the value of a hidden field, but with a url-param, it is possible. > Also, have you tried using the % entity for ampersand (%26 if memory > serves me correct) instead of & or the literal ampersand? > So instead of mypage.php?para1=val1¶2=val2 you would use > mypage.php?para1=val1%26para2=val2. I'll try that. > Cheers, > Pablo > -Original Message- > From: Timo Boettcher [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 9:59 AM > To: [EMAIL PROTECTED] > Subject: [PHP] w3c-compliant form-action parameters > Hi, > I am trying to get my pages through the w3c-validator for html. > It doesn't like my > > Changing & to & got my page through the validator, but broke my > app, which seems not to be getting any parameters over URL anymore. > How can I fix that? > PS.: Moving that information from the URL to hidden fields or > cookies/sessions is not an option. > Timo Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi John, Nachricht vom Freitag, 24. Oktober 2003, 19:06:33: > Timo Boettcher wrote: >> Hi, >> >> I am trying to get my pages through the w3c-validator for html. >> It doesn't like my >> >> Changing & to & got my page through the validator, but broke my >> app, which seems not to be getting any parameters over URL anymore. >> How can I fix that? >> >> PS.: Moving that information from the URL to hidden fields or >> cookies/sessions is not an option. >> >> Timo >> > I'm curiouswhy are hidden fields not an option? Its not easy to get the value of a hidden field in a bookmark. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Trying to organise an array
I have made this function which should be quite simple but doesn't seem to do what it is meant to. What I want it to do is create an array where there is a numbered key (the rows of the table) and the colume headings as the second key. It doesn't seem to work. If I set $pid=0 then I get no results (even though there are such values in the table), and when $pid=1 I get the results I expect but they are not sorted in the way I expected. This means that I cannot then use this data for its end effect which is a menu system. Thanks $value) { $array[$n][$colname] = $value; } $n++; } return $array; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing in Linux
It is not clear if you want to print on the server or client side. If on the server side use lpr command. Client side use javascript to prompt user to print. What do you mean window.print() is inconsistent? Manilal K M wrote: Hello everybody, Can anyone give information regarding how to print a file in plain text format using PHP. I am using RedHat Linux9.0, httpd-2.0.40-21 and php-4.2.2-17. I think that print support is not given to linux. I want to know that whether there is any developments in this regard. Please respond. I don't want to take the print from the File-> Print menu or icon. I want to get directly printed when a button is clicked. and I don't want to use Javascript which is inconsistent in many matters. Also that Javascript can't handle files. with regards, Manilal , Open Source Technology Team, Centre for Development of Imaging Technology, City centre, Thiruvananthapuram - 695001 Keralam, India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] scrolling tables within a page
Denis L. Menezes wrote: My query output is about 20 to 30 records only. Instead of making the visitors scroll the whole page, can I make a scrolling table with the page such that the visitor scroll the results output table only? This has nothing to do with PHP. This is a HTML question. This list is for php questions. :| -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Printing in Linux
Hello everybody, Can anyone give information regarding how to print a file in plain text format using PHP. I am using RedHat Linux9.0, httpd-2.0.40-21 and php-4.2.2-17. I think that print support is not given to linux. I want to know that whether there is any developments in this regard. Please respond. I don't want to take the print from the File-> Print menu or icon. I want to get directly printed when a button is clicked. and I don't want to use Javascript which is inconsistent in many matters. Also that Javascript can't handle files. with regards, Manilal , Open Source Technology Team, Centre for Development of Imaging Technology, City centre, Thiruvananthapuram - 695001 Keralam, India -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to start a session
Is there any space left on /tmp partition? Jough Jeaux wrote: The very simple following script: Produces an error that says it can't write the file for the session. The permissions for /tmp are rwxrwxrwt Any ideas on how I can fix this? Thanks! These are the exact errors: Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, O_RDWR) failed: No such file or directory (2) in /nex/htdocs/login/try.php on line 2 Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php