[PHP] Re: curl tutorial

2003-12-29 Thread Manuel Lemos
Hello, On 12/30/2003 04:39 AM, Binay wrote: can any body point me the direction where i can find curl tutorials. I was going through the curl concept from php manual but couldn't quench my thirst as this section is not very clear. I also searched in the archive but couldn't find any. if any of u

[PHP] curl tutorial

2003-12-29 Thread Binay
Hi everybody , can any body point me the direction where i can find curl tutorials. I was going through the curl concept from php manual but couldn't quench my thirst as this section is not very clear. I also searched in the archive but couldn't find any. if any of u know the resource point(cur

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread David T-G
Chris, et al -- ...and then Chris said... % % complaint to the hosting provider about this issue the did something that % increased the upload file size to several hundred kilobytes. They claimed it % has something to do with the temp dir where the file is being uploaded to. Hah! I called it si

Re: [PHP] HTML via echo or not

2003-12-29 Thread David T-G
Robin -- ...and then Robin Kopetzky said... % % Good evening. Hiya! % % I'm probably going to stir up a hornet's nest but have a question. Probably so :_0 % % Does using echo for ALL html pages mean I have a sick mind? Example: I don't think so. % % echo CR, '', %

[PHP] PHP cart & Credit Card processing

2003-12-29 Thread Cesar Aracena
Hi all, I am building a cart of my own for a site I'm making and would like to know if doing it like this (instead of using a known cart script), I will be able to use any of the Credit Card processing systems there are. If so, which Credit Card processing company has given you the best experience

Re: [PHP] Can somebody convert this short Perl Script to PHP?

2003-12-29 Thread Tom Rogers
Hi, Tuesday, December 30, 2003, 2:50:17 AM, you wrote: DM> Hi, I am trying to make a log rotator and found a great perl script to do it DM> but, would really like it in PHP (one less langauge to maintain). DM> I know the system has "things" in place to do this but, I don't have access DM> to the

RE: [PHP] Migrating from SSI and Perl

2003-12-29 Thread Philip Pawley
Right, I used $output = shell_exec("perl browser.pl"); echo "output"; as Radek suggested. To call my browser-sniffing perl script and read back what the script prints. My trouble now is that the perl script, being called by the php script rather than by SSI, no longer seems to

Re: [PHP] Re: Can't upload files > then 400K to MySQL

2003-12-29 Thread Jeremy Johnstone
Might want to check the MySQL configuration. The max allowed packet size might be set extremely low. -Jeremy On Mon, 2003-12-29 at 15:25, Chris wrote: > Have you taken a look at the post below: Can't upload files Greater than > 11KB? > We may have the same problem. > > > "Ahmetax" <[EMAIL PROTE

[PHP] Re: PHP and SSL Path Reference

2003-12-29 Thread Manuel Lemos
Hello, On 12/29/2003 06:37 PM, D.H. wrote: PROBLEM 1 I am trying to implement SSL with PHP. When trying to use the include() function to insert an external PHP file, I am only able to make it work in the local directory and without SSL. I believe the following calls to external files should be co

Re: [PHP] HTML via echo or not

2003-12-29 Thread Robert Cummings
On Mon, 2003-12-29 at 20:34, Jordan S. Jones wrote: > Why make PHP work harder than it needs to? A decent compile cache will optimize literal concatenation so that only variables are concatenated at run time. Cheers, Rob. -- .. | InterJ

RE: [PHP] HTML via echo or not

2003-12-29 Thread Robert Cummings
I use a templating framework in which I put all of my HTML. However, when I create components that need to output HTML to render themselves then I use the echo and single quote style also. I find heredoc and breaking in and out of PHP to be extremely messy looking, not to mention horribly maintaina

Re: [PHP] HTML via echo or not

2003-12-29 Thread Jordan S. Jones
Why make PHP work harder than it needs to? Jordan Robin Kopetzky wrote: Good evening. I'm probably going to stir up a hornet's nest but have a question. Does using echo for ALL html pages mean I have a sick mind? Example: echo CR, '', CR, ' ', CR, ' etc...';

RE: [PHP] HTML via echo or not

2003-12-29 Thread Larry Brown
I agree. I think embedding the tags is messy and harder to follow. I do however, treat echo like print. ie echo "The thought would \"have\" to be clear."; I've not use CR,. I'll have to look at that. Thanks -Original Message- From: Robin Kopetzky [mailto:[EMAIL PROTECTED] Sent: Monday

[PHP] HTML via echo or not

2003-12-29 Thread Robin Kopetzky
Good evening. I'm probably going to stir up a hornet's nest but have a question. Does using echo for ALL html pages mean I have a sick mind? Example: echo CR, '', CR, ' ', CR, ' etc...'; I like the look. It's more readable, gives me a bet

[PHP] Has anyone installed AWF 1.10?? I need some help

2003-12-29 Thread Student
Has anyone installed AWF 1.10?? I need some help... -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Selecting between using letters

2003-12-29 Thread Vail, Warren
If the database is really large, some databases will attempt to use an index if you use "between" as in select * from table where lastname between "A" and "F" or > and < compares. not sure about MySQL, and notice I had to use the letter "F" to get all names beginning with "E" I seem to recall

Re: [PHP] Selecting between using letters

2003-12-29 Thread Thorsten Schmidt
Doug Parker wrote: How would I create a select statement in MySQL that would return a range of records from the LastName field where the value starts with a designated letter - for example, returning the range where the first letter of LastName is between A and E... Any help would be greatly appre

RE: [PHP] Selecting between using letters

2003-12-29 Thread Vail, Warren
How about the following; SELECT DISTINCT left( name, 1 ) AS idx, count( * ) FROM users GROUP BY idx produces a count of the names found for each letter, then you can make decisions about your range of letters, like a max of 250 between letters, or some such number. Warren Vail -Original M

Re: [PHP] Selecting between using letters

2003-12-29 Thread Lowell Allen
> How would I create a select statement in MySQL that would return a range of > records from the LastName field where the value starts with a designated > letter - for example, returning the range where the first letter of LastName > is between A and E... > > Any help would be greatly appreciated.

[PHP] Selecting between using letters

2003-12-29 Thread Doug Parker
How would I create a select statement in MySQL that would return a range of records from the LastName field where the value starts with a designated letter - for example, returning the range where the first letter of LastName is between A and E... Any help would be greatly appreciated.

[PHP] Re: Can't upload files > then 400K to MySQL

2003-12-29 Thread Chris
Have you taken a look at the post below: Can't upload files Greater than 11KB? We may have the same problem. "Ahmetax" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have the following PHP code to upload files to a MySQL table. > > It works fine, but, I can't upload any f

[PHP] Re: PHP and SSL Path Reference

2003-12-29 Thread Matt Grimm
In response to your first problem: "As long as allow_url_fopen is enabled in php.ini, you can use HTTP and FTP URLs with most of the functions that take a filename as a parameter. In addition, URLs can be used with the include(), include_once(), require() and require_once() statements. " http://u

Re: [PHP] Regular Expression

2003-12-29 Thread lingua2001
Thank you!! It worked!! The wrong sample was 'dot'11'dot'abcd, but the first dot was not shown properly... And, now I have another problem: In fact, the input strings are lines from a webpage, and they sometimes have line-feed as in: $string = " 11.abcd.32.efgh.54.ij <--here kh.41.lmno. <--here

[PHP] PHP and SSL Path Reference

2003-12-29 Thread D.H.
PROBLEM 1 I am trying to implement SSL with PHP. When trying to use the include() function to insert an external PHP file, I am only able to make it work in the local directory and without SSL. I believe the following calls to external files should be correct; however, the include function is not

[PHP] FDF Toolkit 6

2003-12-29 Thread Jon Ford
I am having trouble getting FDF Took Kit for Adobe 6 and php 4.3.4 to correctly merge the fdf data into the pdf form. I am using the file below, which merges fine on our server running FDF Tool Kit for Adobe 4 and php 4.3.4 but won't merge using FDF 6. Are there changes in the FDF Tool Kit 6 th

Re: [PHP] Small HTTP Server and PHP

2003-12-29 Thread Ryan A
Oops sorry for the confusion...the name of the server is "small http server" and you can download it off download.cnet.com thats where i found it anyway... -Ryan > Http? Apache? or what server software? > > Hi, > > I have downloaded and am fooling around with small http server...while > >

Re: [PHP] Small HTTP Server and PHP

2003-12-29 Thread Alan Fullmer
Http? Apache? or what server software? Alan Fullmer Owner / Administrator [EMAIL PROTECTED] Xnote Communications www.xnote.com - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 29, 2003 12:15 PM Subject: [PHP] Small HTTP Server and PHP

[PHP] Small HTTP Server and PHP

2003-12-29 Thread Ryan A
Hi, I have downloaded and am fooling around with small http server...while reading the documentation I see that you can intergrate it with PHP/PERL etc but the details are a little "high funda" for me, just too scarce or not written properly (the authors first language is not english - but he wrote

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread Chris
The application is going to being supplied to a number of customers who may not know how to or don't have the ability to create/modify a .htaccess file. I tend to agree with Raditha about this being an Apache issue. Upon complaint to the hosting provider about this issue the did something that inc

RE: [PHP] [Newbie Guide] For the benefit of new members

2003-12-29 Thread Chris W. Parker
Raditha Dissanayake on Sunday, December 28, 2003 8:55 PM said: > This compilation of your is really excellent. Over the last few > months i have noticed that many posters are cleary sending messages > without having read your newby guide. IMHO whenever that happens

RE: [PHP] ftp_connect error w/ 4.3.4RC1

2003-12-29 Thread Jay Blanchard
[snip] Sounds like a DNS problem more than anything else. Have you tried to dig that hostname? [/snip] Well, I forgot to include that the script works from the command line. I have added an nsswitch.conf to the server and I am testing to see if that resolves the problem. Thanks! -- PHP General

[PHP] Can't Access PHP Includes Above Current Directory if using SSL

2003-12-29 Thread Steve Benson
I hope all have had a great holiday season! My configuration is: RH Linux Kernel 2.4.20-8, Apache 2.0.48, OpenSSL -0.9.6l, PHP 4.3.4, Apache was compiled with SSL and SSL appears to work OK. My document root is http - /www/sd/htdocs, https - /www/sd/htdocs/jobs I don't want anyone accessing the j

Re: [PHP] Is It Just a Matter of Getting the Pathname Righr?

2003-12-29 Thread Ryan Gibson
On 29/12/03 11:57 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > instead?--lines right after actually, which doesn't, and how come? > > $imageIndex = $_POST['imageIndex']? > $dirName = $_POST['dirName']; > $currentFile = $_POST['currentFile']; > $theFiles = $_POST['theFiles']; > $imageFile

[PHP] Can somebody convert this short Perl Script to PHP?

2003-12-29 Thread Don Myers
Hi, I am trying to make a log rotator and found a great perl script to do it but, would really like it in PHP (one less langauge to maintain). I know the system has "things" in place to do this but, I don't have access to the system /etc/log/ folder or the system log rotation scripts. I figured a

[PHP] Extending strip_tags() for allowing certain html tags

2003-12-29 Thread Gerard Samuel
I found some code at http://marc.theaimsgroup.com/?l=php-general&m=106942414231212&w=2 that was meant to extend strip_tags() where it wouldn't be blindly prone to XSS attacks via tag attributes. Unfortunately, that code works too good. If one were to pass a legal tags like http://us2.php.net/ima

Re: [PHP] ftp_connect error w/ 4.3.4RC1

2003-12-29 Thread Raditha Dissanayake
Hi, Sounds like a DNS problem more than anything else. Have you tried to dig that hostname? best regards raditha Jay Blanchard wrote: I get the following error when running a script from CRON using PHP 4.3.4RC1 on FreeBSD (CRON statement) /usr/local/bin/php -q /usr/local/www/data.default/cr

Re: [PHP] Replication Rollback

2003-12-29 Thread John W. Holmes
karthikeyan.balasubramanian wrote: I posted this question in MySQL mailing list and go no reply. Since PHP is so close to MySQL. I am posting this question here. That's no excuse. Just wait for an answer and don't bother other lists because they're "kinda sorta" related... The basic problem

[PHP] Session Variables Disappear and Reappear

2003-12-29 Thread Jerry Kita
New to PHP and I've checked previous posts and haven't seen similar problem. Any ideas would be appreciated. Have encounted an odd problem. Using session variables to allow users to log in and out of my site. I've created a test system on my laptop. Apache 2.0.48, PHP 4.3.4, MySQL and Windows 2000

[PHP] ftp_connect error w/ 4.3.4RC1

2003-12-29 Thread Jay Blanchard
I get the following error when running a script from CRON using PHP 4.3.4RC1 on FreeBSD (CRON statement) /usr/local/bin/php -q /usr/local/www/data.default/crm/parsecdr.php PHP Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /usr/loca

Re: [PHP] [Newbie Guide] For the benefit of new members

2003-12-29 Thread Raditha Dissanayake
Hi, Hopefully an administrator could append this to the welcome message that's sent to new subscribers. Ma Siva Kumar wrote: On Monday 29 Dec 2003 10:24 am, you wrote: Hi, This compilation of your is really excellent. Over the last few months i have noticed that many posters are cleary sendi

Re: [PHP] Replication Rollback

2003-12-29 Thread Raditha Dissanayake
How can you possibly expect us to know more about mysql than the experts in the mysql list ? :-) karthikeyan.balasubramanian wrote: Hi, I posted this question in MySQL mailing list and go no reply. Since PHP is so close to MySQL. I am posting this question here. The basic problem is that I h

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread Raditha Dissanayake
Hi, Both Marek and Asegu have raised a very valid point about upload_max_filesize < post_max_size hower Chris seems to have set this in megabytes but the limit kicks in to place at 11 KILO bytes. That's why i am convinced it's either an apache setting or a proxy getting in the way. Chris, in a

Re: [PHP] fopen

2003-12-29 Thread Gerard Samuel
On Monday 29 December 2003 09:50 am, Cesar Aracena wrote: > Now it gives me the following error message: > > Warning: fopen(websitename/esp/files/welcome.txt): failed to open stream: > No such file or directory in d:\wwwroot\websitename\esp\lib\functions.php > on line 6 > > But the file exists and

Re: [PHP] fopen

2003-12-29 Thread Cesar Aracena
Now it gives me the following error message: Warning: fopen(websitename/esp/files/welcome.txt): failed to open stream: No such file or directory in d:\wwwroot\websitename\esp\lib\functions.php on line 6 But the file exists and so does the folder it is into. What can be wrong? I also uploaded the

[PHP] php.ini opened but not readed

2003-12-29 Thread Federico Petronio
Hi.. I write because I did not found a solution to this problem anywhere else. I compiled php-4.3.4 and httpd-2.0.48 (Apache) on Solaris 8. I run it in a chrooted environment (/usr/local/chroot/www/) The problem I see is that the php.ini file is never readed. It is found, it is opened and closed, b

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread Asegu
your file is sent through post. If your post upload max size is smaller then your upload max size, then the file wouldn't all fit within the post data that PHP will accept. Your upload would then get blocked. Therefore, post_max_size should be set to a larger value then upload_max_filesize to allo

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread Chris
Since this install of PHP is a CGI module, the server limits any execution to 30 seconds. Why should upload_max_filesize be greater than post_max_size? Why would this have any effect on a file size of 11kb? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > post_max_si

[PHP] Replication Rollback

2003-12-29 Thread karthikeyan.balasubramanian
Hi, I posted this question in MySQL mailing list and go no reply. Since PHP is so close to MySQL. I am posting this question here. The basic problem is that I have committed the transaction and then replicated to another DB. Now I want to rollback the committed transaction. Is there a way to

Re: [PHP] Is It Just a Matter of Getting the Pathname Righr?

2003-12-29 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Again, I am on a Macintosh PowerBook, where my hard drive is, in fact, named a variation of "My Hard Drive" (with cap letters and spaces, as the Macintosh allows). So this brings me to my first questions: Do I change the line $dirName = "c:/csci/mm" to something like $dirNa

[PHP] Is It Just a Matter of Getting the Pathname Righr?

2003-12-29 Thread [EMAIL PROTECTED]
Okay, I'm sorry for the length of this post, but I've worked my way thru a number of exercises--acoupla chapters' worth, in fact, since that last question was solved--before being stumped again. I'm not just turning pages and running to you folks without doing any work of my own. I'm trying to cut

Re: [PHP] multiple select option alternative to field_name[]

2003-12-29 Thread Marek Kilimajer
Use this.form.elements['select1[]'] Terence wrote: Dear All, The only way I know to retrieve all the values from a multiple select field is to use the square brackets after the field name ie. user_id[] The problem however is that when I use a javascript function to transfer the items from multip

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread Marek Kilimajer
post_max_size should be greater than upload_max_filesize. What is the setting for max_input_time? Chris wrote: post_max_size: 8M upload_max_filesize: 10M what quota and disk space affect the web server process and temp dir This site is hosted by a third party: Disk space is 400MB only a fraction

php-general Digest 29 Dec 2003 10:32:57 -0000 Issue 2500

2003-12-29 Thread php-general-digest-help
php-general Digest 29 Dec 2003 10:32:57 - Issue 2500 Topics (messages 173403 through 173417): Re: Simple question 173403 by: Andy Higgins Re: Can't upload file greater than 11kb 173404 by: Chris need a little help all 173405 by: webmaster.multiwebmastertools.com

[PHP] Read/Write ID3v1.0 and ID3v1.1 Tags. ( PHP )

2003-12-29 Thread Fatih Hood
Hi, This class that represents ID3v1.0 and ID3v1.1 tags. It can read, write, and remove tags in MP3 files. Download : http://www.phpbuilder.com/snippet/detail.php?type=snippet&id=1107 may the FORCE be with us! may the PHP be with us! .) -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] need a little help all

2003-12-29 Thread Binay
- Original Message - From: "Richard Davey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 29, 2003 4:52 AM Subject: Re: [PHP] need a little help all > Hello, > > Wednesday, December 17, 2003, 11:50:52 AM, you wrote: > > wmc> Here is what i have i call 2 cookies in th