RE: [PHP] Using the echo tag...

2005-11-07 Thread Pablo Gosse
[snip] I'm relatively new at coding PHP but I was hoping someone can help me with this. I'm trying to write the following code into my program but each time it runs, I get an error message. Can anyone help? print EOF !-INSERT HTML HEADER HERE -- $_SERVER['PHP_SELF'] EOF; Say that was a part of

RE: [PHP] Security Issues - Where to look?

2005-11-07 Thread Pablo Gosse
[snip] I've heard that php is not particularly secure, making it problematic if you intend to create a web site with commerce, etc. Is there a particular news group that addresses security issues? I'm looking for some guidlines on ensuring that my site is secure from malicious hackers. [/snip]

RE: [PHP] reg ex help

2005-11-04 Thread Pablo Gosse
[snip] New to php so please bear with me. I'm trying to parse through a field that has some information in it, the information is stored with other information and is delimited in a certain pattern so I figure using reg ex I can get the information I want out of the text. So here is an example.

RE: [PHP] reg ex help

2005-11-04 Thread Pablo Gosse
[snip] The problem with that is there are about 40 different listings in the one field. Silver Small Corp;X^%\n#\n Gold Medium Corp;RE^%\n#\n Platinum Large Corp;YRE^%\n#\n being three of them so maybe this is a bettter way of listing it ... Silver Small

RE: [PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-04 Thread Pablo Gosse
[snip] What do I need to do to extract foo.bar from path/to/file.php/foo.bar [/snip] The manual is your friend ;o) http://www.php.net/basename/ HTH, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] protect password?

2005-11-04 Thread Pablo Gosse
[snip] Some functions need you to provide username and password, for instance odbc_connect. Even though the username/password just has minimum access privileges to the resource, putting it there in clear text in a script gives me heartburn. How do people handle username/password in such kind

RE: [PHP] protect password?

2005-11-04 Thread Pablo Gosse
[snip] pablo... i fail to see how your suggestion is much more secure than placing the user/passwd information in a file that's outside the web access space, and then including the file. in either case, the user wouldn't be able to read the include file. [/snip] Greeting, Bruce. On a

[PHP] Regex Help

2005-09-28 Thread Pablo Gosse
Hi, folks. I'm having trouble with a simple regex. I'm sure it's just something small that I'm missing but nothing I'm trying is working. In an HTML file I have comments like this: !-- START PRINT -- various html crap here !-- END PRINT -- Here's the regex I'm using: /!-- START PRINT

RE: [PHP] Regex Help

2005-09-28 Thread Pablo Gosse
Greetings folks. Thanks Murray and Philip for the quick responses. Adding the /s modifier worked perfectly. Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] enabling OpenSSL and curl for PHP on IIS

2005-08-24 Thread Pablo Gosse
Hi, folks. I'm forced to work on a project using MS Access and running on IIS on a Windows Server 2003 box. I've uncommented the following lines in php.ini: extension=php_curl.dll extension=php_openssl.dll but even after I restart IIS I'm not seeing the changes reflect when I view the results

Re: [PHP] enabling OpenSSL and curl for PHP on IIS

2005-08-24 Thread Pablo Gosse
On Wed, 2005-08-24 at 14:05 -0400, Marco Tabini wrote: On 8/24/05 11:39 AM, Pablo Gosse [EMAIL PROTECTED] wrote: Can anyone give any insight into what might be going wrong here? I think you just need to move your php.ini file to C:\WINDOWS... PHP is looking for it there. Cheers

Re: [PHP] enabling OpenSSL and curl for PHP on IIS

2005-08-24 Thread Pablo Gosse
On Wed, 2005-08-24 at 23:30 +0200, Edin Kadibasic wrote: Pablo Gosse wrote: I've tried that and that just results in PHP grinding to a halt. Any requests to PHP pages simply result in Document contains no data errors. Have you added c:\php to your system PATH? Edin Yup. c:\php

[PHP] RE: Problem using Metabase

2005-08-16 Thread Pablo Gosse
[snip] I suspect that the problem is with file permissions. I recall that since Metabase uses include to load class files, the script will not exit when it fails to include a PHP class file. Assuming that is the case, make sure that all Metabase class files are readable by your Web server user.

[PHP] Problem using Metabase

2005-08-15 Thread Pablo Gosse
Hi, folks. I've recently decided to use Manuel's Metabase instead of ADOdb as ADOdb doesn't support transactions for MS Access, however I'm getting the following error when running the sample code: Fatal error: Class metabase_manager_odbc_class: Cannot inherit from undefined class

[PHP] RE: Problem using Metabase

2005-08-15 Thread Pablo Gosse
[snip] Here's my code: require(classes/metabase/metabase_database.php); require(classes/metabase/metabase_interface.php); $error=MetabaseSetupDatabaseObject(array(Type=odbc-msaccess, IncludePath=classes/metabase), $db); if($error!=) { echo Database setup error: $error\n;

RE: [PHP] RE: Problem using Metabase

2005-08-15 Thread Pablo Gosse
[snip] It must be something in our PHP configuration that's causing the problem, but I'm pretty sure we have a cache extension installed. This PHP install was done rather quickly, unless there's a cache extension installed by default (which there is not as far as I understand, but I could be

RE: [PHP] header redirect not working

2005-08-13 Thread Pablo Gosse
[snip]Can you place the following code just before the header() line, and post what it prints? die($this-CMS_base_path); In other words, tell us what the $this-CMS_base_path field contains when that line is executed.[/snip] It contains 'https://cms.mydomain.com', which is what it is supposed to

RE: [PHP] header redirect not working

2005-08-13 Thread Pablo Gosse
[snip] I can think of a few, and my first instinct is to check to see whether your script produces any errors in one environment that it doesn't in the other. If you're displaying errors, they can affect the behavior of your scripts when you're also using header(). Replace header() with echo and

[PHP] PHP, MS Access Transactions

2005-08-13 Thread Pablo Gosse
Hi, folks. I have the unfortunate task of writing a PHP front-end for a client-server application that is back-ended in MS Access. I've tried using the transaction functionality in ADOdb (PHP implementation of ADO) but it doesn't work seem to work correctly, even though it says it does. If I

[PHP] header redirect not working

2005-08-12 Thread Pablo Gosse
Hi, folks. I'm running into an incredibly bizarre problem with a header() redirect of which I cannot see the cause. We have a CMS here where I work, in two separate production and training environments. Last night I implemented a new events manager module, copying all necessary files from

[PHP] Feedback on the various PHP-MVC implementations

2005-06-15 Thread Pablo Gosse
Hi, folks. I'm looking for some feedback on a couple of the php mvc implementations out there. The two that I've seen referenced the most are php.MVC (http://www.phpmvc.net) and Phrame (http://phrame.sourceforge.net). I've looked around and found some okay opinions on both, but I'd really like

RE: [PHP] mozilla urlencode

2005-06-04 Thread Pablo Gosse
snip echo a name=\.urlencode($mydata-district).\/a; a name=Montr%E9al+District+%234/a http://foo.org/_private/directory.php#Montr%E9al+District+%234 works in IE6, but Mozilla will not accept it. Mozilla does not work. Am I approaching this wrong? Should I create my HTML this way? echo a

[PHP] PHP and SSH

2005-05-19 Thread Pablo Gosse
Hi, folks. Has anyone had any issues using PHP with the libssh2 library? I had my sysadmin install it, but he's not certain we should be developing against it in a production environment since it's still alpha (0.10). I'm looking for opinions as to whether anyone out there has run into problems

RE: [PHP] html editor written in PHP

2005-05-18 Thread Pablo Gosse
snip Has anyone seen an example of a HTML editor written in PHP (no JS)? You know the ones - for adding HTML tags to a text field, etc. /snip I think what you're asking for is a logical impossibility. PHP is server side, so without javascript a browser-based wysiwyg editor would be impossible,

[PHP] array_diff odities

2005-05-18 Thread Pablo Gosse
Howdy folks. I'm running into something strange with array_diff that I'm hoping someone can shed some light on. I have two tab-delimited text files, and need to find the lines in the first that are not in the second, and vice-versa. There are 794 records in the first, and 724 in the second.

RE: [PHP] Simple Problem

2005-04-12 Thread Pablo Gosse
snip I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the all info, as 'num_rows' is total of rows in the table and not the correct value of the filtered information? $sql=SELECT products.productID, products.title,

[PHP] Displaying Time Intervals

2005-04-07 Thread Pablo Gosse
Hi, folks. I've added some code to our CMS that tracks the exact amount of time that a user is logged into the system. I'm going to use these stats to track how much time someone has spent practicing in the training environment before I give them access to our production system. Can anyone give

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread Pablo Gosse
snip How can I write something like that? meta http-equiv=Refresh content=0;url=registration.php?step=4userId=%php echo trim($_POST[userid]); This is obviously not working as the is assumed as the closing for the meta tag. /snip You haven't closed your opening php tag, which is why it's

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread Pablo Gosse
snip How can I write something like that? meta http-equiv=Refresh content=0;url=registration.php?step=4userId=%php echo trim($_POST[userid]); This is obviously not working as the is assumed as the closing for the meta tag. /snip Sorry, I botched my previous reply and left the extra after

[PHP] PHP Compiler for .NET platform

2005-03-18 Thread Pablo Gosse
Hey folks. Has anybody played with this the PHP compiler for .NET, Phalanger? http://www.php-compiler.net/ I'd be interested to hear of any experiences people have had using this. Cheers, Pablo -- Pablo Gosse Webmaster, University of Northern

RE: [PHP] PHP arrays and javascript

2004-11-26 Thread Pablo Gosse
snip i know this probally a simple question, but it has been stumping me for quite some time now. How do i pass a php array to a javascript? i tryed: script language=javascript var myarray = new Array(?PHP echo $myarray; ?); /script but it didn't work. Anybody got any ideas? /snip You need to

[PHP] Load testing for PHP Applications

2004-11-10 Thread Pablo Gosse
Hi folks. I'm wondering if anyone out there can recommend a good tool for load testing a large php application? Ideally it would be something fairly intelligent, that would follow links, remember what links it has followed and where any problems occurred, etc. Can anyone provide any

[PHP] Session object destruction failed

2004-11-04 Thread Pablo Gosse
Hi folks. Earlier today I received the following error when I tried to log out of my CMS: Session object destruction failed in [blah blah blah file info]. I googled this and took a look on bugs.php.net but couldn't find much useful info. Everything worked fine before, and has worked fine

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Pablo Gosse
[snip]Klaus Reimer wrote: Murray @ PlanetThoughtful wrote: function asl($val){ function mfr($rset){ This may be ok for private projects but otherwise I don't think it's a good idea to create shorthand functions. Other developers (and especially new developers beginning to work on the

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Pablo Gosse
[snip]Extending PHP to have shorthand functions? Was that irony?[/snip] It most certainly was irony, Klaus. I was merely trying to illustrate the point that writing a custom function which does EXACTLY the same thing as a built in function is redundant. A number of functions within php do have

RE: [PHP] PEAR Calendar

2004-11-03 Thread Pablo Gosse
[snip] Greg Beaver wrote: My country is going to Hell [/snip] Don't worry, Greg. It's not really your country as much as it is your president ;o) We hold nothing against you, for you wrote PHPDocumentor! Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: [users@httpd] November 2, 2004

2004-11-02 Thread Pablo Gosse
[snip] This list gets enough traffic as is and a crapload of repeat questions/questions that are easily solved by looking in google or the manual (aka RTFM questions) and we don't need to add politics to it [/snip] And further to this point, people who reply to off-topic posts only further

RE: [PHP] Error Code Airhead

2004-11-02 Thread Pablo Gosse
[snip] I'm sure I'm missing something really obvious here but can't see it. There is a form where one of two promotional codes can be entered. I check for the these codes and give the user an error message if they enter the wrong code. First one doesn't work, second one does with only one

RE: [PHP] Passing marked rows in a table

2004-11-02 Thread Pablo Gosse
[snip] I create a list of records from a DB and each has a check box. What is the best way to select those that were checked after the form is submitted? [/snip] If the elements all live within the same form, you can add [] to the end of the name/id attribute, and then all checkboxes with the

RE: [PHP] Passing marked rows in a table

2004-11-02 Thread Pablo Gosse
[snip] Pablo Gosse wrote: [snip] If the elements all live within the same form, you can add [] to the end of the name/id attribute, and then all checkboxes with the same name will be accessible in an array. So checkboxname[] will show up as $_POST['checkboxname'] on the receiving end

RE: [PHP] Session and validation

2004-10-29 Thread Pablo Gosse
[snip] I had this thread going yesterday. Then basically think it reached a stalemate. I'm wondering has anyone setup forms using session variables and validation. Validation where the validating is done on the same page, and the redirected on success ? [/snip] You need a class which will

RE: [PHP] fputcsv() error message

2004-10-20 Thread Pablo Gosse
[snip] Fatal error: Call to undefined function: fputcsv() in /home/webdev/sites/tracking_site/scripts/report.php on line 19 Is there something that I am missing? The code that I had entered in: [/snip] http://ca.php.net/fputcsv -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Help With Error

2004-10-17 Thread Pablo Gosse
[snip] Notice: Undefined index: 0 in L:\localhost\catalog\catalog_0.1.0\includes\classes\tree.class.php on line 77 [/snip] It's telling you that $data['0'], which is used twice in your query, is not a valid index (ie. it doesn't exist) for the $data array. Why don't you dump the $data array

RE: [PHP] Referring Page

2004-10-14 Thread Pablo Gosse
[snip] I am trying to set up a script that will do different things based on the reffering page, without having to include the information in the URL. Does PHP have a built in variable or function that would tell the rest of the script what page the user came from? Any help is much

RE: [PHP] new connection with pg_pconnect

2004-10-14 Thread Pablo Gosse
[snip] I'm trying to add some new features to an existing project. The project uses pg_pconnect and sets it into a global var... What I'm trying to do is to create a new database class which connects to a different database on the same server. By the time my code gets reached, the pg_pconnect

RE: [PHP] new connection with pg_pconnect

2004-10-14 Thread Pablo Gosse
[snip] I then have the page main.php which has ?php global $sys_dbhost,$sys_dbuser,$sys_dbpasswd; $dbconn = pg_connect(user=$sys_dbuser dbname=bisprojects host=$sys_dbhost password=$sys_dbpasswd); echo '-'.$dbconn.'-'; ? the scripts just dies whenever I include the pg_connect function... if I

RE: [PHP] Form Validation

2004-10-13 Thread Pablo Gosse
Huang, Ou wrote: I am currently working on a newsletter mailing list project and developed a form in php. I would like to validate before it is submitted. What would be the best way to validate a form? Write your own routines or using a form validator. I just started learning PHP, so don't

RE: [PHP] creating a folder in php

2004-10-12 Thread Pablo Gosse
Jay Blanchard wrote: [snip] I want an IDE that will let me speak code into it. Anyone else want anything? [/snip] Laetitia Casta? Email me off list to get delivery instructions. Thanks, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Sessions and Mozilla (Firefox)

2004-10-12 Thread Pablo Gosse
Hi folks. I've got a quick question about sessions and Mozilla. I just noticed that if I open up a Mozilla window, log into my CMS, then open another Mozilla window (not by ctrl-n, but by selecting it from my programs menu) and bring up the login page in that new window, then it detects the

[PHP] Upload problems

2004-10-05 Thread Pablo Gosse
Hi, folks. I'm running into a strange upload problem and am not sure if it's a php or apache issue. I can't seem to upload any files bigger than 511k. 511k will upload fine, but 512k returns a Document contains no data error. I've tried this with a text file, adding and removing lines until it

RE: [PHP] Upload problems

2004-10-05 Thread Pablo Gosse
[snip] What's the upload_max_filesize set to in your php.ini ? Under File Uploads in the php.ini, you will find this value. [/snip] That's not it. That's set to 30M. This domain was just transferred over to a new server, and this problem did not exist on the old one, so while I am pretty

RE: [PHP] Upload problems

2004-10-05 Thread Pablo Gosse
[snip] Look in your php.ini for max_upload_size or something like it. [/snip] 'Twas an apache problem. Thanks the help. Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Security Question (from Chris's OSCON 2004 talk)

2004-09-30 Thread Pablo Gosse
Hi folks. Thanks to all for the replies to my question about security on shared hosting the other day. I've contacted my hosting provider and they will be fixing the issues I've pointed out to them. I've got a question about a section of Chris's article on PHP security from his OSCON 2004 talk.

[PHP] Security Question (from Chris's OSCON 2004 talk)

2004-09-30 Thread Pablo Gosse
Hi folks. Sorry if this gets posted twice, but I sent it originally almost an hour ago and it hasn't shown up on the list yet. Thanks to all for the replies to my question about security on shared hosting the other day. I've contacted my hosting provider and they will be fixing the issues I've

RE: [PHP] Loop within Loop help please

2004-09-28 Thread Pablo Gosse
[snip] I have a simplified bit of code below: ?php foreach($someArray as $someVal) { //do some stuff } ? What i'd like to do is have a count inside that loop that will trigger some action every 20 iterations of the foreach. Like this: ?php $count=0; foreach($someArray as $someVal) {

RE: [PHP] php security on shared hosts

2004-09-26 Thread Pablo Gosse
[snip] I just published a free article on my Web site about shared hosting: http://shiflett.org/articles/security-corner-mar2004 In short, what you've found is typical for most shared hosts, and safe_mode (a directive created to help mitigate this problem a bit) does little to help. However,

RE: [PHP] php security on shared hosts

2004-09-26 Thread Pablo Gosse
[snip] In short, what you've found is typical for most shared hosts [/snip] I've just been reviewing the way sites are housed on my host, and what directories are readable by the web server and I'm curious to get opinions on this. When I use Chris' file browser script, there is a folder called

[PHP] Problems installing smarty on a shared host

2004-09-25 Thread Pablo Gosse
Hi folks. I've recently moved my site to a shared host, and this is the first time I've had to set up my site in a really restrictive environment, and I'm running into problems getting smarty installed. Using the basic example set up from the Smarty docs, when I run the file I get the following

RE: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Pablo Gosse
Kilimajer [mailto:[EMAIL PROTECTED] Sent: Saturday, September 25, 2004 1:52 PM To: Pablo Gosse Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Problems installing smarty on a shared host Pablo Gosse wrote: Hi folks. I've recently moved my site to a shared host, and this is the first time I've had to set up

RE: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Pablo Gosse
[snip] I'm trying to place the smarty directories outside my webroot to minimize security risks, however given my experiences thus far, I don't really see that being possible. It should not matter, unless open_basedir is in effect, but that would be another error. I would check if the

RE: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Pablo Gosse
[snip] It should not matter, unless open_basedir is in effect, but that would be another error. I would check if the directories are right, you can start by using relative path. [/snip] Just the relative path from smarty.php, ../../../home/pablogosse/smarty/Smarty.class.php And I get a

RE: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Pablo Gosse
[snip] You'll probably notice that the permissions for /home/pablogosse are like: drwxr-x--- with user:group pablogosse:pablogosse If you have permissions to, i would set up a directory like: /home/virtual/site357/fst/var/include/smarty/ And then set the include_path appropriatly. [/snip]

[PHP] php security on shared hosts

2004-09-25 Thread Pablo Gosse
Hi folks. I recently set up hosting for my site and have noticed something which is making me nervous. I can't seem to include files outside of my webroot, so I wrote a script to test permissions using passthru to output the results of a bunch of ls -la commands to see what I did and did not have

[PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
Hi folks. I've written a CMS where I work, the publishing guts of which is executed through a php script called from my crontab every minute. Every so often (it's happened roughly 17 times since July 22) I get parse errors in my log file when the scripts run into errors while executing. This is

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
Jay Blanchard wrote: [snip] Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it very

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
Marek Kilimajer wrote: [snip] Perhaps. Could the data being utilized by the code occasionally have characters that should be escaped, by aren't? Are you escaping all of the escapable characters, especially quotes, both single and double? That's what I was thinking initially, but all code

[PHP] RE: Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
Greg Beaver wrote: [snip] Does your crontab script use file locking to make sure that it isn't accessing a script at the same time as the webserver or another process? [/snip] Yes, I create a lock file when the script is called, but the only time I've ever seen a conflict there is when these

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
[snip] i just skimmed the errors, but it looked like various of them were likely due to database failure (i.e., the function didn't have the expected data to process). if something spotty is happening with your database connection that could give you these transient errors (assuming my

[PHP] Errors from script running in CRON - MORE DETAILED INFO.

2004-09-22 Thread Pablo Gosse
Hi again folks. Thanks to those who helped in trying to find the cause of my problem this afternoon. Sorry if the code in this message wraps, but I'm writing this through a tss connection and damned if I can figure out how to change the wrap point in outlook :o( The CMS logged a new error a

RE: [PHP] Parsing large file

2004-08-31 Thread Pablo Gosse
Adrian Teasdale wrote: Hi there We have a text file that is 2.2gb in size that we are trying to parse using PHP to put the content into a mysql database. This file contains 40 million individual lines of data. Basically PHP isn't parsing it. Any suggestions of how we could do this?

[PHP] Problem using fread with https

2004-08-26 Thread Pablo Gosse
Hi folks. I'm getting the following error when attempting to use PEAR::HTTP_Request to check the existence of a file. It's throwing an error from fread on an https stream: Warning: fread(): SSL: fatal protocol error in /u0/local/lib/php/Net/Socket.php on line 263 Line 263 is as follows:

RE: [PHP] db transactions across multiple pages...

2004-07-30 Thread Pablo Gosse
snip the pconnect supposedly allowed an app to use the same connection if one was available. so an app would establish the connection on page 1, and page 2 could use the same db connection... this is required as i understand it if you're going to do transactional processing, as once the

[PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
Hi folks. I've written a CMS which uses a cron job to execute a script that pushes/pulls content from our website. It's been working very well, and still is, but this morning I found this in the CMS error log: PHP: Error parsing /u0/local/apache2/conf/php/php.ini on line 102 Has anyone

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
Jason Davidson wrote: whats on line 102 of the php.ini file ??? Jason On Fri, 23 Jul 2004 10:27:29 -0700, Pablo Gosse [EMAIL PROTECTED] wrote: Hi folks. I've written a CMS which uses a cron job to execute a script that pushes/pulls content from our website. It's been working very

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
snip Jason Davidson wrote: Can you show whats on either side of that too please /snip The following are lines 91 - 112 ; You can redirect all of the output of your scripts to a function. For ; example, if you set output_handler to ob_gzhandler, output will be ; transparently compressed for

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
snip Jason Davidson wrote: Oh, it was a one time error, strange, youve never had this error before, and this definately is the php.ini file your using, ie, there isnt another somewhere thats getting used? /snip Quothe the terminal: [EMAIL PROTECTED] html]$ find / -type f -name php.ini

RE: [PHP] Array help

2004-07-23 Thread Pablo Gosse
Robb Kerr wrote: On Fri, 23 Jul 2004 14:21:42 -0700 (PDT), Matthew Sims wrote: imgBkgrnd = array(1= bkgrnd-default.gif, 2 = bkgrnd-positive.gif, 3 = bkgrnd-negative.gif); You got it... imgBkgrnd = array(1= bkgrnd-default.gif, 2 = bkgrnd-positive.gif, 3 = bkgrnd-negative.gif); imgNeeded

RE: [PHP] textarea/display question...

2004-07-20 Thread Pablo Gosse
Stut wrote: On Tue, 20 Jul 2004 11:51:22 -0700, bruce [EMAIL PROTECTED] wrote: with an iframe... can i allow the user to make changes... and then capture the data as a value for a post within a form..??? in other words...does it closely give me what a textarea does with regards to

RE: [PHP] Echoing a value

2004-07-12 Thread Pablo Gosse
Ed Curtis wrote: I'm having some trouble echoing a value to a file that is being pulled from a MySQL database. I've included my code below I'm sure it's something really simple but I'm not seeing it. $row['users.name'] and $row['users.company'] echo nothing while $row['cnt'] echoes it's

[PHP] Regular Expression Help

2004-06-30 Thread Pablo Gosse
Hi folks. I'm having a little bit of a stupid moment with a regular expression which I'm hoping someone can lend a hand with. The regular expression I have right now matches strings between 2 and 1000 characters in length that start with one of the following characters: a-z A-Z 0-9 ( ) and

[PHP] Regular Expression Help

2004-06-30 Thread Pablo Gosse
Howdy folks. Sorry for the message which just showed up truncated. It's complete in my sent mail, but appeared truncated on the list. Full message is below. TIA for all help. Hi folks. I'm having a little bit of a stupid moment with a regular expression which I'm hoping someone can lend a

[PHP] Messages to List Being Truncated

2004-06-30 Thread Pablo Gosse
Hi folks. I've just attempted to twice post a message, and for some reason it's being truncated somewhere between my Sent Items folder and when it appears on the list. Has anyone had similar problems. Anyone have any idea what could be causing it? Cheers and TIA. Pablo -- PHP General Mailing

RE: [PHP] Messages to List Being Truncated

2004-06-30 Thread Pablo Gosse
snip the first one was truncated but the second one was complete. Btw thx Chris for opening up yet another thread that could have been avoided if your client was configured correctly. /snip This is strange. At any rate, I've put the message in an html page on our server.

RE: [PHP] CHAT

2004-06-29 Thread Pablo Gosse
Juan Pablo Herrera wrote: Hi! I need a chat program in php with GNU License. What's experience whith chat program in PHP? regards, Juan Pablo G-O-O-G-L-E: Search: php chat program gnu http://www.google.ca/search?q=php+chat+program+gnuie=UTF-8hl=enmeta= -- PHP General Mailing List

[PHP] problem translating single qutoes using ENT_QUOTES

2004-06-21 Thread Pablo Gosse
Hi folks. I'm running into a problem translating single quotes that I'm hoping someone can help with. In my CMS, content is encoded using htmlentities() before it is stored in the database. During publishing the encoded content from the db is decoded before being written to the file. However,

[PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Pablo Gosse
Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploaded file which exceeded the upload_max_filesize? I'd like to be able to tell the user the size of the file they tried to upload, in addition to telling them the

RE: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Pablo Gosse
'; break; case 3: echo 'File only partially uploaded'; break; case 4: echo 'No file uploaded'; break; }exit;} You can use a switch format like I have done previously shown above. Each file error is mentioned in a different case. -- Ashwin Purohit On Fri, 18 Jun 2004 10:50:04 -0700, Pablo

RE: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Pablo Gosse
Marek Kilimajer wrote: Pablo Gosse wrote --- napĂ­sal:: Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploaded file which exceeded the upload_max_filesize? I'd like to be able to tell the user the size

RE: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread Pablo Gosse
John Nichel wrote: [EMAIL PROTECTED] wrote: Sadly, I get nothing... the other server I'm talking to is owned by our company, it's a Lotus Domino server... so in theory, they'll be able to enable this variable to be passed? I can never remember one day to the other which it is, but I

[PHP] Trouble setting include_path

2004-05-02 Thread Pablo Gosse
Hi folks. I'm trying to use an .htaccess file to set my include path and for some reason it's not overriding the value in php.ini, but instead still shows and uses the original value from php.ini, not what is in the .htaccess file. I know that include_path is one of the values that can be set

RE: [PHP] Trouble setting include_path

2004-05-02 Thread Pablo Gosse
snip Most default apache configurations now a days dont have .htaccess enabled by default (for performance reasons.) Or some hosting services implicitly turn this option off. So no matter what you put in the .htaccess file, it will be ignored. You can test this by putting in your .htaccess file

RE: [PHP] A to Z incremental

2004-04-22 Thread Pablo Gosse
snip Hi! Got this script: ?php for($i='A';$i='Z';$i++){ echo $i.' | '; } The output is: A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | ... YX | YY | YZ | where is should display only letters from A to

RE: Re[2]: [PHP] A to Z incremental

2004-04-22 Thread Pablo Gosse
Paul wrote: Hello Pablo, Thursday, April 22, 2004, 4:05:23 PM, you wrote: Hi! Got this script: ?php for($i='A';$i='Z';$i++){ echo $i.' | '; } The output is: A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC

RE: [PHP] Why not use assertions for input validation?

2004-04-13 Thread Pablo Gosse
snip PS. Could you post a link to that article? /snip http://www.linuxjournal.com/article.php?sid=7237 Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] (new question on this) http referer

2004-04-08 Thread Pablo Gosse
snip The referrer is sent by the referring machine. If that machine isn't setting it, you can't get it. If memory serves, I think I remember someone claiming that this could also be blocked at a firewall...don't know if that's true or not though. /snip Yup, certain firewalls either mangle

[PHP] Regular Expression Help

2004-04-08 Thread Pablo Gosse
Hi folks. I'm having a little trouble with a regular expression and I'm hoping someone can point out what I'm doing wrong. I want to extract from a large number of html files everything between the following specified comments, including the comments themselves: !--Begin CMS Content--...!-- End

RE: [PHP] smarty

2004-04-08 Thread Pablo Gosse
snip Who the fuck you tink you're talkin' to, huh! Whatta you think I am? Your fuckin' slave! You dont tell me what to do, Sosa. Youre shit! You want a war, you got it. I'll take you to war! /snip Shame on you for misquoting Scarface. G'nite, Tony. Next time you're going to quote a classic

RE: [PHP] cURL upload meter

2004-04-05 Thread Pablo Gosse
Steve Murphy wrote: Can cURL be used to create an HTTP or FTP upload meter? Steve By upload meter do you mean a progress bar which can tell a user how much of a large upload has been processed thus far? As far as I understand it PHP cannot access raw POST data so this cannot be done with PHP

RE: [PHP] FTP loading

2004-04-01 Thread Pablo Gosse
Lieve Vissenaeken wrote: Please help me, Is it possible with php to load immedeatly pictures into a website by users (by use of a ftp-statement) ? I mean: so that any user on my website can add a picture to that website which is immedeatly visible on that webiste? If this is possible, where

RE: [PHP] Tricky array question

2004-04-01 Thread Pablo Gosse
Merlin wrote: Hi there, I am trying to get continent and country info out of an xml file. There is a continent element to each country element. Now I do have an array with the continent info and one with the country info. The goal is to be able to output all countries sorted after

  1   2   >