[PHP] Is there an alternative to HTML frames?

2003-07-29 Thread Jason Barnett
I'm new to php and web development in general. I've toyed with ASP a little and enjoyed using "include" statements to include my navigation and heading pages. Does PHP provide a similar statement, or is there something else I can do to achieve this effect? -- PHP General Mailing List (http://

[PHP] Permissions denied trying to upload a move a file...

2003-08-11 Thread Jason Barnett
I'm using PHP version 4.2.2 on a Linux system running Apache. I am trying to allow my users to upload a file, however I continue to receive a "Permission denied" error when using move_uploaded_file() or copy(). The file appears to be sent to the temporary directory successfully, but can not b

[PHP] Re: DOMXML support should be added to PHP5

2004-07-23 Thread Jason Barnett
Scrumpy wrote: Sorry for the repeated posts. I didn't know that they got queued awaiting confirmation of my email address :) Yeah, I was wondering about the reposts. Well you are right that if you used the old DOMXML functions in PHP4 that there is no clean way to move that code forward without

[PHP] Re: Installing Php5 over Existing Php4.3.6

2004-07-23 Thread Jason Barnett
Francis Chang wrote: Hi, I would like to install Php5 over an existing Php4.3.6 installation on Linux. What is the proper procedure? Do I need to "uninstall" the previous version first, if so, how? Can I install Php5 into the same location as the previous installation or should I install it into

[PHP] Re: Changing items in $_POST

2004-07-23 Thread Jason Barnett
However, there are a few variables I need changed. For example, the people I'm sending it to need $rate_1m which is a mortgage rate but in $_POST there is $rate_1m1 (the whole number) and $rate_1m2 (the two numbers after the decimal). How do I get those two together and then discard the two num

[PHP] Re: Code elegance and cleanliness

2004-07-23 Thread Jason Barnett
Depends on the project. Generally I try to use something more like the first code block unless I really need to optimize for the server. Getting another server is usually cheaper than the extra time (read: money) spent debugging. Robb Kerr wrote: Just a quick question. Does it really matter ho

[PHP] Re: replace n first occurences of a char in a string

2004-07-23 Thread Jason Barnett
Then, once I have determined there are more than one dot, how can I remove all the dots but the right most one? You can replace a limited number of matches using preg_replace(). $number = '123.456.789.10'; $count = substr_count($number, '.'); $number = preg_replace('/\./', '', $number, $count -

Re: [PHP] Weeeeee! ;)))

2004-07-24 Thread Jason Barnett
Comex wrote: but there isn't any archive.. Let's see I shake my magic 8-ball and it says... PEAR? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: include_path ???

2004-07-24 Thread Jason Barnett
When I run "phpinfo()" the include_path points to ".;c:\php\PEAR" but that is incorrect the correct path is "c:\inetpub\php5\PEAR". Are you *certain* you're looking at the correct ini file? phpinfo() should show the settings currently in use for your server (assuming you're calling the phpinfo i

[PHP] Re: Learning Regex

2004-07-24 Thread Jason Barnett
This helped me get started with Perl-compatible regular expressions: http://www.weitz.de/regex-coach/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get all links from a webpage?

2004-07-25 Thread Jason Barnett
Wudi wrote: This script can replace links: $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $text); But it cannot get the links. Magic 8-ball says... go read ereg() in your manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] Re: include_path ???

2004-07-25 Thread Jason Barnett
Lester Caine wrote: D_angle wrote: This is taken right out of the download of PHP 5 zip file "php-5.0.0-Win32.zip". Opening the "php.ini-recommended" it states the following configuration php.ini-recommended is probably not the one being used... if you want to use this you most likely just need to

[PHP] Re: class help (PLEASE)

2004-07-25 Thread Jason Barnett
No offense intended, but I'm not going to read through all of that. Narrow down the code block that gives you problems and then post that one block here... not the entire class. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP function speed testing

2004-07-25 Thread Jason Barnett
Shawn McKenzie wrote: O.K. So I've written my application and debugged it, and now I want to try and optimize the speed. I have written a little test script to test Several profilers / debuggers will help you optimize on speed... by telling you how much time the parser spends inside a function

Re: [PHP] Re: class help (PLEASE)

2004-07-25 Thread Jason Barnett
Hey Jason, No offense at all taken, am happy you read part of my help-email. Problem is, like I said, I dont have a clue about the workings of a class and all the pointing like this $this-> blah (->) means blah is a property of the class. ($this) means an instance of the class. gets me totally co

[PHP] Re: Sticky session after session_destroy...

2004-07-26 Thread Jason Barnett
Since you're using cookies, are you remembering to destroy the cookie as well? Check your web browser to see if the cookie is still there - then do your logout script - and then immediately check to see if the cookie is still there. Firefox makes this easy... just another reason why I love that

[PHP] Re: totally new to PHP

2004-07-27 Thread Jason Barnett
phpfreaks.com and codewalkers.com Or check the mailing list archives, others have been mentioned before. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Organising PHP projects

2004-07-27 Thread Jason Barnett
One of the new options that I am playing with is the __autoload() handler. If you keep each of your main classes in a separate file then it will try to load the class file the first time you try to create an instance of an undefined class. There is a little bit of documentation out there about

[PHP] Re: Problem with circular include statement

2004-07-27 Thread Jason Barnett
I *believe* that include_once will be all that is necessary. However if that doesn't stop the problem, you can use a DEFINE and at the top of each script: if (!defined(FILE1)) { include_once 'file1.php'; } -- file1.php - define ('FILE1', TRUE); -- PHP General Mailing List (

Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Jason Barnett
[EMAIL PROTECTED] wrote: please give me a command line to startup MySQL using safe_mysqld C:\> ---John Holmes... HAHAHA How'd you guess they would have a drive letter for their prompt :) Oh, us poor, poor windows users. Microsoft has "protected" us from it for so long that we've forgotten wha

[PHP] Call for XML / XPATH examples

2004-07-27 Thread Jason Barnett
I'm working on a project that makes use of the DOMXPath class in PHP5. I have some test xml documents / queries, but it would be good to test my project with other people's documents / xpath queries that do things mine don't. Please reply off list though, since I doubt most of the people here wan

Re: [PHP] Installing PEAR on Windows

2004-07-28 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi Matt (et al), I've added the c:\www\pear path to both the windows path and also the path in the php.ini file. However it's still coming up with the same error. Is there a way of putting in a temporary path in the go-pear.php file? Yes... ini_set('include_path', 'yourpa

Re: [PHP] For Loop Problems

2004-07-28 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hello Everyone, I'm building a hotel management system and I can't seem to figure out why my for() loop doesn't work the way it should. I'm using patTemplate to create the HTML Template (I like using it and I don't want to start a pro/con template war). Here is the script:

[PHP] Re: Accessing a variable from inside a local function

2004-07-28 Thread Jason Barnett
Something like this is probably better handled by a class. Then you can access class properties to do what you want. Class yourclass { function foo() { $this->my_foo_local = 10; } function bar($var_bar) { return $this->my_foo_local+$var_bar+1; } } $object = new yourclass(); $

Re: [PHP] strpos mystery

2004-07-28 Thread Jason Barnett
Because === and !== check the type as well. Of you set $string = 'blah' you'll still get the same result. If you were using != and == both would print. strpos() returns an int, so comparing it to false with === is always false. The same would be true for true. That's half right. strpos actually *

Re: [PHP] strpos mystery

2004-07-28 Thread Jason Barnett
Heck, even I got it wrong ;) True check below should always fail... Jason Barnett wrote: Because === and !== check the type as well. Of you set $string = 'blah' you'll still get the same result. If you were using != and == both would print. strpos() returns an int, so comparing i

[PHP] Re: Conversion of Field Value to Hyperlink

2004-07-29 Thread Jason Barnett
Harlequin wrote: Afternoon... I have a table generated by some code that returns certain field values and drops them into a table. On of these values is ID and I'd like to convert it I wouldn't let users create their own primary key for any type of inserts, if that's what you're using ID for. Use

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-30 Thread Jason Barnett
Funny... for the short time I've been on the list, it seems like our most popular topics are the ones that involve flaming. I guess I need to get some charcoal for my barbecue pit, lest I be the one on the end of the fork ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Browser reload problem

2004-07-30 Thread Jason Barnett
Is there a question here? Or is this a resolution? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP5 Manual in PDF and for Pocket PCs

2004-07-31 Thread Jason Barnett
As far as I know, no one has done that yet. Although all of the PHP manual pages are written in XML so if you were so inclined you could do it yourself. And I'm sure others would appreciate it if you shared it :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Re: Advise on parsing XML

2004-08-07 Thread Jason Barnett
I assume you are using PHP4's DOMXML functions? If that's the case then you have a bit of a problem. XML support changed between 4.0 and 5.0, we use libxml2 (which supports UTF-8), but the object model / methods changed to better conform with the DOM standard. Also AFAIK the experimental tag

[PHP] instanceof / __CLASS__ question

2004-08-31 Thread Jason Barnett
It's only a minor nuisance, but in order to use __CLASS__ with instanceof I have to assign __CLASS__ to a variable first. Should I bother submitting a bug report for this? Or am I perhaps missing something... class Test { function checkObj2() { //workaround $class = __CLASS__;

[PHP] help with crc32

2004-08-31 Thread Jason Barnett
I've been able to use md5 / md5_file to verify file integrity. However when I try to check crc32's I'm running into some problems. As an example I download and extract the PHP package for Windows, then when I try to crc32() the file contents I get a totally different value from what I think I

[PHP] Re: Broken data within an Array

2004-08-31 Thread Jason Barnett
Harlequin wrote: Hi all. Having a problem echoing a broken date. Here's where I'm at: $DateAdvertisedBroken = explode("-", $DateAdvertised); So this contains an array of (year, month, day) or something similar? You should be able to grab the values here if that's the case. later, in a table, I u

[PHP] Re: help with crc32 [SOLVED]

2004-08-31 Thread Jason Barnett
I hate when this happens all I needed was dechex(). *sigh* I could have sworn I'd tried that already, ah well. Jason Barnett wrote: I've been able to use md5 / md5_file to verify file integrity. However when I try to check crc32's I'm running into some problems. As an

[PHP] is_a (WAS: Re: instanceof / __CLASS__ question [SOLVED])

2004-08-31 Thread Jason Barnett
Greg Beaver wrote: Hi, I'm not sure I understand why you would use instanceof on $this. Try this code: Kind of complicated (so probably not the best way) but I have objects I'm creating with a factory method - and all of these objects *should* be extending a parent class. It's in the parent c

Re: AW: [PHP] Parsing pdf file

2005-02-09 Thread Jason Barnett
Mirco Blitz wrote: Thank you for that huge code. I will try. Greetings Mirco Blitz -Ursprüngliche Nachricht- Von: Matt M. [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 9. Februar 2005 22:39 An: Mirco Blitz Cc: php-general@lists.php.net Betreff: Re: [PHP] Parsing pdf file did you try this? .

[PHP] Re: Foreach problem.

2005-02-09 Thread Jason Barnett
Since you didn't post how you created the array, I went ahead and (ugh!) did it myself. This works fine. $elementsarr = Array ('knr', 'subject', 'title', 'kat', 'pages', 'access', 'dofile', MAX_FILE_SIZE, 'pdf', 'dolink', 'link', 'erstam', 'endless', 'from', 'until', 'openbem', 'history', 'closed

Re: [PHP] fireing function with onChange

2005-02-10 Thread Jason Barnett
Javascript back to me, but I was already sitting on the sidelines drinking some Gatorade with Randy Moss. Man, what a fumble that must have been." Kate: "And there you have it folks... PHP didn't even see what happened. I guess this is why PHP and Randy Moss aren't going

Re: [PHP] Re: Multi-Page Forms

2005-02-10 Thread Jason Barnett
Gh wrote: Question. Does the Tabs and Divs work under Mozilla Based Browsers? Generally speaking... if it's a part of a standard / RFC then it will be supported by Mozilla. If not, then probably not. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http:/

[PHP] Re: php in free() error

2005-02-10 Thread Jason Barnett
Gerard Samuel wrote: ... $array = array(0 => array('world')); class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator { function hasChildren() { return (is_array($this->current())); } function getChildren() { return new self($this->current());

[PHP] [Fwd: Re: [PHP-WIN] Re: SESSION]

2005-02-11 Thread Jason Barnett
t; Reply-To: Vaibhav Sibal <[EMAIL PROTECTED]> To: php , Jason Barnett <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Thanks Jason ! It'll be great if you could also tell me whether I can launch applications like MS WORD using COM or any other te

Re: [PHP] Creating a varable with a name held in a string

2005-02-11 Thread Jason Barnett
Ben Edwards wrote: ... What exactly is a simble table? Ben The symbol table is the where, deep down inside the guts of the Zend Engine, your variables are stored. There are symbol tables for different scopes (function, class, global) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/s

Re: [PHP] quotemeta() question...

2005-02-11 Thread Jason Barnett
Richard Lynch wrote: Steve Kaufman wrote: Why does quotemeta("pat:1$WRW") return pat:1 instead of pat:1\$WRW What am I misunderstanding about quotemeta function? You usually would use quotemeta on data coming from the database, or the user, or externally, or, errr, basic

[PHP] Re: How can I read the output from a local php file [fopen()]?

2005-02-11 Thread Jason Barnett
Al wrote: ... But, but, it doesn't work when my script is started from a cronjob, only from a remote browser. Any suggestions? Thanks. cURL extension: http://www.php.net/manual/en/ref.curl.php -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc

Re: [PHP] Uploading products in database using zip file?

2005-02-11 Thread Jason Barnett
[EMAIL PROTECTED] wrote: One more thing" marketing person use Windows and he will probably use Winzip. Is this still ok, or it's better to use some other application? First of all I would suggest using 7zip on Windows. Its usage is 100% free (you can of course donate to the project if you feel it

Re: [PHP] quotemeta() question...

2005-02-11 Thread Jason Barnett
Jochem Maas wrote: ... A better example code would be: $string = 'period.backslash\\plus+star*question?lbracket[rbracket]carat^lparen(rparen)dollar$'; echo "", quotemeta($string), ""; Interesting aside... with the test string above, I noticed that backslash\\ only resolved to two backslashes. I th

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Jason Barnett
Jochem Maas wrote: Jay Blanchard wrote: ... Jay, great list BTW - I was thinking maybe we could drop it on a site/wiki or something which could also contain stuff that comes up again and again, or stuff that even the 6month y/o newbie finds trivial or just good stuff thats been condensed from the l

[PHP] Re: Question: re: Session-only cookies and Firefox

2005-02-14 Thread Jason Barnett
Rgl wrote: Question: Has anybody else noticed session-only cookies not disappearing when using Firefox? Is this a Firefox bug (should they be notified/ or I get latest Firefox) ? They finally released 1.0, and yet you still use 0.8? I use Firefox quite regularly, but I don't experience the problem

[PHP] Re: php/mysql url validation methods...

2005-02-14 Thread Jason Barnett
Darren Kirby wrote: Hello all, On the main page of my website I have written a very simple comments feature that allows people to leave a message under my posts, much like a blog. I have purposely kept this very simple... On the main page I have simple text links that someone can click on if they w

[PHP] Re: calling php function when submit button is pressed

2005-02-14 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Can anyone show me how to call a function when submit is pressed or a form is submitted. "When submit is pressed"... as in instantly / on the web browser's side? You need Javascript for that; PHP simply won't do that. Or did you mean "when a form gets posted to the server"

[PHP] Re: Delete all files in DIR every 20 days

2005-02-14 Thread Jason Barnett
Tim Burgan wrote: Hello, How can I delete ALL files within a specified directory every 20 days? Does anyone know of any code-snippets that are around at the moment that are able to do this? (And where I can find them?) Thanks Tim Please give the list longer than an hour to respond to your request ;

[PHP] Re: who's on-line application - php

2005-02-14 Thread Jason Barnett
Jacques wrote: I would like to indicate the particulars (from a MySQL database) of all those users that are currently on-line (those whom have successfully signed in). How should I go about achieving this? Does it have something to do with Sessions? Jacques: the best solutions that I have seen invo

[PHP] Re: PHP book recommendations>

2005-02-14 Thread Jason Barnett
Dave Bosky wrote: I'm looking for an easy to read PHP book that will help me learn a solid foundation in PHP. I'm already familiar with the language but want to make sure I'm coding in the most efficient manner. What's a few of the better books out there? HTC Disclaimer: The information contained

Re: [PHP] User Passwords: checking for unique chars

2005-02-14 Thread Jason Barnett
Chris W. Parker wrote: Alex Gemmell on Monday, February 14, 2005 7:24 AM said: Hello! Hi! Bonjour! # Code: Do you also have a label on your computer that says "Computer"? No, but I do have a label that says "My Computer". Close enough, isn't it?

Re: [PHP] Re: Delete all files in DIR every 20 days

2005-02-14 Thread Jason Barnett
Tim Burgan wrote: Jason Barnett wrote: Please give the list longer than an hour to respond to your request ;) Thanks for the suggestion.. I've just given the list 6 hours at the moment. Why do you say this? Tim Only because I saw your message listed twice... and there was only 50 minut

Re: [PHP] php products licensing system

2005-02-15 Thread Jason Barnett
Jad Madi wrote: as I said, we are willing to have our product open source, but No free. and that fair enough, thats why I'm asking about a good method to protect our products from being used illegaly and keeping it open source It's a tough balancing act. Encoding / closing the source with one of t

[PHP] Re: Running PHP from inside another application!

2005-02-15 Thread Jason Barnett
Mikael Andersson wrote: Hi, I've a case where I have to run a lots of php-scrips, in a short time, from inside a delphi-application. Every script connects to the same databas. Today I use CreateProcess to start php.exe and then I'm using pipes to get the php-result. I'm doing this for each php-scri

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
Scott Fletcher wrote: I created the token via Javascript where the billing can be controlled better and to prevent the mixed up of the billing such as incorrect statements or calculation. I use the billing lock file for that purpose. I found that it doesn't alway work that way when the browser is

[PHP] Re: Set a timeout on file_get_contents?

2005-02-15 Thread Jason Barnett
Brian Dunning wrote: Is there any way to specify a timeout on a file_get_contents()? I'm trying to verify a URL but I don't want to spend more than a few seconds on it. - Brian Note that using file_get_contents to do this is only going to work if your php.ini has allow_url_fopen = 1. Actually I th

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
ndom number or brower's window serial number of some sort but I don't see how. Scott "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
Scott Fletcher wrote: Never heard of the uniqid() before and looked it up on the php.net. It look very promising. I can do that. That leave me with 2 questions. How do I do (or how does it work) this with a token if 1) The webpage is submitted (goes from page 1 to page 2) with the uniqid(). 2)

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Jason Barnett
Shaun wrote: Hi Marek, Thanks for your reply, could you tell me how I would go about this please? header('Content-type: text/csv'); header('Content-Disposition: attachment; filename="download.csv"'); /** Now you perform the MySQL query, DECODE the information and echo it to the screen. Hopefully

Re: [PHP] other mhash hashes

2005-02-16 Thread Jason Barnett
Burhan Khalid wrote: ... David: You should really post this at the mhash manual entry in php.net. I'm sure others would find it useful. Good find :) Cheers, Burhan [ snippity snip snip ] Agreed! I found it very, very useful. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-

[PHP] Re: php login

2005-02-16 Thread Jason Barnett
William Stokes wrote: Hello, I need to create solution for user authentication/recognition in my web page. I think it would be a good idea to use mysql database for storing the user info because the user info is later used to determine what parts of site the recognized user is allowed to update. So

Re: [PHP] other mhash hashes

2005-02-16 Thread Jason Barnett
Richard Lynch wrote: ... http://www.schneier.com/blog/archives/2005/02/sha1_broken.html Before we get a hundred posts about SHA-1 being "broken" would eveyrbody please read: http://nuglops.com/blog/index.php?p=1021 and maybe *ALL* the contributions way down at the bottom of the original post link?

[PHP] Re: Dynamic/runtime object creation

2005-02-16 Thread Jason Barnett
joe Lovick wrote: > Hi, > forgive me if this is a complete noob question > What i want to do is create an object at runtime with members and > methods based on the result of queries from my db back end. is this (a) Creating an object based on the result of a query shouldn't be a proble

[PHP] Re: Dynamic/runtime object creation

2005-02-17 Thread Jason Barnett
joe Lovick wrote: > Thanks for your help Jason, yes aggregating methods was what i had in mind, > but now as i explore it as a option i realise that it would work best is if > their was a way for me to pull my object out of the database variables, > data, This is certainly do-able. You serialize(

[PHP] Re: map internal extension name to actual file

2005-02-17 Thread Jason Barnett
Zac Barton wrote: > Hi, > > Does anyone have any good ideas of how to find out what extension was > loaded/enabled from what actual file. > > For example the "ming" extension (thats its internal name) could come from > php_ming.dll in my extensions dir. But if the file name is say mingFlash.dll

Re: [PHP] Hashing strings

2005-02-17 Thread Jason Barnett
Gerard Samuel wrote: ... >>> Im trying to determine if md5() would be the fastest, >>> *cheapest* solution. ... > What Im looking for is something where the generated hashes can > be reproduced. > For example, md5('foo') today, will be equal to md5('foo') tomorrow. > Thanks AFAIK crc32() is the fa

[PHP] Re: Date() reporting wrong on OS X server intermittently

2005-02-17 Thread Jason Barnett
Rowan Hick wrote: ... > > Has anyone out there seen weird problems like this before ? > > Many Thanks, > Rowan The other suggestions are good. If they don't pan out, check to see if you use the function strtotime(). It has been buggy in a few versions of PHP and may not be acting properly in

[PHP] Re: Problems with print html to pdf

2005-02-17 Thread Jason Barnett
Juan Antonio Garrido wrote: > Hi everybody: > > Does it exists someone library I can print html files to pdf without it loss > information about my property css classes(background,color,width...)? > > With GPL library HTML_To_PDF3.3 it isn't possible... > > If the library is GPL much better. >

[PHP] Re: Storing formulas

2005-02-17 Thread Jason Barnett
Mike Smith wrote: ... > > TopMeasurment+1.6875+OutOfPlumbWall > ... > static). Other formulas have 10 and 12 "variables" in them. How have > others gone about storing formulas that require such modifications? > > TIA, > Mike Smith If I was programming this I would probably create 16 functions f

Re: [PHP] Crontab for Windows

2005-02-18 Thread Jason Barnett
[EMAIL PROTECTED] wrote: > On W3K you could use this as the run line in > Scheduled Tasks and probably the same in XP > although I have not tested this. The same > components exist in the W2K version although > may be in different locations/names. > > Run: cmd /c "c:\php\php.exe -q c:\path\to\php\

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-19 Thread Jason Barnett
Your Name wrote: > Thank you very much for that solution however I need something slitely > different. This is a CMS for distribution... not everybody that's > going to use it can go in and edit the config files. I've heard of a > command called ini_set(); which temporarily changes it just for

[PHP] Re: Destroying the Session Object

2005-02-19 Thread Jason Barnett
pete M wrote: > here's the way I do it Depends on what you're going for exactly. Based on what the OP said I believe he'll also want to destroy the session cookie. If you want to completely destroy the session you need the extra step that I copied and pasted from the manual. :) > > logout.php

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-19 Thread Jason Barnett
b1nary Developement Team wrote: > Oh I'm sorry, that was just a typo, I meant the "use only cookies" > one... god I'm an idiot, thank-you. > Not an idiot... we all had to learn it once. And some of us a few times more than that! You're welcome. Jason signature.asc Description: OpenPGP digita

[PHP] Re: Unable to load extension (was Re: PHP to C interface?)

2005-02-21 Thread Jason Barnett
N Deepak wrote: > On Fri, Feb 18, 2005 at 09:20:02AM -0800, Richard Lynch wrote: > >>N Deepak wrote: >> >>> Is there a way to invoke C functions in a library (.so) from PHP? >>> Like Xs in Perl? >> >>By definition, then, all you have to do is learn how to write a PHP >>extension, which Rasmus te

[PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Jason Barnett
Stanislav Kuhn wrote: ... > > PHP Fatal error: Maximum execution time of 30 seconds exceeded in .php > on line 130 > > Has somebody seen something like this or has an idea what's going on there? When I get this error it is often because I found myself running into an infinite loop someplace

Re: [PHP] [NEWBIE] PEAR::Mail Help Please

2005-02-21 Thread Jason Barnett
Jay Blanchard wrote: > [snip] > Hello all. I am new to using PEAR, but not so much to PHP. I was > looking > for a little help. > [/snip] > > Have you tried a PEAR mailing list? > http://pear.php.net/support/lists.php Agreed... some of us on this list use PEAR, but PEAR developers will often wa

[PHP] Re: cannot remove cookies

2005-02-22 Thread Jason Barnett
Bruno Santos wrote: > Hello. > > I'm using 2 cookies to control some user environmente. > every time the user logs in, the cookie is set, but when i try to change > the value of that cookie, > deleting it firts and then setting a new one with another value, when i > print the value of that cookie

Re: [PHP] Writing PNG Images to File from Command Line

2005-02-22 Thread Jason Barnett
Richard Lynch wrote: ... Good stuff ... > All that said: > If you only have a handful of color coded flags, and you are using GD to > re-draw an image every time, that's kinda silly... > > Perhaps I'm missing something here, but: > > Just use your query to decide which flag to *USE* instead of dr

[PHP] Re: uploading > remote server

2005-02-22 Thread Jason Barnett
Sebastian wrote: > i have some php forms which uploads files/images and i would like to know if > its possible to upload them to a remote server instead, if so, how? > > cheers Yes it is possible. This is a bit of reading, but it is exactly what you need to read: http://php.net/manual/en/featur

[PHP] Re: [Pear] go-pear.php

2005-02-23 Thread Jason Barnett
James Nunnerley wrote: > Hi, > > > > I'm having two problems: > > > > Firstly, the new update of go-pear.php I believe is not working. Does > anyone know when a new "fixed" one is being released? > Not sure. What error are you getting? It is possible that it is trying to look for the P

[PHP] Re: Bug or undocumented functionality of unset()?

2005-02-23 Thread Jason Barnett
[EMAIL PROTECTED] wrote: > Hi All, > > Does unset() create a copy of the array and then overwrite the > original > somehow > destroying the reference? ... > --- > $stuff = array(array('one','two'), > array('one','two'), > array('three','four'), > arra

[PHP] Re: Server includes and Absolute URL

2005-02-24 Thread Jason Barnett
Jacques wrote: > Can make use of an absolute URL when using require() or require_once()? > Yes, as long as you have allow_url_fopen = 1 in your php.ini > Regards > > Jacques -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.

[PHP] Re: Problem with XML

2005-02-24 Thread Jason Barnett
Juan Antonio Garrido wrote: > Hi everybody > > What functions should be use for XML in PHP 4? I've tried with DOM Functions > but it appears an error "not class", DOM-XML Functions(experimental) don't > work well. > > Thank you... You want the xml_* functions. You start out with xml_parser_c

Re: Fwd: [PHP] Word file to PDF

2005-02-24 Thread Jason Barnett
Rory Browne wrote: > Sorry - forgot to cc this to the list. > > [off-topic] Any idea if there is any way to set up gmail so that it > automaticly replys to the list. > > -- Forwarded message -- > From: Rory Browne <[EMAIL PROTECTED]> > Date: Thu, 24 Feb 2005 13:12:15 + > Subj

Re: [PHP] Hi ALL

2005-02-25 Thread Jason Barnett
Chris Shiflett wrote: > --- Jochem Maas <[EMAIL PROTECTED]> wrote: > >> >>1. total number of posts >>2. highest average no. of posts/week >>3. longest post >>4. total no. of words written >>5. highest average no. of words/post > > > Richard certainly contributes a lot, and I think he's in the to

Re: [PHP] PHP slowness

2005-02-25 Thread Jason Barnett
Gerard wrote: > Hi Brent, > >>I noticed you have your error_reporting level set really high (2039), >>which is pretty close to everything. That may be fine on a development >>server, but I wouldn't set it that high on a production server. I'd be >>curious what you log looks like. Perhaps this is

[PHP] Re: what does this mean?

2005-02-25 Thread Jason Barnett
Diana Castillo wrote: > on which page of php.net can I find out what this code does? > $a = $b? $a :"dian"; This is the "tertiary operator". It's a shorthand version of -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.co

[PHP] Re: What's up with the list?

2005-02-25 Thread Jason Barnett
John Nichel wrote: > Haven't gotten anything from the list since yesterday...is it me, or is > it the list. Fix it Jay!!! ;) > Sorry, I had to give the server a good kick, then once more for good measure. Nothing like a swift reboot ;) -- Teach a man to fish... NEW? | http://www.catb.org

[PHP] Re: Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Jason Barnett
Lef1 wrote: > Hi, > I am in desperate need of some help in calling a vbscript file from a php > file. A vbscript file? Do you mean you want PHP to send vbscript to the web browser? If that's the case then just echo the vbscript in some script tags. Or did you mean that you were hoping to run

[PHP] Re: [NEWBIE] How to allow for tags but no others?

2005-02-25 Thread Jason Barnett
The solution for this problem (doing it in the matter that you are suggesting) is certainly going to involve preg_replace(). However, this will require you to match only the tags you want to let through (which is always dangerous) and then strip out all of the rest of them. This can be very trick

Re: [PHP] what does this mean?

2005-02-25 Thread Jason Barnett
Leif Gregory wrote: > Hello Diana, > > Friday, February 25, 2005, 7:07:29 AM, you wrote: > D> on which page of php.net can I find out what this code does? > D> $a = $b? $a :"dian"; > > > It's called a ternary operator, basically an if-else statement. Note to self: write "ternary" on the bl

[PHP] Re: Like ternary but without the else.

2005-02-25 Thread Jason Barnett
Chris W. Parker wrote: > Hello, > > I couldn't find this anywhere on google or PHP's site but I'm pretty > sure there's an answer to it. > > How can I turn the following into something that resembles the ternary > operator? > > > if($something) > { > $this = $that; > } > > ?> > $t

[PHP] Re: Authentication fails

2005-03-01 Thread Jason Barnett
John Swartzentruber wrote: > Somehow my PHP 5.0.3 or something is configured incorrectly. When I try > to get past an authentication input, nothing happens. For example, I > have phpMyAdmin configured now to use mysqli, but when I enter the > username and password, the screen doesn't change. In pre

Re: [PHP] Program flow?

2005-03-01 Thread Jason Barnett
Richard Davey wrote: > Hello Rory, > > Tuesday, March 1, 2005, 4:58:20 PM, you wrote: > > rw> Hi I have a one simple question that I need to sort out before I > rw> continue writing any PHP scripts. Every time I call a script are the > rw> variables reset to the default values? > > Yes this is n

[PHP] Re: Current dilema for Novice

2005-03-01 Thread Jason Barnett
I know that you were posting a lot of detail because you wanted to make it clear what you were doing, but next time you might try to be a little more succinct in your description. Give us the most relevant facts... not a flame, just some friendly advice to get you (more) answers to your question.

[PHP] Re: Self calling PHP

2005-03-01 Thread Jason Barnett
Phillip Armitage wrote: > I'm working on an ftp login form using PHP. I'm trying to set it up so that > the PHP file is self calling. eg. file FTP.PHP displays an html form in > which the form action setting calls FTP.PHP. Essentially the program does > the following: > ... The $_REQUEST array is

  1   2   3   4   5   6   7   >