Re: [PHP] variables

2004-02-19 Thread Adam Voigt
ue = "\"; > > > Parse error: parse error, unexpected T_STRING > > Please help -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variables

2004-02-19 Thread Adam Voigt
e_oblique = "\"; > > > Parse error: parse error, unexpected T_STRING > > Please help -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace to replace /n with not having desired effect.

2004-02-19 Thread Adam Voigt
desire is this: > Blah blah blah blah. > Another line of blah blah blah. > A third line of blah blah blah. > > How do I correct my code to accomplish this? > > Thank you. > > -- > Yoroshiku! > Dave G [EMAIL PROTECTED] -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] '

2004-02-18 Thread Adam Voigt
$string = str_replace(''','\'',$string); You don't need to, but if you want to, thats how you could do it. Adam Voigt [EMAIL PROTECTED] On Wed, 2004-02-18 at 11:24, Diana Castillo wrote: > How do I convert ' to ' before displaying it in HTML

Re: [PHP] Split()

2004-02-17 Thread Adam Bregenzer
him some brainfood (i.e. 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 garba

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

2004-02-17 Thread Adam Bregenzer
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] Javascript array [] length is undefined when only single element

2004-02-17 Thread Adam Bregenzer
ltiSelect.length; i++) if (myMultiSelect[i].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] Split()

2004-02-17 Thread Adam Bregenzer
y pieces of pie left! IE: $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:

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

2004-02-17 Thread Adam Bregenzer
ut symlinks or keeping two separate > 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

Re: [PHP] Re: Split()

2004-02-17 Thread Adam Bregenzer
singleauthor as $singleauthor[0] or $singleauthor['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 $singleauth

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 Gene

Re: [PHP] Split()

2004-02-17 Thread Adam Bregenzer
2 Try while(each($pieces)) or foreach($pieces 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] PHP and Word...

2004-02-15 Thread Adam Bregenzer
is not perfect but does 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/ -- P

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

2004-02-15 Thread Adam Bregenzer
some cases. You will need 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/

Re: [PHP] $REMOTE_HOST in email subject

2004-02-15 Thread Adam Bregenzer
onfigured with HostnameLookups On this won't be set. You can get 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] PHP5: ext/dom - set namespace of node manually

2004-02-15 Thread Adam Bregenzer
ppend such > a node with $node->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

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

2004-02-15 Thread Adam Bregenzer
ing php.ini see my previous post[2]. [1] http://us4.php.net/ref.info#ini.magic-quotes-gpc [2] http://marc.theaimsgroup.com/?l=php-general&m=107669185927933&w=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] include result from script in midle of other script

2004-02-14 Thread Adam Bregenzer
want to set the variables directly like so: if ($_SESSION['valores_relativos']) { echo ''; } else { $aVar = 'aValue'; include ("./5_grafico_total.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] Error with ftp_get()

2004-02-14 Thread Adam Bregenzer
ry retrieving the file manually using your favorite 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] Using exceptions to write more perfect software ...

2004-02-14 Thread Adam Bregenzer
#x27;t a real problem (at the moment). Let me know how it goes. If you want to merge code and start an impromptu class repository for PHP 5 I would 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

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

2004-02-14 Thread Adam Bregenzer
e and rigidity to your code. Implement only the constraints you absolutely need. Hopefully this gives you something to think on. As I am still working out the possibilities in php myself I would appreciate any findings you have back here. Hope this helps, Adam [1] http://www.ph

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

2004-02-14 Thread Adam Bregenzer
number = $number * 2; return $number; } $value = 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://a

Re: [PHP] Session, loging users in.

2004-02-13 Thread Adam Bregenzer
al cookie that contains a random 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

Re: [PHP] Re: preg guru question

2004-02-13 Thread Adam Bregenzer
ould tell the regexp I posted was the only one to use a subpattern to match the first quote type used and then re-apply that after matching the file name: '//i' I am a bit of a regular expression fan and I would be interested in seeing another way to match without using subpatterns. Wh

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

2004-02-13 Thread Adam Bregenzer
a screen. 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 L

Re: [PHP] preg guru question

2004-02-13 Thread Adam Bregenzer
you are looking to do. Are you looking for a regexp? '//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] PHP and Kerberos5 Single Sign-on

2004-02-13 Thread Adam Bregenzer
erberos module for pam. I 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

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

2004-02-13 Thread Adam Bregenzer
hp? Try making a new 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] $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] is still set

2004-02-13 Thread Adam Bregenzer
// Defeat magic quotes function disable_magic_quotes() { if (get_magic_quotes_gpc()) { remove_magic_quotes('_GET'); remove_magic_quotes('_POST'); remove_magic_quotes('_COOKIE'); ini_set

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

2004-02-10 Thread Adam Bregenzer
use include(). > Unless you don't want to. :) Heh, 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

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

2004-02-10 Thread Adam Bregenzer
in place. The most important thing is to be consistent. Everybody has their own preference about how using 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.

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

2004-02-10 Thread Adam Bregenzer
xamples of both methods. So > which 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 L

Re: [PHP] Re: Linked Table Structure

2004-02-10 Thread Adam Bregenzer
parents. This is generally the way relational databases are structured. Maybe if you expand on what you mean by a linked 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: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
for the variables, one for each 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['usernam

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
g. It looks great, now you just need to clear up your 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-09 Thread Adam Bregenzer
ession_register[2]. [1] http://www.php.net/reserved.variables#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] [PHP5] Using exceptions to write more perfect software, but ...

2004-02-09 Thread Adam Bregenzer
he function calls in php. However I don't see php supporting it natively and PEAR 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

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

2004-02-09 Thread Adam Bregenzer
en-polizei.de/php/reflection_api/docs/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] Can PHP redirects be detected?

2004-02-09 Thread Adam Bregenzer
e the process will be associated with the content. 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

Re: [PHP] triple DES encryption

2004-02-09 Thread Adam Bregenzer
riple DES as well as stronger 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] ftell ? fseek ? help, please

2004-02-09 Thread Adam Bregenzer
') <= 1048576) { $data = file_get_contents('some_file'); $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] julian date

2004-02-09 Thread Adam Bregenzer
.. i think it is nice to have 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 uns

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

2004-02-08 Thread Adam Bregenzer
bottom line is be careful with what you are including 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] $_POST trouble with html form

2004-02-08 Thread Adam Bregenzer
at script you access the form variables by $_POST['variable_name']. IE: form.html: process.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] $_POST trouble with html form

2004-02-08 Thread Adam Bregenzer
es the actual > file? yes -- 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] mcrypt don't work.

2004-02-08 Thread Adam Bregenzer
eneric_deinit($mc_module); mcrypt_module_close($mc_module); Check the documentation[1] for more information on encryption keys and initialization vectors. [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
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 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
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 PROTECTED] http

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

2004-02-08 Thread Adam Bregenzer
n example where this method 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] Re: Can I do this?

2004-02-08 Thread Adam Bregenzer
be able to see your php 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] how to conver a string to float

2004-02-07 Thread Adam Bregenzer
.net/manual/en/function.gmp-mul.php http://www.php.net/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] refresh page (might be 0t)

2004-02-07 Thread Adam Bregenzer
ader('Pragma: no-cache'); } This should prevent proxies, browsers, etc from caching 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] include_once() isnt!

2004-02-07 Thread Adam Bregenzer
nclude 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] explode() an array and grep out a string

2004-02-07 Thread Adam Bregenzer
y this: $parent_account = '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

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] ht

Re: [PHP] Undefined Index Errors

2004-02-06 Thread Adam Bregenzer
should have a lot fewer. If by function you mean actual 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] Pspell Functions!! problem I explain in English

2004-02-06 Thread Adam Bregenzer
.net/manual/es/ref.pspell.php 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/ -

Re: [PHP] getting classname of current class

2004-02-06 Thread Adam Bregenzer
parent::someFunc(isset($class_name) ? $class_name : __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] CVS style project system

2004-02-06 Thread Adam Bregenzer
tabase is a bad thing. Think of your 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.akhp

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

2004-02-05 Thread Adam Bregenzer
hat makes 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 h

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

2004-02-05 Thread Adam Bregenzer
web server access the php running 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://

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

2004-02-05 Thread Adam Bregenzer
solution 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

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

2004-02-05 Thread Adam Bregenzer
t; Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Precedence: bulk > list-help: <mailto:[EMAIL PROTECTED]> > list-unsubscribe: <mailto:[EMAIL PROTECTED]> > list-post: <mailto:[EMAIL PROTECTED]> > Delivered-To: mailing list [EMAIL PROTECTED] > Received: (qm

[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

Re: [PHP] PHP5: __call() implementation

2004-02-05 Thread Adam Bregenzer
ot;SomeClass::$method([arguments])" method... > 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

Re: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Adam Bregenzer
server? SSL won't stop him/her 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

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 (n

Re: [PHP] Extract of a Paragraph

2004-02-04 Thread Adam Bregenzer
y(); preg_match('/^(\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
ring. I > tried just adding the [ and ] characters 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

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

2004-02-04 Thread Adam Bregenzer
rowsers. Once the browser 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 Bregen

Re: [PHP] Need to refine this:

2004-02-03 Thread Adam Bregenzer
as well as echo your district 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.

[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] Sessions vs. MySQL records?

2004-02-03 Thread Adam Bregenzer
aining 50 accounts on your site, and having 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

Re: [PHP] Problem setting include_path for virtual servers

2004-02-03 Thread Adam Bregenzer
les are under? Try setting: 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

Re: [PHP] Session (maybe cookies)

2004-02-03 Thread Adam Bregenzer
ion 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, visit: http://www.php.net/unsub.php

[PHP] Retrieving class names in a static method

2004-02-02 Thread Adam Bregenzer
se class that is inherited and used 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] Regular expression help?

2004-02-02 Thread Adam Bregenzer
racters 0-9a-fA-F > each block of 2 characters 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) foll

Re: [PHP] Pulling unique data from database

2004-02-01 Thread Adam Bregenzer
se array_unique (http://www.php.net/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
avy lifting involved in ensuring > uniqueness. Even though it seems incredibly unlikely, 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(), tr

Re: [PHP] OOP methodology

2004-01-30 Thread Adam Bregenzer
your HTMLGenerator (like generate HTML that is not tied to the iterator) as well as use different 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. Rega

Re: [PHP] session management

2004-01-29 Thread Adam Bregenzer
Bean; (some code later, on a different page) $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 adva

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 wit

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 fin

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 > t

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 >

Re: [PHP] problem compiling with openssl support

2003-12-17 Thread Adam Maas
e not set 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: htt

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.) I

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 b

[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 unsubscri

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 i

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) ( http://szat

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...Us

[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 funct

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 alphanum

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 the

[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... news:pl.soc.seks.moder

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

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

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 > > co

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