Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Adam Bregenzer
); //bool(true) var_dump(0 === 0);//bool(false) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting the line number

2004-06-07 Thread Adam Bregenzer
the parent script to the subroutine. I know that I can get the line number of the current script, but that doesn't tell me where the function was called from... debug_backtrace[1] should get you everything you want and then some. [1] http://www.php.net/debug_backtrace -- Adam Bregenzer [EMAIL

Re: [PHP] row colours

2004-06-05 Thread Adam Bregenzer
you could do: print tr bgcolor='#ff'td$item_1/tdtd$item_2/tdtd$item_4/tdtdcenter$item_5/center/td/tr\n; if ($i % 8 == 7) { print trtd colspan='4'/td/tr\n; } which would keep them the same color and add a blank row after every eighth; again adjust $i as necessary to fit. -- Adam Bregenzer [EMAIL

Re: [PHP] Class variable unexpected behavior

2004-05-15 Thread Adam Bregenzer
-- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List() help

2004-05-09 Thread Adam Bregenzer
only want $d to be an array when there is more than one entry left do this instead: if (count($MyArray) == 1) { $d = array_shift($MyArray); } else { $d = $MyArray; } [1] http://www.php.net/array_shift -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List

Re: [PHP] Re: Image resize on upload

2004-02-26 Thread Adam Bregenzer
://www.imagemagick.org/ [2] http://www.imagemagick.org/www/convert.html [3] http://www.php.net/exec -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: renamed images are now corrupt...

2004-02-26 Thread Adam Bregenzer
followed by a '.' and any upper or lowercase letter. This should grab everything except for the newline at the end and rename the file accordingly. Since I don't have any files with newlines in their names I didn't test it so it may need a bit of tweaking. Regards, Adam -- Adam Bregenzer [EMAIL

Re: [PHP] Sequential Random Character Generator

2004-02-25 Thread Adam Bregenzer
have PHP 4.2.0 you will also need to use mt_srand[2]. $field = array('a','b'); $field_max = count($field) - 1; echo $field[mt_rand(0, $field_max)]; [1] http://www.php.net/mt_rand [2] http://www.php.net/mt_srand -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http

RE: [PHP] Sequential Random Character Generator

2004-02-25 Thread Adam Bregenzer
application for you. -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function.date.php

2004-02-25 Thread Adam Bregenzer
On Wed, 2004-02-25 at 15:58, John Taylor-Johnston wrote: I want to feed in 2003-02-28 and extract February 28, 2003. I can substr it out ... Use strtotime[1] then date[2]. [1] http://www.php.net/strtotime [2] http://www.php.net/date -- Adam Bregenzer [EMAIL PROTECTED] http

Re: [PHP] apostrophe ( ' ) on a form, adding \; How can i fix this?

2004-02-25 Thread Adam Bregenzer
for code based solutions to this. Welcome to the most annoying PHP feature ever. :) Regards, Adam [1] http://www.php.net/ref.info#ini.magic-quotes-gpc -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: regexp appears to be faulty!?

2004-02-24 Thread Adam Bregenzer
want to find the third fieldset child of the body element that has an attribute set to foo) As a side note, that article has a link to a similar one that lists a regexp based XML parser as the only PHP solution. :) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General

Re: [PHP] What's wrong with this code please?

2004-02-24 Thread Adam Bregenzer
of $form['recipient']. You need to look up how to use explode[1], my guess is you don't want to use it at all here. In fact, implode[2] may be exactly what you are looking for. Regards, Adam [1] http://www.php.net/explode [2] http://www.php.net/implode -- Adam Bregenzer [EMAIL PROTECTED] http

Re: [PHP] Parsing large log files with PHP

2004-02-24 Thread Adam Bregenzer
[1] http://www.php.net/file [2] http://www.php.net/fopen [3] http://www.php.net/fgets [4] http://www.php.net/fread [5] http://www.php.net/fclose [6] http://www.php.net/stream -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] date functions

2004-02-24 Thread Adam Bregenzer
is one of the date formats (ie. not char/varchar) take a look at MySQL's date formatting functions[1]. Regards, Adam [1] http://www.mysql.com/doc/en/Date_and_time_functions.html -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Make sure folder is writable

2004-02-24 Thread Adam Bregenzer
to the new folder. Anyone got any ideas? How about is_writable[1]? Just to throw it out there. My favorite, non-portable, hackish solution is `touch $dir`; :) [1] http://www.php.net/is_writable -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http

Re: [PHP] Php and GpG

2004-02-23 Thread Adam Bregenzer
the exec family[2], or backticks[3]. [1] http://www.php.net/popen [2] http://www.php.net/ref.exec [3] http://www.php.net/operators.execution -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Possible to write CRC/MD5 to the file?

2004-02-23 Thread Adam Bregenzer
. You could always try and wrap everything as a mime message or zip the two together. Also, place a link to the pgp signature in the README file. Not that anyone ever reads those though. ;) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Bregenzer
easily be inaccurate. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5

2004-02-23 Thread Adam Bregenzer
people do not complain about it not working right when they use it. If you want to shorten the time to release you can always go and fix some bugs. :) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] preg guru again.....

2004-02-23 Thread Adam Bregenzer
The expression I'm using is (:16[0-9]:) ie matching the : with 16 digits : here's a start: /:(\d+):([EMAIL PROTECTED])@([\w=+\/:\\%-]+)/i -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] delete a function

2004-02-23 Thread Adam Bregenzer
to implement and documentation/code reading will be easier as time passes. Having multiple functions with the same name performing different tasks presents a rather steep learning curve to someone who has to maintain your code. Regards, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net

Re: [PHP] Constants in class definitions

2004-02-23 Thread Adam Bregenzer
the problems you are experiencing? -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Constants in class definitions

2004-02-23 Thread Adam Bregenzer
, but then if I restart apache the problem reappears. If you want to see the output of the script go to http://outreach.net.nz/test/ Wow, looks like a bug to me, good find! -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] enum('part1','...')

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 22:57, John Taylor-Johnston wrote: district enum('part1','part2','part3','part4') while (district??) { echo a href=\page.htm#.district[0].\.district[0]./a } Are you doing this in PHP? I do not think you can even create enums in PHP. -- Adam Bregenzer [EMAIL

Re: [PHP] Re: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread Adam Bregenzer
am not sure which list you are checking. Regards, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Padding the decimals

2004-02-22 Thread Adam Bregenzer
for displaying, not for further calculation? Look at printf[1] and sprintf[2]. Here's an example: printf(%.3f, 4.1) // 4.100 [1] http://www.php.net/printf [2] http://www.php.net/sprintf -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http

Re: [PHP] delete a function

2004-02-21 Thread Adam Bregenzer
are trying to implement the factory pattern[1]. I would recommend looking into using classes in PHP and giving it a shot. http://www.phppatterns.com/index.php/article/articleview/49/1/1/ -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] running php through cron

2004-02-21 Thread Adam Bregenzer
of course) to do anything with it. Technically, if an executable can be read it can be executed. If it's a binary it can be copied by a user and the copy can be run, if it's a script it can be passed to an interpreter and run. Good Luck, Adam -- Adam Bregenzer [EMAIL PROTECTED] http

Re: [PHP] Split()

2004-02-17 Thread Adam Bregenzer
as $piece) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Split()

2004-02-17 Thread Adam Bregenzer
On Tue, 2004-02-17 at 11:02, Adam Bregenzer wrote: Try while(each($pieces)) or foreach($pieces as $piece) Brain to fingers problem: while($piece = each($pieces)) http://www.php.net/each http://www.php.net/foreach -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General

Re: [PHP] Re: Split()

2004-02-17 Thread Adam Bregenzer
['value'] to get its value. Another way to do this that would be closer to what foreach does would be: while (list($key, $singleauthor) = each($tempauthors)) This will assign the key to $key and the value you are looking for to $singleauthor. [1] http://www.php.net/each -- Adam Bregenzer [EMAIL

Re: [PHP] how to deal with http and https directory structures?

2004-02-17 Thread Adam Bregenzer
and identical directory trees up to date (if i chose to put the includes within each directory). I think this is the best solution, it is very similar to how I implement virtual hosting. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Split()

2004-02-17 Thread Adam Bregenzer
: $applePie = array(1,2,3,4,5,6,7,8); while ($pieceOfPie = array_shift($applePie)) { echo $pieceOfPie; // want some pie? } // Both of these are now true: $applePie == array(); $applePie != array(1,2,3,4,5,6,7,8); -Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net

Re: [PHP] Javascript array [] length is undefined when only single element

2004-02-17 Thread Adam Bregenzer
].checked) selectedAudits++; } else { if (myMultiSelect.checked) selectedAudits++; } -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 vs. PHP5 test case for objects question.....

2004-02-17 Thread Adam Bregenzer
benchmarks as I have time. Also, PHP 5 is still in Beta, and this is not even the latest version. Regards, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Split()

2004-02-17 Thread Adam Bregenzer
. a little optimalization thrown in). besides which how many times have we in our PHP careers not created arrays just to loop over them once, outputting each item? Oh yeah, that's one side effect of PHP, you completely forget about: memory and garbage collection concerns. -- Adam Bregenzer

Re: [PHP] Need help with output from form to .txt file

2004-02-15 Thread Adam Bregenzer
] http://us4.php.net/ref.info#ini.magic-quotes-gpc [2] http://marc.theaimsgroup.com/?l=php-generalm=107669185927933w=2 -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5: ext/dom - set namespace of node manually

2004-02-15 Thread Adam Bregenzer
-appendChild($domnamspacenode_object); ... I am not sure if PHP 5 has many changes from PHP 4, however have you tried calling set_namespace[1]? $node-set_namespace('http://www.somedomain.de/'); [1] http://www.php.net/domnode-set-namespace -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net

Re: [PHP] $REMOTE_HOST in email subject

2004-02-15 Thread Adam Bregenzer
the IP from: $_SERVER['REMOTE_ADDR'] -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php as cgi with static libraries?

2004-02-15 Thread Adam Bregenzer
to build php yourself, take a look at configure --help: $ ./configure --help | grep static --enable-static[=PKGS] build static libraries [default=yes] -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP and Word...

2004-02-15 Thread Adam Bregenzer
a decent job of keeping formatting. passthru(WV_HTML_PATH . ' ' . FILES_HOME_DIR . $file . ' -'); [1] http://wvware.sourceforge.net/ [2] http://us4.php.net/shell_exec -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] General Function usage question (simple)

2004-02-14 Thread Adam Bregenzer
= doubleNumber(10); echo $value . \n; // Output: 20 Good Luck, Adam [1] http://www.php.net/functions [2] http://www.php.net/functions.arguments [3] http://us2.php.net/functions.returning-values -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP5: Problem concerning multiple inheritance / interfaces

2004-02-14 Thread Adam Bregenzer
myself I would appreciate any findings you have back here. Hope this helps, Adam [1] http://www.php.net/ref.objaggregation [2] http://sitten-polizei.de/php/reflection_api/docs/language.reflection.html -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List

Re: [PHP] Using exceptions to write more perfect software ...

2004-02-14 Thread Adam Bregenzer
be interested. I have only been playing around with PHP 5 since it is still in beta, I haven't tried converting an entire application over to the new class syntax yet. Regards, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Error with ftp_get()

2004-02-14 Thread Adam Bregenzer
ftp client and see what happens. If you can post the code you are using we may be able to help better. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include result from script in midle of other script

2004-02-14 Thread Adam Bregenzer
would want to set the variables directly like so: if ($_SESSION['valores_relativos']) { echo 'img src=./5_grafico_total.php?aVar=aValue'; } else { $aVar = 'aValue'; include (./5_grafico_total.php); } -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List

Re: [PHP] $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] is still set

2004-02-13 Thread Adam Bregenzer
()) { remove_magic_quotes('_GET'); remove_magic_quotes('_POST'); remove_magic_quotes('_COOKIE'); ini_set('magic_quotes_gpc',0); } set_magic_quotes_runtime(0); } -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP

Re: [PHP] Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] isstill set

2004-02-13 Thread Adam Bregenzer
array by assigning the stripped output to $data2 and returning $data2, maybe that will solve it. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and Kerberos5 Single Sign-on

2004-02-13 Thread Adam Bregenzer
do not think PHP supports kerberos natively, though you could hack together an extension for it if you were motivated enough. :) [1] http://www.php.net/ldap [2] http://modauthkerb.sourceforge.net/ [3] http://www.math.ohio-state.edu/~ccunning/pam_auth/ -- Adam Bregenzer [EMAIL PROTECTED] http

Re: [PHP] preg guru question

2004-02-13 Thread Adam Bregenzer
are looking to do. Are you looking for a regexp? '/img\s+src=([\'])([^\1]+)\1\s*\/?\s*/i' -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cli input and screen question(s)

2004-02-13 Thread Adam Bregenzer
. It does require a decent terminal interface but that should not be a problem. Also readline[2] may help you with reading input. [1] http://www.php.net/ncurses [2] http://www.php.net/readline -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http

Re: [PHP] Re: preg guru question

2004-02-13 Thread Adam Bregenzer
again? -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session, loging users in.

2004-02-13 Thread Adam Bregenzer
sequence. This acts like an initialization vector does in cryptography. It is always a random sequence and never contains any identifying information about the user. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
use of the $_SESSION variable in page2.php. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
session. When a user requests a page their session id will be used to set the correct values in the $_SESSION array. For example, when ronald loads the page $_SESSION['username'] will be ronald. When nhadie loads the page the $_SESSION['username'] variable will be nahdie. -- Adam Bregenzer

Re: [PHP] Re: Linked Table Structure

2004-02-10 Thread Adam Bregenzer
list we can provide a different answer. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Adam Bregenzer
do most people consider the right way ? I always use parens on function calls, I think it is more readable. Also, some syntax highlighters look for it. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] HELP: Nested include(...)'s take relative paths

2004-02-10 Thread Adam Bregenzer
different coding styles increases or decreases readability, however I think what really improves readability is commenting, not coding style. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Adam Bregenzer
, what if I use print('')? :P Actually, I use echo(''), even though using single quotes doesn't give me better performance I like to separate my strings and variables. I enjoy using echo, it's like a rebellion against printf. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP

Re: [PHP] julian date

2004-02-09 Thread Adam Bregenzer
Julian date ) There are functions available that work with Julian dates, check the calender section: http://www.php.net/manual/en/ref.calendar.php -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] ftell ? fseek ? help, please

2004-02-09 Thread Adam Bregenzer
'); $header_data = substr($data, 0, 224); $data = substr($data, 223); } -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] triple DES encryption

2004-02-09 Thread Adam Bregenzer
encryption methods. In the manual it is referred to as 3DES. [1] http://www.php.net/mcrypt -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can PHP redirects be detected?

2004-02-09 Thread Adam Bregenzer
. To have the redirected URL remembered you need to pass a 301 Permanent Redirect status instead. [1] I can not find this anywhere after a short search on Google, it could be incorrect. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] HELP: Detecting the name of the file a function is being called from

2004-02-09 Thread Adam Bregenzer
/language.reflection.html -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [PHP5] Using exceptions to write more perfect software, but ...

2004-02-09 Thread Adam Bregenzer
is still trying to sort itself out. Being a 'third party' project it is too much for one person but would be quite useful. Maybe when php5 becomes more popular we can all band together and standardize this. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing

Re: [PHP] SESSION VARIABLES

2004-02-09 Thread Adam Bregenzer
#reserved.variables.session [2] http://www.php.net/session_register -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Can I do this?

2004-02-08 Thread Adam Bregenzer
code. You would probably be better off having a local copy of that file. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Revised: RE: [PHP] Re: Can I do this?

2004-02-08 Thread Adam Bregenzer
of including a file would be necessary. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Revised: RE: [PHP] Re: Can I do this?

2004-02-08 Thread Adam Bregenzer
outside the web path. An overflow or some other bug may be found that would bypass processing of .php files (or a different bug could be exploited to write a .htaccess file in that directory). If you have the option to move includes to a different directory it is more secure. -- Adam Bregenzer [EMAIL

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Adam Bregenzer
] but this is my own server at home. I'm quite unfamiliar with forms (and new to PHP for that matter). That looks like an access error from your web server. Make sure the directory this file is in is accessible from the web. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP

Re: [PHP] mcrypt don't work.

2004-02-08 Thread Adam Bregenzer
. [1] http://www.php.net/mcrypt -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Adam Bregenzer
On Sun, 2004-02-08 at 13:32, Paul Furman wrote: No, it's not accessible from the web, it's in my protected php_library outside public_html. Can't I execute a hidden script with a form? no Should I make a little php action file in public_html that includes the actual file? yes -- Adam

Re: [PHP] $_POST trouble with html form

2004-02-08 Thread Adam Bregenzer
: form.html: form method=post action=process.php input type=text name=comment / /form process.php: ?php echo $_POST['comment']; ? -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Revised: RE: [PHP] Re: Can I do this?

2004-02-08 Thread Adam Bregenzer
and where it comes from. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How can I run php 5 beta 3 on windows?

2004-02-07 Thread Adam Bregenzer
On Fri, 2004-02-06 at 18:47, omer katz wrote: Help!!! Omer Katz [EMAIL PROTECTED] :[EMAIL PROTECTED] Can I update PHPTraid's php files? I'm not sure I understand what you are having a problem with... -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing

Re: [PHP] explode() an array and grep out a string

2004-02-07 Thread Adam Bregenzer
= 'parent_name'; $ldap_results = array('account1','account2','parent_name'); $results = array_diff($ldap_results, array($parent_account)); $results will now have only account1 and account2. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] include_once() isnt!

2004-02-07 Thread Adam Bregenzer
The World project: RULE_THE_WORLD_FOO_BAR The config include in my Rule The World project: RULE_THE_WORLD_CONFIG_INC -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] refresh page (might be 0t)

2004-02-07 Thread Adam Bregenzer
your pages. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to conver a string to float

2004-02-07 Thread Adam Bregenzer
/manual/en/function.bcmul.php -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CVS style project system

2004-02-06 Thread Adam Bregenzer
://www.webdav.org/ -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting classname of current class

2004-02-06 Thread Adam Bregenzer
: __CLASS__); } } If you find a better solution *please* let me know. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pspell Functions!! problem I explain in English

2004-02-06 Thread Adam Bregenzer
http://www.php.net/manual/es/configuration.directives.php#ini.extension Regards, Adam [1] http://www.php.net/manual/en/ref.pspell.php [2] http://www.php.net/manual/en/configuration.directives.php#ini.extension -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing

Re: [PHP] Undefined Index Errors

2004-02-06 Thread Adam Bregenzer
functions then you could move these lines to the top of their respective functions. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Adam Bregenzer
://www.derickrethans.nl/vld.php -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5: __call() implementation

2004-02-05 Thread Adam Bregenzer
... further, i think i'm getting problems with objects passed through the __call() method?! You probably want to check out this for working with __call: http://www.php.net/overload And this for not having to use eval: http://www.php.net/call_user_func_array -- Adam Bregenzer [EMAIL PROTECTED

[PHP] php-general list question - [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-02-05 Thread Adam Bregenzer
] Received: (qmail 67259 invoked by uid 1010); 2 Feb 2004 20:34:44 - Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] From: Adam Bregenzer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Content-Type: text/plain Message-Id: [EMAIL PROTECTED] Mime-Version: 1.0 X-Mailer: Ximian Evolution

Re: [PHP] php-general list question - [Fwd: Delivery Report (failure) forphp-general@lists.php.net]

2004-02-05 Thread Adam Bregenzer
I'll update this thread. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running Apache in one machine and php in another

2004-02-05 Thread Adam Bregenzer
on apache off the secondary server as your integration. You could use ssh to access a cli php script on the secondary server through a php/cgi/etc. gateway on your public web server as well. Good luck, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List

RE: [PHP] php-general list question - [Fwd: Delivery Report (failure) forphp-general@lists.php.net]

2004-02-05 Thread Adam Bregenzer
these messages unique is that they claim the list's posting address was what failed. I don't know why the list forwards e-mails so that bounces come back to me instead of the list itself. Anyways, this list is not for discussion of list behaviorl /me stretches tape across his mou..*grunt* -- Adam

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload

2004-02-04 Thread Adam Bregenzer
receives the content PHP is out of the picture until the next reload. You have to use javascript or some other client side language to change anything on a page once it is loaded in the browser. The referred to post describes this in detail. -- Adam Bregenzer [EMAIL PROTECTED] http

Re: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Adam Bregenzer
to the line above between the and () characters, but that didn't work along with several other iterations of attempts to get it to work. Does anyone have any ideas? I am stuck. Try adding \\[\\] -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List

Re: [PHP] Extract of a Paragraph

2004-02-04 Thread Adam Bregenzer
('/^(\W*\w+){50}/', $paragraph, $extract); $extract = array_shift($extract); -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Adam Bregenzer
this: a\a\+\-\*\\a+\\-\\*\\a\\[\[\{\\{|\\| into this: a\\a\\+\\-\\*a+-*a[\\[\\{{|| which should back out nicely when handled by postgres. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session (maybe cookies)

2004-02-03 Thread Adam Bregenzer
-8859-1 /head body ?php session_start(); echo(session_id()); ? /body /html The session_start() function call needs to be at the top of the page, before you send any html to the browser. -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Problem setting include_path for virtual servers

2004-02-03 Thread Adam Bregenzer
: AllowOverride All for those directories in you apache config file. See the following for more information: Apache 2.x: http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride Apache 1.x: http://httpd.apache.org/docs/mod/core.html#allowoverride -- Adam Bregenzer [EMAIL PROTECTED] -- PHP

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Adam Bregenzer
to log-out and back in every 5 searches may be enough to convince them to pay you instead. Good Luck, Adam P.S. Should you find a 'magic' bullet to the web authentication problem please let all of us know! -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] Need to refine this:

2004-02-03 Thread Adam Bregenzer
/manual/en/control-structures.do.while.php -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular expression help?

2004-02-02 Thread Adam Bregenzer
is followed by a : and repreated in 6 blocks. That's a long expression, try: !preg_match('/^([0-9a-f]{2}($|:)){6}/i', $_POST['mac']); This pattern finds 6 matches of a number or letter (the /i means case-insensitive) followed by either a ':' or the end of the string. -- Adam Bregenzer [EMAIL

[PHP] Retrieving class names in a static method

2004-02-02 Thread Adam Bregenzer
in a static method. TIA, Adam -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >