Re: [PHP] multi-dimensional arrays

2009-04-13 Thread Michael A. Peters
Nitsan Bin-Nun wrote: $string = "xxx xx x xx xxx xxx xx x xx xxx"; $t = explode("\n", $string); foreach ($t as $k => $v) $t[$k] = explode(" ", $v); var_dump($t); After assigning the string do $string = preg_replace('/\s+/',' ',$string); Then you should be able to

Re: [PHP] $_GET verses $_POST

2009-04-13 Thread Michael A. Peters
Daevid Vincent wrote: Just to clarify. Obfuscation is NOT a substitute for security. While I don't disagree with the "when's" here of GET vs POST, this statement is a bit misleading... Any cracker worth his salt can easily install any number of Firefox extensions or uni

Re: [PHP] Logging out of a SSL / https:// site using PHP? (or JS?), Client Side Cache

2009-04-13 Thread Michael A. Peters
scubak1w1 wrote: Hello, I have a series of web sites which use https:// authentication (using AD integration to 'check the credentials' as it were) - all seems to be working well.. I have been Googling et al. for a way to log the user off the site "fully"...

Re: [PHP] $_GET verses $_POST

2009-04-14 Thread Michael A. Peters
Ashley Sheridan wrote: On Mon, 2009-04-13 at 15:47 -0700, Michael A. Peters wrote: I think doing it that way also has search engine indexing advantages. I've done a bit of research into that, and can't find any evidence to suggest that the so-called "friendly URL's&

Re: [PHP] Logging out of a SSL / https:// site using PHP? (or JS?), Client Side Cache

2009-04-14 Thread Michael A. Peters
scubak1w1 wrote: ""Michael A. Peters"" wrote in message news:49e41267.5010...@mac.com... scubak1w1 wrote: I have a series of web sites which use https:// authentication (using AD integration to 'check the credentials' as it were) - all seems to be working well.

Re: [PHP] Generate XHTML (HTML compatible) Code using DOMDocument

2009-04-14 Thread Michael A. Peters
Raymond Irving wrote: Hi, I'm thinking about using the html5 doctype for all html documents since it's supported by all the popular browsers available today. Two Quick questions... Why do we need to send XHTML code to a web browser when standard html code (with html 5 doctyp

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Nitsan Bin-Nun wrote: Hi List, I have been thinking for a while about setting up my own rapidshare.comclone, Few days back I went really serious with this and came up with some ideas. This is where I need your help, my partner and I have been thinking about the system that the website should

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Michael A. Peters wrote: $archive = /path/to/some/tarball; should be $archive = '/path/to/some/tarball'; :D rest of the code is copied from a file I use to serve content that is outside the web root. That's one of my rules - the web server never has write permission to

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
kyle.smith wrote: How is 700MB too big for HTTP? Ever download a linux distro? Ever benchmark FTP vs HTTP, the overhead is minimal... I download linux distro's all the time - er, whenever a new CentOS is released. It's not overhead that is the issue. It's being able

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Paul M Foster wrote: Then I suggest setting up a torrent instead of direct download. You can have protected torrents. I don't know how to set them up but I use them - there's a torrent site that requires I log in from the same IP as I'm running the torrent client from, for examp

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Michael A. Peters wrote: kyle.smith wrote: How is 700MB too big for HTTP? Ever download a linux distro? Ever benchmark FTP vs HTTP, the overhead is minimal... I download linux distro's all the time - er, whenever a new CentOS is released. It's not overhead that is the issue.

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Nitsan Bin-Nun wrote: Neh, we don't have plenty of these in Israel, don't count it in as an issue. Serving the files won't be an overkill for my harddrive / cpu usage / anything else? There is a better way to serve the files with/without PHP and keeping them outsite of the HTTP

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
Michael A. Peters wrote: Nitsan Bin-Nun wrote: Neh, we don't have plenty of these in Israel, don't count it in as an issue. Serving the files won't be an overkill for my harddrive / cpu usage / anything else? There is a better way to serve the files with/without PHP an

Re: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread Michael A. Peters
There might be - I'm not familiar with such a technique though. You may be able to use php sessions to enter an IP into a database (or flat file) that standard apache access restrictions could use to determine whether or not to send the file. IE upon succesful login from 192.168.15.7 -

Re: [PHP] Setting Up A Directory For HTTPS Secure Certificate

2009-04-17 Thread Michael A. Peters
revDAVE wrote: GOAL : no one will be able to get to HTTPS directory VIA HTTP. So I make this little tester page that seems to work Later I'll add auto redirect Is this the kind of thing to add to various pages? Is there a better way to do this? I do a separate document roo

Re: [PHP] utf-8 ?

2009-04-28 Thread Michael A. Peters
t you have a php app with a bunch of data in mysql and you needed to handle international characters in the db beyond latin-1. I think you hit the nail on the head, except I dont need any of those weird foreign pictograms and scribbles ;-) I'm only using English ( the most difficult, of co

[PHP] ImageMagick

2009-04-30 Thread Michael A. Peters
Here's the scenario - Website has some demonstrative images. I create these images with the gimp - starting with a jpeg, adding a few text layers and straight lines. I then save as xcf in case I ever need to edit. Then I export to jpeg, resize for thumb and export to jpeg again.

Re: [PHP] ImageMagick

2009-05-01 Thread Michael A. Peters
Ashley Sheridan wrote: Do the text layers have to go beneath something on the original xcf, or have special effects applied to them? If not, you can add t existing images with GD, by using a source image, adding text layers, etc, and then exporting it as a new graphic. Yeah - I know I can

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-01 Thread Michael A. Peters
PJ wrote: Is there a module to be activated or what has to be installed to have ttf support in php? on unix systems, ttf support should be there with freetype - which supports both ttf and postscript type 1 fonts (and probably also supports .otf though I haven't tried) enable freetyp

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-01 Thread Michael A. Peters
PJ wrote: Is there a module to be activated or what has to be installed to have ttf support in php? addendum to my earlier reply - make sure your gd library is built with freetype as well, and make sure it is freetype 2. I'm guessing your gd library already is, but ... -- PHP Ge

Re: [PHP] graphical integrated development environment recommendations?

2009-05-01 Thread Michael A. Peters
ighlighting and has browser previews would be nice features. I'm looking at Aptana (www.aptana.com) but it seems like it is more complicated to use then it should be. Either Linux or Windows IDE (i run both OSes) recommendations would be fine. Not an ide - I use bluefish, which is a

Re: [PHP] Dynamically Rename Images

2009-05-02 Thread Michael A. Peters
Andrew Hucks wrote: Is it possible to rename images dynamically? Say that I had something like image1.png, and I don't want to rename it on the server. I'm working on an image rotater for a forum that doesn't allow anything but image files as signatures. Here's my code so

Re: [PHP] compiling a test php from latest csv snapshot on os-x

2009-05-03 Thread Michael A. Peters
Tom Worster wrote: i've an outstanding verification to do for a php bug fix. can anyone point me at instructions for compiling the latest csv snapshot for testing on os-x without installing over my current installed php? I assume you can compile as a non privileged and set a prefix d

Re: [PHP] Forcing a Post of data

2009-05-05 Thread Michael A. Peters
Ashley Sheridan wrote: On Tue, 2009-05-05 at 00:09 -0700, Richard Kurth wrote: How can I force this to be a POST and not a GET Add Customer or is the only way you can pass data with a POST is from a Form submission. The only way you can send post data is either through the form or using an

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-05 Thread Michael A. Peters
("€", "…", "″", "'", "'", "'", "'", """, """, """, """, "•", "•", "–", "–", "—", "—", "™", "™", "©", "®");

Re: [PHP] Avoid to open mysql querries then times in the page

2009-05-06 Thread Michael A. Peters
tedd wrote: On 5/4/09, Matthieu wrote: Hello, I'm a totally newbie to php/Mysql but I'd like to know if it is normal that I have to connect 3 times to the db in one page. For example, I have 1. A connection for the login / pass a $_SESSION['login'] before the HTM

Re: [PHP] How to deal with identical fields in db

2009-05-06 Thread Michael A. Peters
Peter Ford wrote: tedd wrote: (and I added in some extra bits...) You need to normalize. Authors should have an unique id in an authors table. The authors table has all the specific information about authors, but not the books they have written. Books should have an unique id in a books

[PHP] Re: bcmath integer type?

2009-05-07 Thread Michael A. Peters
Michael A. Peters wrote: I'm having a problem with db2 and prepared statements. var_dump indicates that some variables that should be type int are type text. These variables are the output of bcmath equations, and are integer. Does bcmath for some reason output a text type? I can fix

[PHP] bcmath integer type?

2009-05-07 Thread Michael A. Peters
I'm having a problem with db2 and prepared statements. var_dump indicates that some variables that should be type int are type text. These variables are the output of bcmath equations, and are integer. Does bcmath for some reason output a text type? I can fix it by adding 0 but I wa

Re: [PHP] Re: bcmath integer type?

2009-05-08 Thread Michael A. Peters
Robert Cummings wrote: On Thu, 2009-05-07 at 21:45 -0700, Michael A. Peters wrote: Michael A. Peters wrote: I'm having a problem with db2 and prepared statements. var_dump indicates that some variables that should be type int are type text. These variables are the output of bcmath equa

[PHP] Watermarking of images

2009-05-11 Thread Michael A. Peters
I need to know the best way to dynamically watermark images via gd. This is an example of what I currently have: http://www.shastaherps.org/images/66-3.jpg That's using Lucida Mono. A really nice monospace font (very similar to Apple's Monaco), the font I like to use in text ed

Re: [PHP] Watermarking of images

2009-05-11 Thread Michael A. Peters
Robert Cummings wrote: I did something similar to this a long time ago. The trick was to print the text 5 times. 4 times with black. 1 time with white. The 4 black prints are done with a 1 pixel offset in each direction of the compass. This will produce the nice black outline that has the

Re: [PHP] Watermarking of images

2009-05-11 Thread Michael A. Peters
Robert Cummings wrote: I did something similar to this a long time ago. The trick was to print the text 5 times. 4 times with black. 1 time with white. The 4 black prints are done with a 1 pixel offset in each direction of the compass. This will produce the nice black outline that has the

Re: [PHP] Watermarking of images

2009-05-11 Thread Michael A. Peters
tedd wrote: At 12:04 AM -0700 5/11/09, Michael A. Peters wrote: That site is also coded in php so I'm guessing that the watermark is added using a php technology. Can someone enlighten me on how that is done? Also, while not php related, could someone enlighten me of a really good fo

[PHP] database session management with mdb2

2009-05-12 Thread Michael A. Peters
The database session management class I'm using is something I downloaded off the web several years ago. I ported it to use mdb2 but it sometimes fails in a strange way if the session is expired or if the browser sends a session cookie that does not exist. With error reporting turne

Re: [PHP] database session management with mdb2

2009-05-12 Thread Michael A. Peters
Michael A. Peters wrote: The database session management class I'm using is something I downloaded off the web several years ago. I ported it to use mdb2 but it sometimes fails in a strange way if the session is expired or if the browser sends a session cookie that does not exist.

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Michael A. Peters
brian wrote: RHEL5/PHP 5.1.6 I'm having some trouble getting the Fileinfo package working. It installed fine, and phpinfo() says it's enabled. But it consistently returns an empty string when getting the MIME of a file. /usr/share/pear/bin/pecl install fileinfo vi /etc/php.d/fi

Re: [PHP] php & html integration

2009-05-14 Thread Michael A. Peters
tedd wrote: and Hello World will be show as a H1 headline. Please note, the "()" seen in my use of echo is not necessary -- it's just another one of those things that I do that no one else does. It's not wrong, but it serves no purpose other than it looks good and

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Michael A. Peters
PHPScriptor wrote: Hello, How do you guys handle this "problem". Just a form with a textarea. When I use enters in the textarea it's saved to the db like this: database: "first line second line" when I edit the value in the form: "first line second line&quo

Re: [PHP] Software to read/write Excel to CD?

2009-05-15 Thread Michael A. Peters
Paul M Foster wrote: On Fri, May 15, 2009 at 10:21:22AM +0100, Peter Ford wrote: Matt Graham wrote: But why write an Excel spreadsheet - why not save the data in something more portable like CSV that ExCel and read and write to once you are back at base? CSV doesn't export *formulas*, ju

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread Michael A. Peters
tedd wrote: Also, one can generate validation errors using "" because there are three different varieties of the tag, namely "", "", and "" -- all of which can be used in different settings. I don't remember which doctypes go with which version (xhtml requires />), but I've run into that pr

Re: [PHP] CSS & tables

2009-05-15 Thread Michael A. Peters
PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise

Re: [PHP] CSS & tables

2009-05-15 Thread Michael A. Peters
tedd wrote: At 2:06 PM -0400 5/15/09, Tom Worster wrote: for one thing, a table is a great way of representing relations (http://mathworld.wolfram.com/Relation.html). data tables are the canonical example but very often a form's structure is a relation, e.g. between labels and input f

Re: [PHP] CSS & tables

2009-05-15 Thread Michael A. Peters
Nathan Rixham wrote: tedd wrote: At 2:06 PM -0400 5/15/09, Tom Worster wrote: for one thing, a table is a great way of representing relations (http://mathworld.wolfram.com/Relation.html). data tables are the canonical example but very often a form's structure is a relation, e.g. be

Re: [PHP] CSS & tables

2009-05-16 Thread Michael A. Peters
Stephen wrote: My sites are still viewable, and can be navigated. They just look strange. Government workers are used to strange :) Stephen My experience is that government web sites are often the worst, frequently designed in MS word using brutally illegal html that only works in IE.

Re: [PHP] CSS & tables

2009-05-16 Thread Michael A. Peters
Paul M Foster wrote: On Sat, May 16, 2009 at 08:12:29PM -0700, Michael A. Peters wrote: Stephen wrote: My sites are still viewable, and can be navigated. They just look strange. Government workers are used to strange :) Stephen My experience is that government web sites are often the

Re: [PHP] read the last line in a file?

2009-05-17 Thread Michael A. Peters
Tom Worster wrote: do you mean the pecl inotify extension? that would eliminate the polling and the associated lag. but the php manual says it requires linux. Yup - and it's kernel, so I don't think it could easily be ported to OS X. -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
tedd wrote: However, I cite things like a calendar, and your MUD site, and other such solutions that would be very difficult to accomplish using pure css. I don't know about the MUD site - but again, a calendar is tabular data and therefore belongs in a table. The design sin is

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
Nathan Rixham wrote: When I go and buy a film I don't buy a vhs or a betamax.. because I can't - that industry simply stopped making them and if I want to own a new film I buy the dvd - I don't write to paramount and complain because I only have a betamax. Funny - I'm

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
opers simply cut support for x, y & z browser (or displayed a limited site with a notice) then I think the old browsers may just go away (90%). eg if google, facebook, msn, ebay, yahoo all cut support for them.. Nathan: In most technical things you are right, but here I have to agree with

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
. When the simpletons can't agree, then there's not much hope for the complexetons. :-) In case anyone is looking for statistics ... Just looked at my site - as the terms you used looked familiar. Content is in a div with id 'content' Page specific navigation is in a div wit

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
Paul M Foster wrote: That's the same problem XML has. The original idea was that you could, for example, have an invoice, and because it was marked up with the appropriate tags, everyone would be able to understand what it meant. xml provides a standard way of pointing the reader

Re: [PHP] CSS & tables

2009-05-18 Thread Michael A. Peters
Paul M Foster wrote: On Mon, May 18, 2009 at 04:43:20PM -0700, Michael A. Peters wrote: Paul M Foster wrote: That's the same problem XML has. The original idea was that you could, for example, have an invoice, and because it was marked up with the appropriate tags, everyone would be ab

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
chris_pa...@danmangames.com wrote: Hi everyone, I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart show up as checked on the products li

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
kranthi wrote: this depends much on the database implementation. obviously this is a one to many relationship. Probably easiest to do in the session database. You can store the session fields in an external database if you want the shopping cart to persist over multiple sessions. -- PHP

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
Paul M Foster wrote: When you say "it sends its id", what do you mean? You're not talking about the ID attribute of the checkbox tag, are you? The way I handle something like this is to give the checkbox tag a "value" attribute. Like: Each page has to be a form

Re: [PHP] product listing columns

2009-05-20 Thread Michael A. Peters
PJ wrote: I am about to bust my donkey again trying to set up a dynamic product listing for a web page using mysql, php & CSS (the donkey ride). What better place to ask than here in guru heaven: 1. What's a good list/forum to ask for help on CSS - it just is too illogical. I don

Re: [PHP] product listing columns

2009-05-20 Thread Michael A. Peters
PJ wrote: Michael A. Peters wrote: PJ wrote: I am about to bust my donkey again trying to set up a dynamic product listing for a web page using mysql, php & CSS (the donkey ride). What better place to ask than here in guru heaven: 1. What's a good list/forum to ask for help on CSS - i

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Michael A. Peters
Sumit Sharma wrote: Hi, I am designing a php website for my client which interact with database. This is my first project for any client (I hope he is not reading this mail ;-) ). I am a bit more concerned with database security. Can somebody shed some light on the security measurements

Re: [PHP] Problems working with HTML using PHP's XML tools (placing mixed text/html into xpath-specified nodes...)

2009-05-21 Thread Michael A. Peters
Weston C wrote: Is there a straightforward way (or, heck, any way) of placing mixed html/text content into xpath-specified nodes using any of PHP's XML tools? So far, I've tried SimpleXML and the DOM and things aren't coming out well. Not sure if it is of any use to you, I don

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Michael A. Peters
Eddie Drapkin wrote: Suhosin is completely not-related to SQL, though, I don't know why you'd bring it up... I brought it up because suhosin catches many exploits that otherwise get through, including exploits that allow inclusion of remote files that can then be used to run arbitrary command

Re: [PHP] apache user cannot execute useradd via sudo :(

2009-05-22 Thread Michael A. Peters
vuthecuong wrote: Hi all My server is centos 5.1 with php 5.1.6. In my app I want apache to add user through sudo. My sudoers file is: %apache ALL=(ALL) NOPASSWD: ALL %tony ALL=(ALL) NOPASSWD: ALL My test.php í: That's not a very secure sudoers file. But you probably don't want t

Re: [PHP] urgent CSS question

2009-05-22 Thread Michael A. Peters
PJ wrote: Sorry, but no one suggested a mailing list for CSS and the W3 Schools Forum has problems. This is the only reliable mailing list with professionals, so please excuse my off-path question as it is rather urgent. Why do I get completely different formatting with two identical classes? I

Re: [PHP] Why are lists.php.net user email being publish on the internet

2009-05-22 Thread Michael A. Peters
Per Jessen wrote: Andrew Williams wrote: I have no problem with it at least user email address should be removed off the publication. - Show quoted text - Don't worry, at e.g. marc.info the addresses have been appropriately obscured. Bottom line is when using a public list, if you

Re: [PHP] apache user cannot execute useradd via sudo :(

2009-05-22 Thread Michael A. Peters
vuthecuong wrote: Yeah I know my script don't care at all about security. I'm keeping it fot the sake of simplicity. After making it 'work', I will take a look seriously about security. So, why it not create user for me? thanks and regards I'm not that familiar wi

Re: [PHP] fgets function for very large files

2009-05-23 Thread Michael A. Peters
shahrzad khorrami wrote: one thing! I need four fields of 7 fields in each line, in my code from original csv file first four of fields choose(mappping these fields with columns of table in db) for example: a line in csv file: "a","b","c","d","e&q

Re: [PHP] Re: -less layouts; Ideas welcome

2009-05-23 Thread Michael A. Peters
Paul M Foster wrote: I wish someone had thought of a similar thing for databases. From the beginning, there should have been a spreadsheet-like interface for databases. This could have saved endless trouble, since for lack of this, people store database information in spreadsheets. And then

Re: [PHP] change server time

2009-05-24 Thread Michael A. Peters
Sumit Sharma wrote: Hi, Whenever I am using date('r') function It shows time in GMT instead of local time set on my machine. Do I need to configure the time separately. I am using WAMP server locally. Thanks, Sumit Not sure about windows - but putenv("TZ=America/Los_Angeles");

[PHP] html and password management

2009-05-25 Thread Michael A. Peters
d. I don't mind the auto-filling in of the password by firefox, I do mind that it decided to put the login name in the field before it. Here's the html for that form: Account Settings Update E-Mail Address NOTE: Updating your e-mail address will res

Re: [PHP] html and password management

2009-05-25 Thread Michael A. Peters
Michael A. Peters wrote: I'm working on the user registration part of my site. User registration works fine, but there's an oddity with password management. The use I registered is username: someone After logging in, I told firefox to save the username and password. I then w

Re: [PHP] html and password management

2009-05-26 Thread Michael A. Peters
kranthi wrote: seems more of a firefox question than a PHP question... just replace with https://developer.mozilla.org/en/How_to_Turn_Off_form_Autocompletion Thanks! I found that for xhtml I had to use following DOCTYPE to get it to validate: "http://www.w3.org/TR/xhtml11/DTD/xh

Re: [PHP] Displaying images

2009-05-27 Thread Michael A. Peters
Miller, Terion wrote: I am trying to get an image to display but I get nothing if done like this: Scout Photo: If I just echo the field I do get the file name Do you get the just the file name or the full path to the image on the server? If, say, t

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-27 Thread Michael A. Peters
b wrote: b) setting up your own server so you can ~shudder~ *configure* it however you like. linode offers xen virtual machines at a very affordable rate that give you complete control. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-28 Thread Michael A. Peters
name=\"Records.gpx\""); header("Content-Transfer-Encoding: binary"); print $myxml->saveXML(); -=- Looks very similar to yours, but I haven't tested in IE or Safari. I got the headers to send from some php cookbook website. Technically the mime type I'm sending in my case isn't valid (there is not an official gpx mime type), but it works and allows association with a helper application specific to gpx files. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] recipes anyone?

2009-05-29 Thread Michael A. Peters
thers. I use to maintain the Fedora package for a python/Gtk2+ recipe manager, it used sqlite internally but could import from at least one xml format - not sure if the one I linked to is it or not. You'll need to use one of the xml tools to convert xml recipe's to html for viewing, but

Re: [PHP] recipes anyone?

2009-05-29 Thread Michael A. Peters
PJ wrote: Thank you gentlemen. Basically, that's what I figured. But this does give me some more stuff to mull over. The only thing I'm really wondering is if it's worth doing anything with XML. For display in a web browser, the only thing you should do with xml is what br

Re: [PHP] recipes anyone?

2009-05-29 Thread Michael A. Peters
Bob McConnell wrote: > like a web based front end, > exclusion of specific ingredients due to allergies and being able to > attach dated notes about alterations or substitutions I try each time That sounds wicked. One of my brothers is allergic to corn. Being able to flag ingredi

Re: [PHP] pdf_new()

2009-05-30 Thread Michael A. Peters
Sumit Sharma wrote: > Hi, > > Unable the create new pdf file object. Getting an error when coding as > following: > > > $pdf=pdf_new(); > > ?> > > *Fatal error*: Call to undefined function pdf_new() in *C:\wamp\www\abc1.php > * on line *3* > > Please Help. > > Thanks, > Sumit.

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Michael A. Peters
Nitsan Bin-Nun wrote: Hi I have wrote a file uploader in PHP, and I don't want people to hijack it (get direct links, download whenever they want, etc). Currently I have placed the uploaded files one directory up from the www root, and I'm hosting the files mime type in order to ser

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Michael A. Peters
Nitsan Bin-Nun wrote: On Sat, May 30, 2009 at 3:26 PM, Michael A. Peters <mailto:mpet...@mac.com>> wrote: Nitsan Bin-Nun wrote: Hi I have wrote a file uploader in PHP, and I don't want people to hijack it (get direct links, download whenever

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Michael A. Peters
7;s > enough or not. > > On Sat, May 30, 2009 at 4:43 PM, Michael A. Peters mailto:mpet...@mac.com>> wrote: > > > Nitsan Bin-Nun wrote: > > > > On Sat, May 30, 2009 at 3:26 PM, Michael A. Peters mailto:mpet...@

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Michael A. Peters
Nitsan Bin-Nun wrote: What do you mean by session variables? I should register a new session and pass it along with the file to the PHP wrapper? Yes - in the page that links to your downloads you can do something like $_SESSION['download']=TRUE; then in the wrapper - if (isset

Re: [PHP] Anyone know whats the best way to learn PHP

2009-06-01 Thread Michael A. Peters
keep on nagging me to learn PHP. I guess what's the fun way to learn php? Any good books? Start with something small, like maintaining a database of your personal book collection - and learn to administer a DB (IE MySQL) at the same time. -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Web application design considerations - a good reference?

2009-06-02 Thread Michael A. Peters
Tony Marston wrote: Let me expand on that. When you have a form (which is what most of your application will be composed of), it will return all the data you need to process it. You process it, and proceed to a menu or somesuch to tackle the next task. If, for some reason, you need to track

[PHP] bibtex

2009-06-03 Thread Michael A. Peters
Is there already a php class that can parse a bibtex file and produce html formated works cited / bibliography output? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: forms problem

2009-06-04 Thread Michael A. Peters
Al wrote: I also use the "HTML Validator" extension. Leave it active and as you develop and test your resultant html code, it'll check your pages on the fly. When you see the red circle, with a cross, click the circle and get an error report in detail. Hey wow - that&#x

Re: [PHP] Re: forms problem

2009-06-04 Thread Michael A. Peters
Al wrote: Michael A. Peters wrote: Al wrote: I also use the "HTML Validator" extension. Leave it active and as you develop and test your resultant html code, it'll check your pages on the fly. When you see the red circle, with a cross, click the circle and get an

Re: [PHP] html and password management

2009-06-04 Thread Michael A. Peters
Andrew Ballard wrote: On Tue, May 26, 2009 at 4:36 PM, Michael A. Peters wrote: kranthi wrote: seems more of a firefox question than a PHP question... just replace with https://developer.mozilla.org/en/How_to_Turn_Off_form_Autocompletion Thanks! I found that for xhtml I had to use

Re: [PHP] html and password management

2009-06-04 Thread Michael A. Peters
Andrew Ballard wrote: I just thought I'd toss this out there. Do you know that there is an effort to remove browser support this attribute (or at least give the user a browser configuration option to ignore it)? http://article.gmane.org/gmane.org.w3c.whatwg.discuss/3054 This ar

Re: [PHP] html and password management

2009-06-04 Thread Michael A. Peters
Bob McConnell wrote: From my viewpoint, the bigger need is to educate administrators of publicly available computers to disable autocomplete in the browser configuration. If they would do that, when you go to the workstation in the library, you can't see the credentials of the last user, and th

Re: [PHP] PHP Graphing Libraries...?

2009-06-04 Thread Michael A. Peters
li...@mgreg.com wrote: Hi All, I'm currently looking for a quality (preferably open source) PHP graphing library that will allow me to create various graphs and plot points. I've seen several that do some amazing things, but cost a fortune -- others are either limited, lack doc

Re: [PHP] PHP Graphing Libraries...?

2009-06-04 Thread Michael A. Peters
Paul M Foster wrote: On Thu, Jun 04, 2009 at 01:50:28PM -0700, Michael A. Peters wrote: li...@mgreg.com wrote: Hi All, I'm currently looking for a quality (preferably open source) PHP graphing library that will allow me to create various graphs and plot points. I've seen sever

Re: [PHP] https setup

2009-06-05 Thread Michael A. Peters
PJ wrote: Can't find anything on G or web - but I probably didn't try hard enough. I am unable to set my virtual hosts to handle https. I have apache22, mod_ssl, opnenssl and the httpd and httpd-vhosts.conf files are set up "correctly" but directing a sensitive user informat

Re: [PHP] PHP Graphing Libraries...?

2009-06-05 Thread Michael A. Peters
li...@mgreg.com wrote: On Jun 5, 2009, at 5:26 AM, Richard Heyes wrote: ... I would have to suggest RGraph... ( http://www.rgraph.net ) :-) It's uses canvas though, so browser support is limited at the moment though to Firefox 3.5, Safari 4 and Chrome 2. I've looked at the docs and I don

Re: [PHP] https setup

2009-06-06 Thread Michael A. Peters
PJ wrote: Don't forget, you have to have a certificate, real or dummy for this to work. :-) Note that Firefox makes things difficult for non tech users with self signed certs, so for a live site open to the public, you really do want to spend the dough on a certificate from an auth

[PHP] Beginner at writting a PHP Wrapper for C++ libraries

2009-06-11 Thread Eric A. Boney
I am just beginning my foray into writing my own wrapper for a C++ library that maintained by someone else. I have ordered Sara Golemon's book "Extending and Embedding PHP" which should arrive in the next week or so, but until then I had a couple of questions that I was hoping m

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Michael A. Peters
Ford, Mike wrote: On 17 June 2009 02:11, Shawn McKenzie advised: PJ wrote: I'm sorry, guys, but I am really getting po'd. The irresponsible sloppiness and stupidity is just getting to me. In my quest for a way to populate a multiple option select box I have run across so many errors

Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread Michael A. Peters
Robert Cummings wrote: Ash: As I understand it and is my experience, that is true -- a stand-alone HTML attribute should be equal to itself, such as selected="selected", or more specifically selected="SELECTED". How is that MORE specific? XHTML is like a cross-section

Re: [PHP] sessions tutorial

2009-06-19 Thread Michael A. Peters
PJ wrote: I would appreciate hearing of a tutorial that will give something more than "you can use sessions in to store information"; like what kind of information Information on how to skin a cat. It's amazing how many ways there are too do it. I think it is in the neighbor

Re: [PHP] 500 Internal Error

2009-06-19 Thread Michael A. Peters
Bastien Koert wrote: Ensure that you have 'show friendly error messages in the Internet explorer is turned off ( unchecked ). IE does like to hide errors with this feature. A 500 internal server error is likely due to apache/php mis-configuration, it's doubtful any useful errors

<    14   15   16   17   18   19   20   21   22   23   >