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
filesystem as a database optimized for storing files. class new_wheel extends wheel class new_wheel Regards, Adam [1] http://viewcvs.sourceforge.net/ [2] http://cvsgrab.sourceforge.net/ [3] http://www.freebsd.org/projects/cvsweb.html [4] http://www.akhphd.au.dk/~bertho/cvsgraph/ [5] http

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
and usernames and passwords will most likely be available if you use web based authentication. Your best method would be to require the password be typed every time a page is viewed, which has its own set of problems. Hopefully this gives you something to think about. Regards, Adam [1] http

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] authentication using /etc/passwd

2004-02-05 Thread Adam Williams
Hi, is there a way to authenticate a username/password someone enters in a form with what is in /etc/passwd? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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
On Wed, 2004-02-04 at 16:35, Sam Masiello wrote: Thank you for the reply, Adam, but unfortunately it didn't work. Sorry bout that. Here's another shot at it. If I understand your goal correctly you want to escape the existing backslashes that proceed certain special characters (namely [:alpha

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

[PHP] authentication comparing to /etc/passwd

2004-02-03 Thread Adam Williams
Hi, is there a PHP function or some sort of way to have a user enter their username and password in a form, and compare the username and password and see if the username exists and the password is correct? basically I want to have a page where a person enters their username and password and if

Re: [PHP] Need to refine this:

2004-02-03 Thread Adam Bregenzer
header, afterwords things will continue as expected. If you do not want to print out the district info the first time the loop runs then you can set $mydata outside the loop, initialize the flag variable, then use a do..while[1] loop to process the rest of your data. -Adam [1] http://us2.php.net

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

Re: [PHP] Pulling unique data from database

2004-02-01 Thread Adam Bregenzer
/array_unique) to remove the dupes. -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do you guys do this?

2004-01-31 Thread Adam Bregenzer
, isn't is safer to just not worry about it and use unique ids instead? Why take the risk when you can use an autonumber from a database or md5(uniqid(rand(), true)), or even: time() . md5(uniqid(rand(), true)) if you want to be really paranoid? -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General

Re: [PHP] OOP methodology

2004-01-30 Thread Adam Bregenzer
iterators in the same HTMLGenerator instance, etc. Also, if the iterator is what is using the dbObj class (to iterate through the database data) then consider passing it to the iterator instead. Regards, Adam -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] session management

2004-01-29 Thread Adam Bregenzer
) $userBean = $_SESSION[user]; RTFM on sessions - http://www.php.net/session -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PCRE vs. POSIX-extended for regular expressions

2004-01-27 Thread Adam i Agnieszka Gasiorowski FNORD
Pablo Gosse wrote: Hi all. Quick quesiton about PCRE vs. POSIX-extended regular expressions. How much of a difference is there between these two types of regular expressions. I know I've read that PCRE is faster, but is it that much of a difference? PCRE are _way_ more advanced,

Re: [PHP] Error Reporting help

2004-01-18 Thread Adam i Agnieszka Gasiorowski FNORD
Chris Edwards wrote: [cut] For example if I code echo This is a syntax error because of the double quote start and the single quote end '; I just get a blank screen. I have 14 pages of PHP settings printed out, so for any kind person that can help, I can respond with their

Re: [PHP] Readfile, DAP and 3 questions

2004-01-06 Thread Adam i Agnieszka Gasiorowski FNORD
Ryan A wrote: Opera version 6.5 and 7... I already had that set. Try asking again on news:opera.general (if your server does not carry this newsgroup, try news.opera.com). There are more Opera - knowleable people there :8]. I recall that there is a solution, I just cannot find

Re: [PHP] Readfile, DAP and 3 questions

2004-01-05 Thread Adam i Agnieszka Gasiorowski FNORD
Ryan A wrote: I am using the example from the online manual: http://de3.php.net/manual/en/function.readfile.php to read a file that is in a .htaccess protected folder and pop a download box to the client. Surprisingly, after screwing around with the example code for 2 mins I got it

Re: [PHP] Current Month Only ?

2004-01-05 Thread Adam i Agnieszka Gasiorowski FNORD
Dave Carrera wrote: How do I return from a MySql db, rows which only contain data for the CURRENT Month / Year ? So this month would currently return 5 days worth of data since it?s the 5th of Jan 2004. Thank you in advance for any examples, pointers or urls that may help with this.

Re: [PHP] problem compiling with openssl support

2003-12-17 Thread Adam Maas
CPPFLAGS properly or I need something else? hope someone can show me the way. Jon Your last flag is incorrect. --with-openssl needs to be /usr/local It's looking in /usr/include for evp.h Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] CVS on Windows

2003-12-16 Thread Adam i Agnieszka Gasiorowski FNORD
Chris W. Parker wrote: I will be interfacing with a CVS server not hosted on a Windows machine (it will be a bsd/*nix variant) and frankly I've never used it. What client do all you Windows people use? Also, how does it wotk in conjuction with your favorite editor? (Mine is HTML-Kit.) Is it

Re: [PHP] PHP and Palm Pilot interaction

2003-12-15 Thread Adam i Agnieszka Gasiorowski FNORD
Dave G wrote: [...] But on the other hand, I was wondering if it may be possible to make use of the simple text editor on the Palm, or perhaps the newer Excel editors (which I have not yet tried), to create a file of flat data which could then be uploaded and interpreted by

Re: [PHP] [Fwd: failure notice]

2003-12-10 Thread Adam i Agnieszka Gasiorowski FNORD
Sophie Mattoug wrote: Does someone know why do I receive such messages each time I post to the list ?!? [snipped] Is a Illuminati conspiracy! Argh! -- Seks, seksi, seksolatki... news:pl.soc.seks.moderowana http://hyperreal.info { iWanToDie } WiNoNa) (

Re: [PHP] Images in MySQL vs directory/file?

2003-12-10 Thread Adam i Agnieszka Gasiorowski FNORD
Derrick Fogle wrote: I've read that, given the choice, you should never store images in a database because it makes the database dog slow. But I've got some parameters and issues that might make a difference: We (at hyperreal.info) are storing all the images attached to articles in

[PHP] date conversion

2003-12-10 Thread Adam Williams
Hi, is there a PHP function that will convert MM/DD/ to MMDD? Also I will need to take into affect some people may put in M/D/ (some people may put in 1 instead of 01, 2 instead of 02, etc). Is there a way to do this? -- PHP General Mailing List (http://www.php.net/) To

[PHP] date convertion

2003-12-09 Thread Adam Williams
I have a script where a user inputs a date in MMDD format, and I need to convert it to month day, year. For example they will enter 20031209 and I need the script to return the date as December 09, 2003. They won't be entering today's date, so I can't use the timestamp with the date

Re: [PHP] Problems with imagick's imagick_readimage

2003-12-09 Thread Adam i Agnieszka Gasiorowski FNORD
John Clegg wrote: Problem: I am trying to get imagick to load an image from a URL. I can read from a file on the a file system no problem. Maybe you should simply circumvent the problem - download the file to your location into a temporary file, then act on this file locally...Use

Re: [PHP] converting string into array with regex

2003-12-06 Thread Adam i Agnieszka Gasiorowski FNORD
CPT John W. Holmes wrote: From: Adam i Agnieszka Gasiorowski FNORD [EMAIL PROTECTED] No, no spaces between letters (otherways it would be very easy, indeed). So there is no way to match the space between alphanumeric chars and split on it? I was trying to avoid the loop

[PHP] converting string into array with regex

2003-12-05 Thread Adam i Agnieszka Gasiorowski FNORD
How would you specify a regex to convert string into array using preg_split? Is there some symbol specyfying a place between letters ? s t r i n g = array('s', 't', 'r', 'i', 'n', 'g') ^ ^ ^ ^ ^ , like this... -- Seks, seksi, seksolatki...

Re: [PHP] converting string into array with regex

2003-12-05 Thread Adam i Agnieszka Gasiorowski FNORD
Wouter van Vliet wrote: On vrijdag 5 december 2003 12:23 Burhan Khalid told the butterflies: Adam i Agnieszka Gasiorowski FNORD wrote: How would you specify a regex to convert string into array using preg_split? Is there some symbol specyfying a place between letters

Re: [PHP] Re: for help :how to detect norton client through php socket

2003-12-04 Thread Adam i Agnieszka Gasiorowski FNORD
lph wrote: why ? I manager a network including 2000 hosts, and i want to post the hosts ip and department not installing the norton client on our web page so i wonder to how to detect detect whether norton antivirus client are installed on the hosts through php socket If

[PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Adam i Agnieszka Gasiorowski FNORD
I'm trying to develop a regex for matching with preg_match_all, I want to match such things like image name, image alt text, image title in construct like this: html... div class=class style=style img src=img=name alt=alt title=title / span class=class style=style text

Re: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Adam i Agnieszka Gasiorowski FNORD
Sophie Mattoug wrote: Adam i Agnieszka Gasiorowski FNORD wrote: I'm trying to develop a regex for matching with preg_match_all, I want to match such things like image name, image alt text, image title in construct like this: html... div class=class style=style img

Re: [PHP] regular expression, image, name, alt, title, preg_match_all

2003-12-01 Thread Adam i Agnieszka Gasiorowski FNORD
Sophie Mattoug wrote: Sophie Mattoug wrote: Adam i Agnieszka Gasiorowski FNORD wrote: I'm trying to develop a regex for matching with preg_match_all, I want to match such things like image name, image alt text, image title in construct like this: html... div class

Re: [PHP] Checking if a host is online

2003-11-29 Thread Adam Maas
(ping $host); Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking if a host is online

2003-11-29 Thread Adam Maas
Adam Maas wrote: Jason Giangrande wrote: I'm creating an application for an Intranet that, among other things, is supposed to check to see if particular hosts are online, and if so, what their IP address is. Anyone know how I can accomplish this? I tried using exec(host $host); (where $host

[PHP] PEAR::SOAP_Client, Google API

2003-11-28 Thread Adam i Agnieszka Gasiorowski FNORD
I'm trying to get ANYTHING out of google API (for now), but it doesn't let me. I use the SOAP_Client from PEAR project and the WDSL file you get from Google when you register your key for using with their API. When I give an action wrong parameters, everything works great,

Re: [PHP] Variable

2003-11-27 Thread Adam i Agnieszka Gasiorowski FNORD
Jorge Infante Osorio. wrote: I determinate the value of a variable in the botton of one page, and I want to use it in the middle of the page, inside a while structure, but I cantn, inside the while structure I calculate the value of this variable several times until I keep with the value

Re: [PHP] Regular Expression Help: genreate alphanumeric, 8 chars

2003-11-27 Thread Adam i Agnieszka Gasiorowski FNORD
David T-G wrote: Bogdan -- ...and then Bogdan Stancescu said... % % ...as in... % % ? % // Could've been done with ASCII sets, but this way % // you can easily tweak the eligible characters. % $eligible='abcdefghijklmnopqrstuvwxyz0123456789'; % $pwdLen=8; % $password='';

Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Adam i Agnieszka Gasiorowski FNORD
John W. Holmes wrote: Adam i Agnieszka Gasiorowski FNORD wrote: Thomas Svenson wrote: If you would stop using M$ Outlook and switch to a better mail client that supports mailing lists, your problem would be solved. I wouldn't mind that at all. What clients do you recommend

Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Adam i Agnieszka Gasiorowski FNORD
John W. Holmes wrote: Try the Opera's 7 M2 (build-in revolutionary email and news client). Is this an advertisement or does it actually have the features everyone is looking for? Oh, it does automatically sort all complying mailing lists, BTW, no need to create filters

Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread Adam i Agnieszka Gasiorowski FNORD
Thomas Svenson wrote: If you would stop using M$ Outlook and switch to a better mail client that supports mailing lists, your problem would be solved. I wouldn't mind that at all. What clients do you recommend for WindwosXP? I want a small client (note: I have to use Outlook for business

Re: [PHP] Removing security-problematic chars from strings

2003-11-21 Thread Adam i Agnieszka Gasiorowski FNORD
Troy S wrote: What is the best way to remove the characters from strings that may cause security problems? Namely, `, ', , , , \ and all non-printing strings. Did I miss any? Thanks. Do it the other way, allow only characters you know are safe and strip the rest. Use, for

[PHP] sorting an array of regexes

2003-11-18 Thread Adam i Agnieszka Gasiorowski FNORD
There is an array of regexes, for example $array = array('moon', '[wh]ood', '[^as]eed' ... (about 300 entries). I want to sort it comparing to the character lenght of a regex. For example [wh]ood is 4 characters, moon is 4 characters. There are only letters of the alphabet

Re: [PHP] sorting an array of regexes

2003-11-18 Thread Adam i Agnieszka Gasiorowski FNORD
Eugene Lee wrote: On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka Gasiorowski FNORD wrote: : : There is an array of regexes, for example : : $array = array('moon', '[wh]ood', '[^as]eed' ... : (about 300 entries). : : I want to sort it comparing

[PHP] syntax problem, constants in quoted strings

2003-11-18 Thread Adam i Agnieszka Gasiorowski FNORD
How do you insert a constant into a quoted string, do I need to use concatenation operator like this quoted string . CONSTANT . quoted string, or there is some way to insert it inline, like normal variables? -- Seks, seksi, seksolatki... news:pl.soc.seks.moderowana

Re: [PHP] sorting an array of regexes

2003-11-18 Thread Adam i Agnieszka Gasiorowski FNORD
Curt Zirzow wrote: * Thus wrote Adam i Agnieszka Gasiorowski FNORD ([EMAIL PROTECTED]): Eugene Lee wrote: On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka Gasiorowski FNORD wrote: : : There is an array of regexes, for example : : $array = array('moon

<    3   4   5   6   7   8   9   10   11   12   >