Re: [PHP] pass variable from vbscript to php

2005-04-04 Thread Jason Barnett
Ashley wrote: Just so that I don't start working in the wrong direction, do you mean that I can get the same information from the activeX control directly from PHP rather than having to do it with vbscript? Yes, that is exactly what I mean. I am not much of a coder so any help porting the

Re: [PHP] PHP 5 Status

2005-04-03 Thread Jason Barnett
Colin Ross wrote: Now, as far as I know though, there are still issues with Apache 2 and PHP-libraries, correct? Yes, there are potential threading problems unless you use the pre-fork version of Apache2. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html

[PHP] Re: Signal 11 - php-5.0.1-dev - cygwin

2005-04-03 Thread Jason Barnett
Jason Barnett wrote: OK, so I built php-5.1.0-dev from source using cygwin / gcc. - buildconf ran ok - configure ran ok - make ran ok - make install failed. Output was: Installing PHP SAPI module: cgi Installing PHP CGI into: /usr/local/bin/ Installing PEAR environment: /usr

[PHP] Re: (noob) listing folder content

2005-04-03 Thread Jason Barnett
Read: http://php.net/manual/en/function.readdir.php ?php $some_value = 'some_value'; $dir = './rep'; $fh = opendir($dir); while(false !== ($file = readdir($fh))) { if ($file == $some_value) { echo $file; } } ? -- Teach a man to fish... NEW? |

Re: [PHP] Help! mod_php4 upgrade breaks GD!

2005-04-02 Thread Jason Wong
-- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

[PHP] Re: Best Server Platform

2005-03-31 Thread Jason Barnett
Gerald Artman wrote: Interesting comments from all. It would seem that despite disagreements, OSX clearly can hold its own. According to Netcraft, its does serve 4 of the top 50 sites on the survey, 11- www.apple.com (which is mixed with Solaris), 12- I would *hope* that Apple would use

[PHP] Signal 11 - php-5.0.1-dev - cygwin

2005-03-31 Thread Jason Barnett
OK, so I built php-5.1.0-dev from source using cygwin / gcc. - buildconf ran ok - configure ran ok - make ran ok - make install failed. Output was: Installing PHP SAPI module: cgi Installing PHP CGI into: /usr/local/bin/ Installing PEAR environment: /usr/local/lib/php/ Signal 11

[PHP] Re: Validating XML structure with PHP

2005-03-30 Thread Jason Barnett
Eli wrote: Hi, I want to validate an XML structure using PHP. I thought of using PHP's DOM and XSD or DTD for validation. This does the job ok, except on invalid XML structure I get the same error code. There are schema validation techniques within the DOM extension... those error messages

Re: [PHP] PHPXref is awesome!

2005-03-30 Thread Jason Barnett
Daevid Vincent wrote: Yes! That's the point. We use PHPDoc tags in our project, but it's become so large that PHPDocumentor itself can't make the documentation anymore. Go figure. large != high quality supporting existing coding standards == A Good Thing Is interested but doesn't have time to

[PHP] Re: Help!

2005-03-28 Thread Jason Barnett
Please read the first link below. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY |

[PHP] Re: include literal

2005-03-28 Thread Jason Barnett
Jeremy Reynolds wrote: What if I want to include some literal test into a PHP document that I don't want it to interpret as it loads. In particular, I am working with XML but for the example's sake I will say PHP. Example: FYI, when you have -- on a line by itself most newsreaders think that

Re: [PHP] Best Server OS

2005-03-28 Thread Jason Barnett
Danny Brow wrote: ... I wonder who will get bored and stir up the ants nest and say Windows? ;) Windoze is da shizzle my nizzle! Every1 knoz the kewlest SkRiPtErS use Windoze! ... I was kidding about OS/2, it's a dead OS. Nuh uh, just tell that to my overclocked 286 with 4MB of RAM! . . . .

Re: [PHP] Where is php installed on linux

2005-03-25 Thread Jason Wong
in the export command. It may be /usr /usr/local, or something else. In your case you have to set PHP_PREFIX to '/usr/local', and before you can proceed you must make sure you have the file '/usr/local/bin/phpize'. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

[PHP] Re: SQL statement - please help

2005-03-24 Thread Jason Barnett
Try a MySQL list. Or possibly even php-db. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY |

[PHP] Re: Destroying the Session Object

2005-03-24 Thread Jason Barnett
Jacques wrote: How can I destroy the session object for a particular user when that user leaves my web site without properly signing out? Jacques The most important part of this is garbage collection. You can't really know for 100% sure that a user has left without properly signing out, but

Re: [PHP] Listing directory, return none if only one file

2005-03-24 Thread Jason Barnett
Forest Liu wrote: it's better for getting help if you could show your code. He did show his code, he even put it in one of those nice pastebin sites! Hurrah! On Thu, 24 Mar 2005 12:15:11 +0200, Alexandru Martin [EMAIL PROTECTED] wrote: I have a script that lists the files in a directory,

[PHP] Re: fopen problems

2005-03-24 Thread Jason Barnett
AJ Lemke wrote: Hello all, I have an install of php on a Red Hat Ent. server that is giving me fits. I have been trying to use the fopen command to retreive files from external sites and have been getting this error: Warning: fopen(http://us3.php.net/images/php.gif): failed to open stream:

[PHP] Re: HTML - to - PDF

2005-03-23 Thread Jason Barnett
Matt Babineau wrote: Hi All, I have some reports I need converted from HTML to PDF, I'm on a LAMP box, so does anyone have any free suggestions? google fpdf -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

[PHP] Re: php pattern, software development pattern

2005-03-23 Thread Jason Barnett
Symbulos Partners wrote: I looked at php pattern (www.phppatterns.com). I did not understand it well. Is that supposed to be pattern as in software development pattern? If so why the uml diagrams are not there? They are design patterns for code. But the design patterns there are more micro

[PHP] Re: executed script URL

2005-03-23 Thread Jason Barnett
Rasmus answered this question a week or two ago. Search the archives for 'getenv request' and you will likely find the answer. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

Re: [PHP] session woes

2005-03-23 Thread Jason Barnett
Mignon Hunter wrote: ... [23-Mar-2005 09:04:47] PHP Warning: Cannot send session cookie - headers already sent by (output started at /var/www/htdocs/sess_downloads_p2.php:5) in /var/www/htdocs/sess_downloads_p2.php on line 60 [23-Mar-2005 09:04:47] PHP Warning: Cannot send session cache

[PHP] Re: session questions

2005-03-23 Thread Jason Barnett
[EMAIL PROTECTED] wrote: ... tool bar, I always got the message The page cannot be displayed. Can you help me? Yes. Use a real browser like Firefox so that you can get real error messages ;) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

[PHP] Re: Session destroy/unset question - the same session_id is regenerated.

2005-03-22 Thread Jason Barnett
You probably need to eat the session cookie in addition to destroying the session. ?php /** Destroy session record in /tmp or your database or wherever */ session_destroy(); /** Destroy the $_SESSION vars so they are removed from PHP script */ unset($_SESSION); /** Destroy the cookie so that a

Re: [PHP] cache class

2005-03-22 Thread Jason Barnett
To add to the discussion: are you using anything like the Zend performance cache? MMTurck? Smarty? I ask because there are various programs out there (some PHP-based, some not) that will cache PHP code. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

Re: [PHP] [semi OT]: Planning projects

2005-03-22 Thread Jason Barnett
what are design patterns? http://phppatterns.com -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY |

[PHP] Re: cant get this to work at all

2005-03-22 Thread Jason Barnett
Paste the code to a pastebin site... or use .phps extension for the PHP code and leave it on your server for us to look at it. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

[PHP] Re: die function

2005-03-21 Thread Jason Barnett
Barbara Picci wrote: Hi all, I have a machine that must insert in cron in a mysql db in another remote machine. The problem is that I cannot know if the connection in the first machine (adsl) go down because no entry in the machine log is generated. I would like to redirect the die function

[PHP] Re: looking for address finder..uk

2005-03-21 Thread Jason Barnett
AndreaD wrote: I'm looking for an address finder where a user types in a postcode and house number and then the user is given an option of to houses to choose from. Anything like this available for a small charge? Ross Try talking to Richard Lynch... he *might* be able to help you out.

[PHP] Re: PHP 5 DOM, XPath, UTF-8, and Form Input

2005-03-21 Thread Jason Barnett
C Drozdowski wrote: I have been doing some testing and need confirmation that the following is correct. You have a DOMDocument that potentially contains UTF-8 encoded data (it might not however). You want to search it via DOMXpath-query() using a value that comes from a $_POST value. If

[PHP] Re: XSLT solution

2005-03-21 Thread Jason Barnett
Devraj Mukherjee wrote: Hi everyone, I have been very intrigued by the way Gentoo.org offers its documentation. The documents are stored using a series of XML files and are delivered via XSLT via some ruby scripts. Are there any similar frameworks, solutions availble for the PHP world?

[PHP] Re: refreshing an included php file

2005-03-21 Thread Jason Barnett
AndreaD wrote: I have a file, index.php and this has an included file, lets call it calculate.php. When I insert values in text boxes and hit submit the values are written as cookies. The question is how can I refresh calculate.php so it shows the new value. AD You'll need calculate.php to

[PHP] Re: [semi OT]: Planning projects

2005-03-21 Thread Jason Barnett
disclaimerI am not very good at diagramming these things!/disclaimer After programming in PHP for a while I ran across this (helpful) website. Although I don't really do this like I should, perhaps this link will explain things well and /or inspire you to do things The Right Way?

Re: [PHP] ODBC Errors and Undefined functions

2005-03-21 Thread Jason Barnett
Jay Blanchard wrote: [snip] Okie dokie. I have an odbc data and I can use odbc_result_all() to return data in an HTML table format. If I switch to odbc_fetch_array() or odbc_fetch_object() I get a call to an undefined function even though TFM says that these are available in 4.3.7 running

Re: [PHP] ODBC Errors and Undefined functions

2005-03-21 Thread Jason Barnett
Oh and Jay... since no one else has found the answer it would be nice if you could post your solution here when / if you find it. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

Re: [PHP] Setting cookies for other domains

2005-03-19 Thread Jason Wong
websites from setting these 3rd party cookies. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

[PHP] Re: Convert time

2005-03-18 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi, I have a database where i store the username and date when he registered. The time when he registered is using the time() function. I want to display the date he registered in this format: year, month, day, hour, minute, second. ?php /** For more

Re: [PHP] XML HTTP

2005-03-18 Thread Jason Barnett
Chris Shiflett wrote: Jerry Swanson wrote: I generated XML file. I need to send the file to another server not through FTP but though HTTP. Yes, I gathered that, but you're not telling us how you're supposed to send it. For example, when Google first provided their web API, they didn't

[PHP] Re: Chapter 38. Handling file uploads

2005-03-18 Thread Jason Barnett
Timothy A. Whitley wrote: I am using the code at the top of this chapter to upload a file and move to a given destination directory. I get the following error messages and my file is not to be found. The only thing I am changing is where I want the file to be stored. Thanks. Warning:

[PHP] Re: db to xml using php

2005-03-17 Thread Jason Barnett
K Karthik wrote: ... i downloaded the zip from http://php.chregu.tv/sql2xml/. and then i couldnt know what i am suppose to do.. when i tried running the file am getting error Fatal error: main() [function.require]: Failed opening required 'XML/sql2xml.php'

Re: [PHP] Re: Strange PHP5 message

2005-03-17 Thread Jason Barnett
Andrei Verovski wrote: Hi, Jason, Thanks a lot for suggestion. Does it mean that I have tried to serialize some object (like adodb db object)? How I can eliminate this? I really cannot find where this object or whatever else is going to be serailized. The problematic line of code just

Re: [PHP] opt-in mail list best practice

2005-03-17 Thread Jason Barnett
Scott Haneda wrote: ... I use it to create HTML emails, send them to 1000's of people. I think I did a test to 30K or so, it handled it fine using mail locally. HTML emails [shudder] As for tracking, what we do is embed a image bug in the html and track when that loads, it is getting less

[PHP] Re: Session time out

2005-03-17 Thread Jason Barnett
Jacques wrote: Is session time measured in seconds or minutes? seconds -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php

Re: [PHP] Encrypted 2.5+M files do upload, but don't create a record when stored as LongBlobs (PHP/Apache/MySQL)

2005-03-17 Thread Jason Barnett
Steven Altsman wrote: This may be a stupid question. If it is, could somebody do a one line reply of it is. That way I will know to turn my attention elsewhere. ... It's not a stupid question, it's just that the people that have read it so far (including me) don't really know the answer. I

[PHP] Re: is_a() against instanceof

2005-03-16 Thread Jason Barnett
Christian Stadler wrote: Eli schrieb: - ($cls instanceof ClassName) *requires* from ClassName to be declared, and generates a fatal error when ClassName is not declared. How about if (class_exists('ClassName') AND $cls instanceof ClassName) { ... } Regards, Christian Stadler Nice

[PHP] Re: Log out button

2005-03-16 Thread Jason Barnett
M. Sokolewicz wrote: William Stokes wrote: Hello, Again this might be more of a HTML quetion. If so sorry about that. Anyway I was just trying to make a log out button to a page. It should end a session or/and close browser window. (Closing browser ends the session as well I think? no

[PHP] Re: Strange PHP5 message

2005-03-16 Thread Jason Barnett
Andrei Verovski wrote: ... Notice: serialize() [function.serialize]: __sleep should return an array only containing the names of instance-variables to serialize. in ANVphpApp.php on line 840 Anyone knows what is the problem? Exactly what the notice says ;) basically __sleep is used so that

[PHP] Re: XPath Query Exressions and Quote Characters

2005-03-16 Thread Jason Barnett
C Drozdowski wrote: ... $query = '//book/chapter' . '[EMAIL PROTECTED]:id=' . $id . ']'; First of all check the XPath documentation: http://www.w3.org/TR/xpath http://www.w3.org/TR/xpath#path-abbrev AFAIK your expression above is the way to build this query. Give us a link to the XML doc if

[PHP] [SOLVED] Re: [PHP] OT - C programming

2005-03-16 Thread Jason Barnett
Philip Olson wrote: For a nice introduction to extension writing, read this article: Part I: Introduction to PHP and Zend http://zend.com/php/internals/extension-writing1.php Bookmarked for future reference. Looking forward to the next several parts in this series... As well as the

[PHP] Re: PHP Classes

2005-03-16 Thread Jason Barnett
You know... we talked about this several times before. Please search the archives for the PHP list's answers. Hint: STFA tutorial class object -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

[PHP] Re: Embed PHP

2005-03-16 Thread Jason Barnett
Patric Stout wrote: Currently I am trying to get embed PHP to work. A nice C-application that can handle PHP-scripts. I hope this is the right place to ask question about it... This is a fine place to start. Note: I personally don't really know the answer to this question, but perhaps I can

[PHP] Re: session.use_trans_sid Question

2005-03-16 Thread Jason Barnett
Al wrote: What are the pros and cons of session.use_trans_sid ON and OFF Just moved our site from one which had the php.ini, session.use_trans_sid=OFF to one with it ON Sure looks ugly having the PHPSESSID showing up for visitors. Thanks PRO: - makes life easier when session cookie isn't

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jason Barnett
Jeff Schmidt wrote: Hello, I've made the source available at: http://www.weldingconsultants.com/wcapp/admin.phps 404 error when I just tried. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

[PHP] Re: Zend II api's RETURN_STRING macro

2005-03-15 Thread Jason Barnett
Usya Usya wrote: ... Please do not send multiple messages to the list, especially that many so close together. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW

[PHP] Re: TPC-W Implementation for PHP

2005-03-15 Thread Jason Barnett
Devraj Mukherjee wrote: Hi everyone, We are implementing the Transaction Process Council (Web) standard in PHP and are going to make it available under a LGPL license. Is there anyone there who would be interested in making use of this to benchmark the performance of their web setup? We

Re: [PHP] php compiler

2005-03-15 Thread Jason Barnett
Jay Blanchard wrote: [snip] Sooo.. I'm assuming there's no stable project for compiling php code to native binary machine code huh? (I've done some searching) Even anything commercial? (I didn't care for Zend's optimizer so much.. still has *RUN*time configuration) [/snip]

Re: [PHP] newbie:changing variable to type resource

2005-03-15 Thread Jason Barnett
Saswat Praharaj wrote: ... Without which I can't distinguish between different connections. Regards, -Saswat http://ecoustics-cnet.com.com/Tracking+PCs+anywhere+on+the+Net/2100-1029_3-5600055.html -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

[PHP] Re: PHP-CLI Debugging Question

2005-03-15 Thread Jason Barnett
Davy Durham wrote: Hi.. I'm working on converting some CLI (not CGI) bash scripts to php and was wondering if there's an equivalent to 'set -x' from bash in php set -x in bash basically causes the statements to be printed to stderr as they are executed. Does php have something similar?

[PHP] Re: listing directories

2005-03-15 Thread Jason Barnett
[EMAIL PROTECTED] wrote: How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) Thanks for being considerate! Check out STFA below... -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

[PHP] Re: PHP file as homepage?

2005-03-15 Thread Jason Barnett
Phil Neeb wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else? Yes. I don't know for 100% sure what they're using, but it's likely

[PHP] OT - C programming

2005-03-15 Thread Jason Barnett
Rasmus Lerdorf wrote: Jason Barnett wrote: Jay Blanchard wrote: ... In the end you are probably much better off learning a bit of C or C++ and writing your own PHP extensions than hoping that someone will make a compiler that will magically speed everything up. PHP was designed

[PHP] Re: Auto logout

2005-03-15 Thread Jason Barnett
Vaibhav Sibal wrote: Hi I wanted to implement an auto-logout feature for my project so that if a terminal is left unattended for say 10 minutes, it should automatically logoff the user. Apart from this, there is another How critical is it that the user be automatically logged out after 10

Re: [PHP] Re: PHP-CLI Debugging Question

2005-03-15 Thread Jason Barnett
Davy Durham wrote: No, I was looking for php to print each line of the code as it executes it. In that case, you want ob_implicit_flush() http://php.net/manual/en/function.ob-implicit-flush.php signature.asc Description: OpenPGP digital signature

[PHP] Re: Calling a function from the parent class

2005-03-15 Thread Jason Barnett
Eli wrote: ... How can I call func() of class A from $cls object (that when I call func() it will echo A and not B)? ... ?php class A { function func() { echo A\n; } } class B extends A { function func() { echo B\n; } function AMethod($method, $args = array() ) { return

[PHP] Re: is_a() against instanceof

2005-03-15 Thread Jason Barnett
Eli wrote: ... - is_a($cls,ClassName) *doesn't require* from ClassName to be declared, and return false when ClassName is not declared. ... Try is_subclass_of() http://php.net/manual/en/function.is-subclass-of.php -- Teach a man to fish... NEW? |

[PHP] Re: Update db with $_POST

2005-03-15 Thread Jason Barnett
Danny Brow wrote: Thanks for looking, I figured it out, after RTFM for db, I found that I needed to do field=? instead of using VALUES (). Example: $db-query('UPDATE items SET item_name=?, item_desc=?, item_price=?, extraprice=? WHERE item_id = 3', array($_POST['title'],

Re: [PHP] Re: PHP-CLI Debugging Question

2005-03-15 Thread Jason Barnett
Jochem Maas wrote: Jason Barnett wrote: Davy Durham wrote: No, I was looking for php to print each line of the code as it executes it. In that case, you want ob_implicit_flush() http://php.net/manual/en/function.ob-implicit-flush.php I think he is looking to print out the actual

[PHP] Re: Eliminating CLI overhead

2005-03-14 Thread Jason Barnett
Skippy wrote: I intend to run a lot of PHP scripts, all the time, on a Linux machine. The scripts were designed for CLI environment, since they will handle the entire management of the machine, being started by init and then effectively and completely taking over. I'm wondering whether

[PHP] Re: inserting arabic into mysql

2005-03-14 Thread Jason Barnett
P80 wrote: I have a text area form and when I insert it into mysql I get letters like this: ... instead of arabic letters. anything I know do to get it right? thanx in advance You're definitely better off asking this question on a MySQL list... or possibly even the php-db list. My

[PHP] Re: eregi expression for checking a domain

2005-03-14 Thread Jason Barnett
Ross Hulford wrote: Does anyone know a working eregi expression for determining a domain is valid? don't need the http:// just looking for www.thedomain.com cheers, R. parse_url() http://php.net/manual/en/function.parse-url.php -- Teach a man to fish... NEW? |

[PHP] Re: PHP5 JBOSS

2005-03-14 Thread Jason Barnett
David Joffrin wrote: Hi, I searched on the net, found a lot of articles about it... followed all the various one by one, tried a lot, but I am getting the famous error: java.lang.UnsatisfiedLinkError: no php5servlet.dll in java.library.path. ... I modified my application to display the

Re: [PHP] php 4 php 5

2005-03-14 Thread Jason Barnett
Richard Lynch wrote: ... [good stuff] ... Maybe if you told us WHY you need 4 5 we'd have better answers for ya. Agreed! Tell us what you specifically need and we can provide better answers. If you're wanting to test PHP5 with your current scripts then it would make sense to do exactly what

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Jason Barnett
Chris W. Parker wrote: Chris W. Parker on Monday, March 14, 2005 3:15 PM said: Line 82 is: print 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP

Re: [PHP] Temporary storage of data

2005-03-11 Thread Jason Barnett
Dan wrote: dan wrote: ... Before we go through all of this, why isn't SQLite an option? It is in by default as of PHP5.0.0 so if the server is / will be PHP5 soon then I would go that route. http://php.net/manual/en/ref.sqlite.php -- Teach a man to fish... NEW? |

[PHP] Re: showing an image with php

2005-03-11 Thread Jason Barnett
Ross Hulford wrote: I want to asssign an image to a variable and show it if certain conditions are met. E.g Make it a little more clear what you want. Is this an already existing image, or one you are trying to create? If it already exists then you want to use an img tag. ?php echo 'img

Re: [PHP] incrementing a number from a text file

2005-03-11 Thread Jason Barnett
Luis TQM Ariceaga wrote: Is it possible to let the OS handle the collisions? For example: $last_value = system('cat counter.txt', $retval); $last_value++; $result = system('echo $last_value counter.txt', $retval); just a suggestion! Luis: if the OS handled the read/write collisions

Re: [PHP] PHP help Quotations, Quotations, Quotations

2005-03-11 Thread Jason Barnett
Stg wrote: Thanks a lot for that, I am really grateful, now it sends along the link properly, which is great, however it is now having trouble converting spaces to %20 and it does it for some and not others, eg It does this: http://localhost/knewsl/NewsletterName.pdf When it should be:

[PHP] Re: Multiple file delete

2005-03-11 Thread Jason Barnett
Ashley M. Kirchner wrote: I have a page that displays the contents of a folder. Right now, each file has a little 'delete' button next to it that users can click on, however with many files it gets cumbersome. I need to be able to have them click on checkboxes and then hit one delete

[PHP] Re: POST multipart/form-data temp files not being created. File_upload directive is resetting to No.

2005-03-11 Thread Jason Barnett
Shawn Kelly wrote: hello php.general: I want to send a file through an HTML form to my Linux server. Newbie to PHP, but I have been patient in inverse proportion to my knowledge. I have seen many confused people with similar problems and their respective solutions in my quest (!), but still

Re: [PHP] SimpleXML add a node

2005-03-11 Thread Jason Barnett
Richard Lynch wrote: ... } catch(Exception $e) {} I dunno about that whole try/catch thing, but if you're not going to USE it to catch the errors, then you might as well be old school and check the return values of all these functions. Agreed 100%. No sense in going through the overhead

Re: [PHP] Temporary storage of data

2005-03-11 Thread Jason Barnett
?php /** Page 1 of the form (uniqid.php). Try to protect this page with your server, mmmkay? Authentication is left as an exercise for the reader... */ $genkey = 'http://receiving_server.com/genkey.php?fname='; define('TMP', './'); $key = KEY admin's public key. In an optimal situation you

Re: [PHP] PHP RegExp and HTML tags attributes values etc...

2005-03-10 Thread Jason Petersen
On Thu, 10 Mar 2005 00:18:05 +0100, BlackDex [EMAIL PROTECTED] wrote: Hello ppl, I have a question about regex and html parsing. I have the following code: --- p class=MsoNormalfont size=3 face=Comic Sans MSspan lang=NL style='font-size:12.0pt;font-family:Comic Sans MS'nbsp;/span/font/p

[PHP] Re: how to verify image and not http error is returned to browser

2005-03-10 Thread Jason Barnett
Cindy Reeves wrote: ... I don't trust their server will always be up/respond, so I want to use a PHP function to determine whether a GIF has been returned (oppsed to an HTTP error) before sending it to the browser. Any recommendations how to do this? Several ways to skin this cat. cURL is

[PHP] Re: Increase execution time

2005-03-10 Thread Jason Barnett
Jeremy Schreckhise wrote: How do you increase the execution time in php? A better question: why is it taking so long to execute? Most web requests should be far less than 360 seconds. Or is this some kind of CLI script??? I have set max_execution_time to 360 and setting set_time_limit(0);

[PHP] Re: PHP5.0.3 and pam authentication

2005-03-09 Thread Jason Barnett
Chris Dion wrote: I'm trying to use pam_auth for a script. It loads into php but it's not authenticating the users. I'm using the correct password and username. This is a example of how I'm using the function: pam_auth($_POST[uname], $_POST[passwd], $error) Any ideas? Thanks in advance

[PHP] Re: [Fwd: [PHP-DEV] Simple idea for ERP - please help]

2005-03-09 Thread Jason Barnett
Jochem Maas wrote: anyone fancy spoonfeeding this guy your lifes work? No not really. Then again PHP isn't my life's work :) talk about a snowballs chance in hell of getting help! Morty, if you read this: bugging internals with this kind of request will most probably earn your mail a

[PHP] Re: Internal Server Error ?!?

2005-03-09 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi guys. Last night I got Internal Server Error on every page written in php. HTML pages work just fine. Our web site is on dedicated server. I contacted tech and he said they didn't touch the server and must be something I did. I REALLY don't remember I did anything

[PHP] Re: Newbie Variable Question

2005-03-09 Thread Jason Barnett
Jackson Linux wrote: ... php include_once /path/to/cv.$r.include.php; ? asks for cv.'1'.include.php ... And I need it to ask for cv.1.include.php How can I make a variable to fetch the literal number from the field cv.category? Not 100% certain that it will work, but try casting the variable

[PHP] Re: imagedestroy()

2005-03-09 Thread Jason Barnett
Edward Vermillion wrote: ... a directory, about 5000 images are being counted. While the script worked fine when i wrote it a few months ago, on the different system, I was recently trying to use it and was repeatedly getting memory limit errors at an 8MB limit. What the script does is load

[PHP] Re: how can I determine the built options of PHP

2005-03-09 Thread Jason Barnett
I'm not 100% sure what options are used in the Windows build by default, but for windows everything is wrapped up into extensions. You need mysql, you enable the appropriate mysql .dll. You need Apache, you use the appropriate apache .dll. And all of that is controlled through php's ini and/or

Re: [PHP] Help with dates

2005-03-09 Thread Jason Barnett
Jochem Maas wrote: It's mostly the past. The RPG is set in Egypt and the beginning of the society in egypt has been taken as year 0. The start date I think is obvious, but I do not understand an end date of a calendar.. Perhaps I'm just blond.. but could you perhaps explain that one?

[PHP] Re: Question regarding simplexml predefined constants

2005-03-09 Thread Jason Barnett
David Allan wrote: In reading the documentation on simplexml predefined constants, I see a note that says these were added to PHP 5.1.0. Am I reading that [future] version correctly, and I can expect that these are to be released in a forthcoming stable release, and in fact do not yet exist

[PHP] Re: shell script - disable log output

2005-03-09 Thread Jason Barnett
Eli wrote: I suppose error_log(My error message, 3, /dev/null) would work. http://php.net/manual/en/ref.errorfunc.php#ini.error-log try: ini_set('error_log', null) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

Re: [PHP] comparison operator

2005-03-09 Thread Jason Barnett
Richard Lynch wrote: i ran into this problem and i dont remember how i worked around it. http://php.net/isset I would also use isset. Or you can use the identical (===) comparison instead of the equivalent (==) comparison to check for 0. -- Teach a man to fish... NEW? |

[PHP] Re: incrementing a number from a text file

2005-03-09 Thread Jason Barnett
Ross Hulford wrote: I want to read a number from an external (txt) file and increment it.then save the number back on the text file. I know this is possible but want a simple amd economical way to do this. Thanks, Ross Not 100% sure what the most economical way is going to be, but I'm

Re: [PHP] shell script - disable log output

2005-03-09 Thread Jason Wong
); // ?? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

[PHP] Re: PHP / JavaScript integration

2005-03-08 Thread Jason Barnett
Mário Gamito wrote: Hi, I'm trying to integrate some JavaScript functions in PHP, but so far, no good :( ... How can i do this ? How to tell PHP, that def(word) is a JS function in js.php file ? I've tried include ('js.php'), etc., but got no results :( Any help would be apreciated.

[PHP] Re: Sessions

2005-03-07 Thread Jason Barnett
Db wrote: Hi all I'm writing a C++ CGI lib and I want to support php(5) sessions. Is there some API I should use or can I just create/delete/read/write the sess_ files in /tmp? You are probably best off searching the PHP source for session_set_save_handler. It will be something like

Re: [PHP] fsockopen and session_start

2005-03-07 Thread Jason Wong
of execution should be something like: start session assign values to session close session do the simulated POST -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Passwords?

2005-03-06 Thread Jason Wong
. The short tags ? ? is an optional setting on the webserver and hence may not be enabled in which case your code *will* be displayed as-is. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

[PHP] Re: Undefined Variable Problems...

2005-03-06 Thread Jason Barnett
Nick Zukin wrote: ... line 79, if ($forum_admin == 1) { line 486, $uname = $cookie[1]; line 216, $pwd = $user[2]; Line 79 is not part of a function or class. It is the first reference to $forum_admin in the script. The other two are within functions and the first call within those

<    7   8   9   10   11   12   13   14   15   16   >