[PHP] Images being uploaded in ASCII format

2003-10-22 Thread Pablo Gosse
Hi all. I'd like to take a brief sentence to introduce myself first. My name is Pablo Gosse, and I've just recently joined the php-general list. I've been using PHP since early 2000, and work as webmaster at the University of Northern British Columbia. I'm running into

RE: [PHP] link question

2003-10-22 Thread Pablo Gosse
link And on the receiving page access var via $_GET['var'] Of course, how you actually append the value in question to your link will depend on your own code. I use ADOdb for all my db work, so for me it would be something like this: echo ''; while (!$rs->EOF) { echo ' l

RE: [PHP] Images being uploaded in ASCII format

2003-10-23 Thread Pablo Gosse
ne? Thanks much in advance, Pablo Thursday, October 23, 2003, 4:05:13 AM, you wrote: PG> Hi all. I'd like to take a brief sentence to introduce myself first. PG> My name is Pablo Gosse, and I've just recently joined the php-general PG> list. I've been using PHP since early

RE: [PHP] Images being uploaded in ASCII format

2003-10-23 Thread Pablo Gosse
) or some other corruption takes place? Have you opened the files with a hex editor to see the contents? I am sorry if you have mentioned these before, i don't have the older messages in this thread. Pablo Gosse wrote: >Hi Tom. > > > >>make sure you have ENCTYPE

RE: [PHP] Images being uploaded in ASCII format

2003-10-23 Thread Pablo Gosse
with. Cheers, Pablo -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 10:48 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Images being uploaded in ASCII format Hi Pablo Pablo Gosse wrote: >Hi Raditha. Thanks very much for your reply

RE: [PHP] PHP not remembering sessions

2003-10-23 Thread Pablo Gosse
Strange, because I just set up the code exactly as posted below, under Win2K and Apache 2.0, and it worked fine. Cheers, Pablo -Original Message- From: Golawala, Moiz M (IndSys, GE Interlogix) [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 1:11 PM To: Daniel Guerrier; [EMAIL

RE: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Pablo Gosse
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.

RE: [PHP] Post form variables to a frame

2003-10-24 Thread Pablo Gosse
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 Mes

RE: [PHP] Idea for new operator

2003-10-26 Thread Pablo Gosse
On Sunday, October 26, 2003 5:40 PM Al wrote: > Is it just me, or would everybody else like to see a case-insensitive > string comparison operator introduced into PHP? You could use the strcasecmp() function as well: http://ca3.php.net/manual/en/function.strcasecmp.php Cheers, Pablo -- PHP G

RE: [PHP] Re: function help simple redirect

2003-10-27 Thread Pablo Gosse
On Monday, October 27, 2003 11:26 AM, Frank Tudor wrote: > This one worked (kinda) > I have no more errors but it doesn't do the redirect (hmmm)?? > $payment = "1"; > > function payment(){ > global $payment; > if ($payment == "0"){ > header ('Location: http://ftudor/test/test_page.html'); >

RE: [PHP] php temp table question (for mysql)

2003-10-27 Thread Pablo Gosse
On Larry Brown wrote: - Does anyone know whether the use of persistent connections with php will allow a temp table created by a script to linger around and cause a problem with the next execution of the script when it tries to create the temp table again? Also if it does prese

RE: [PHP] Possible query problem

2003-10-28 Thread Pablo Gosse
On Tuesday, October 28, 2003 8:50 AM Frank Tudor wrote: > $query="SELECT payment FROM payment WHERE dln='".$_POST["dln"]."' = payment.dln='".$_POST["dln"]."' and users.password='".$_POST["password"]."'"; Okay, there seem to be a few problems here. The first issue is: "users.password" Using thi

RE: [PHP] URL Variables

2003-10-28 Thread Pablo Gosse
On Tuesday, October 28, 2003 8:57 AM Jed R. Brubaker wrote: > Is there a way to preserve URL variables and have a link simply add a new > variable to the end? > I am tabulating data and I have URL variables defining which dataset to > view and in what way to view it. I would now like to set the S

RE: [PHP] revised query problem (sorry)

2003-10-28 Thread Pablo Gosse
Yours: $query="SELECT payment FROM payment WHERE payment.dln='".$_POST["dln"]."' = users.dln='".$_POST["dln"]."' and payment.payment='".$_POST["payment"]."'"; Mine: $query="SELECT payment FROM payment WHERE payment.dln='".$_POST["dln"]."' AND users.dln='".$_POST["dln"]."' and payment.pa

RE: [PHP] Menu populated based on previous menu

2003-10-28 Thread Pablo Gosse
Hi Robb. This is exactly what you'll need to do. Something like the following, assuming you're populating an array with user information: form.html-->formmailer.php want the $HTTP_Referer or HTTP_URI, file only, (of xy.html) -->to be forwarded to form.html, -->to be converted in a variable, -->which is passed on to formmailer.php, which will use it as "s

RE: [PHP] Sessions within new windows

2003-11-06 Thread Pablo Gosse
o:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:48 AM To: Pablo Gosse; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows > If, as Chris wrote, this is indeed a feature/bug of > IE, then it must be > configurable somewhere, though I'm lost as to where > that m

RE: [PHP]

2003-11-12 Thread Pablo Gosse
On Wednesday, November 12, 2003 8:23 AM Alan and Chris wrote: --- Alan --- > can I put a function_name() in the place holder? --- Chris --- > I think you can do this with JavaScript, yes. What is it that you hope to achieve by using a function instead of a url? You could, as chris writes, use

RE: [PHP] Calendar

2003-11-12 Thread Pablo Gosse
On Wednesday, November 12, 2003 10:50 AM, Steve wrote: > I am looking for a simple easy to edit php calendar program. Does anyone > know where I can find one? Pear is always a good place to start: http://pear.php.net/package/Calendar Cheers, Pablo -- PHP General Mailing List (http://www.php.ne

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Pablo Gosse
[snip] It might be best to not try and definitely declare what counts as foreign data, because it's a sort of "everything else" type of thing. If it doesn't originate within the PHP script itself, it is foreign.[/snip] What about data from a database which is retrieved within the PHP script? Would

RE: [PHP] Multiple values in a form option field

2003-11-13 Thread Pablo Gosse
On Thursday, November 13, Jeff wrote: [snip]What I now need to do is store not only the userID but the email address as well. Is there a way using a form to store 2 values using one drop down box? So basically I want to store the userID and the Email address to a variable in the form so that bot

RE: [PHP] Random Function

2003-11-14 Thread Pablo Gosse
Teren wrote: > Anyways, it works fine if I put 0 in for 1 on line 9 where it > uses the rand(), but it include 0 and I can't have 0. Why not just change the following: > if($ran == $sh) { > $add = "no"; > } to: > if($ran == $sh || $ran == 0) { > $add = "no"; >

RE: [PHP] Arrays and performance

2003-11-18 Thread Pablo Gosse
Raditha Dissanayake wrote: [snip]The biggest XML job i have handled with PHP is parsing the ODP RDF dump which is around 700MB. Obviously arrays are out of the question in such a scenario, even though only one user will be accessing the script At a given moment. the ODP dump has a couple of millio

[PHP] IE 6 mangling posted code

2003-11-19 Thread Pablo Gosse
Hi all. I'm not sure if this is a browser issue, or a php issue, but while I'm leaning more towards the side of browser I'm not really certain and I'm interested to see if anyone has had problems similar to this. I've got a form by which html code is being submitted to a database. When I submit t

RE: [PHP] Re: IE 6 mangling posted code

2003-11-20 Thread Pablo Gosse
David Strencsev wrote: > You may play with these functions: > > addslashes(); > stripslashes(); > htmlentities(); > html_entity_decode(); > Thanks for your help manu and david. I'm going to attempt converting the html characters and see if that works, but something also makes me think this migh

RE: [PHP] Excel Table & download it

2003-11-24 Thread Pablo Gosse
Jay Blanchard wrote: > [snip] > I want generate an excel table & download it as a file (not view in > IE), what HTML mimetype should i use? [/snip] > > header("Content-Type: application/vnd.ms-excel"); > header("Content-Disposition: inline; filename=\"excel.xls\""); > header("Expires: 0"); > hea

[PHP] different PHP configs for multiple sites on same machine

2003-11-24 Thread Pablo Gosse
Hi all. Is it possible to have different php.ini settings for different sites running on the same server (Apache)? What I want to do exactly is change the include_path on a per-site basis, without having to call ini_set in each page. I have the following: /home/vservers/cms.mysite.com

[PHP] Changing php directives inside apache config file

2003-11-24 Thread Pablo Gosse
Hi all. I'm trying to alter the include_path for three different sites running on the same machine, and I do not want to use ini_set in each file. Here's what I've set up for each virtual host inside my httpd.conf file: php_value include_path ".:/usr/local/lib/php:/path/to/cmsdev.u

RE: [PHP] Changing php directives inside apache config file

2003-11-24 Thread Pablo Gosse
es taking effect. Any ideas? Cheers and TIA. Pablo -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 3:02 PM To: Pablo Gosse Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Changing php directives inside apache config file Pablo Gosse wrote: &g

[PHP] Kerberos authentication with PHP

2003-12-01 Thread Pablo Gosse
Hi all. I'd like to use Kerberos to authenticate users and I'm looking for a decent tutorial on how to accomplish this. I've Googled this and have searched the archives but I can't find any decent links which point to useful tutorials. Anyone have one they'd like to share? Cheers and TIA, Pabl

[PHP] sendmail vs smpt

2003-12-02 Thread Pablo Gosse
Hi all. I'm curious as to the performance difference between scripts that use sendmail vs. smtp for their mailing abilities. I use the following class for delivering emails, http://phpmailer.sourceforge.net , and since I don't have sendmail running on my loc

RE: [PHP] PHP on a Domino Web Server

2003-12-05 Thread Pablo Gosse
Jonathan Villa wrote: > Where can I find information on installing/configuring PHP for Domino? http://www.alise.lv/ALISE/technolog.nsf/0/b2dc72112f3df625c2256dad002e40 c5?OpenDocument It's called Google man. Use it and love it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] Maximum execution time

2003-12-05 Thread Pablo Gosse
John J Foerch wrote: > Hi, > Is there some way to turn off maximum execution time? > Preferably within the script itself? Thanks, John ini_set('max_execution_time',0); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Persistence of session files

2003-12-06 Thread Pablo Gosse
Hi all. I'm wondering if anyone can tell me how long temporary session files stay on the server after the session has ended if session_destroy() is not called. I'm curious as part of the CMS I've been writing for the past year is a class which dynamically generates and validates all forms in the

RE: [PHP] restrict access to multiple pages

2003-12-09 Thread Pablo Gosse
Kelly Hallman wrote: > On Mon, 8 Dec 2003, Chris W. Parker wrote: >> Ok so I am working on the admin sectin of the e-commerce app I'm >> writing and I'm hoping there's a better way to do what I am currently >> doing. In an effort to prevent circumvention of the login page I've >> placed a check at

RE: [PHP] display settings

2003-12-09 Thread Pablo Gosse
Hartley, Matt wrote: > I am sort of new at this, I am wondering if it is possible to find > the display settings of the user I know that > > > > will give you > > Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) > > is there one that will recover the display settings of the user? > > Matt

RE: [PHP] restrict access to multiple pages

2003-12-09 Thread Pablo Gosse
Kelly Hallman wrote: > On Mon, 8 Dec 2003, Chris W. Parker wrote: >> Ok so I am working on the admin sectin of the e-commerce app I'm >> writing and I'm hoping there's a better way to do what I am currently >> doing. In an effort to prevent circumvention of the login page I've >> placed a check at

RE: [PHP] (0t) SSH cp (copy help)

2003-12-11 Thread Pablo Gosse
Hi, I'm on a win2k pro machine and need to copy a modified httpd.conf file to my linux box, I dont really know much about SSH and just learned a bit with my pals help (google) I am able to navigate around the directories, get a directory listing and delete...am unable to copy files from my harddi

[PHP] Pear install problem

2003-12-14 Thread Pablo Gosse
Hi all. I'm trying to install PHPDocumentor (www.phpdoc.org) and I'm getting an error when using the pear install feature. I've got the necessary files stored in /home/phpDocumentor-1.2.2 but when I run pear install /home/phpDocumentor-1.2.2/package.xml I get the following error: Invalid checksu

RE: [PHP] PHP IDE?

2003-12-14 Thread Pablo Gosse
>Was wondering what everyone's favortie IDE is for >coding in PHP. I've got a big PHP project in the >works. I'll be doing alot with it and am looking for >ways to boost my productivity. > >--Jough If you're willing to purchase a commercial product I'd highly recommend Zend's IDE. I've been w

RE: [PHP] Migrating from SSI and Perl

2003-12-26 Thread Pablo Gosse
My site, at the moment, uses SSI to call a Perl browser-sniffing script. I would like to: 1. use php to call the Perl script. 2. then save the values the Perl script outputs as php variables. Can this be done? If so, how? Hi, Philip. If you are not 100% stuck on using a perl script to sniff t

[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 encount

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 c

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
Jason Davidson wrote: > Can you show whats on either side of that too please 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 browsers t

RE: [PHP] Error parsing php.ini

2004-07-23 Thread Pablo Gosse
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? Quothe the terminal: [EMAIL PROTECTED] html]$ find / -type f -name "php.ini" 2>/dev/nul

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",

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

2004-07-30 Thread Pablo Gosse
> 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 conne

[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: return

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] 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 initia

[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 pars

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 underlyi

[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 coup

[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 e

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

2004-09-25 Thread Pablo Gosse
rom: Marek 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

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 direc

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 permiss

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] Unf

[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

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, ther

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 'v

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: http://www.php.net/unsub.

[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 sessi

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'

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 appr

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 gl

RE: [PHP] new connection with pg_pconnect

2004-10-14 Thread Pablo Gosse
[snip] I then have the page main.php which has '.$dbconn.'<-'; ?> the scripts just dies whenever I include the pg_connect function... if I change echo '->'.$dbconn.'<-'; to echo '->==='.$dbconn.'<-'; I'll still see -><- on my page if I remove the pg_connect function, I'll see ->===<-;

RE: [PHP] Loop within Loop help please

2004-09-28 Thread Pablo Gosse
[snip] I have a simplified bit of code below: 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: [/snip] if ($count%20 == 0) http://ca3.php.net/manual/en/language.operators.arithmetic.php in the manual (look for Mod

[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 p

[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 i

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

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 after

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, v

[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 Nor

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread Pablo Gosse
How can I write something like that? This is obviously not working as the " is assumed as the closing " for the meta tag. You haven't closed your opening php tag, which is why it's not working. "> Is how it needs to be to work. HTH, Pablo -- PHP General Mailing List (http://www.php.net/

RE: [PHP] HTML meta tag and PHP

2005-03-29 Thread Pablo Gosse
How can I write something like that? This is obviously not working as the " is assumed as the closing " for the meta tag. Sorry, I botched my previous reply and left the extra " after userId. It should be: "> Pablo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[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] Simple Problem

2005-04-12 Thread Pablo Gosse
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, products.number_

RE: [PHP] html editor written in PHP

2005-05-18 Thread Pablo Gosse
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. 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, since the

  1   2   >