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
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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] $_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] 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
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] $_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] 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] 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] 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] 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] 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] 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] [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] 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] 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-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] 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: 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] 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: [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] $_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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] $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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] '

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] 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] 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] 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] resize an image with php

2004-02-20 Thread Adam Voigt
> Thanks ! -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] delete a function

2004-02-21 Thread Adam Bregenzer
bed is, but it sounds to me like you 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/ --

Re: [PHP] running php through cron

2004-02-21 Thread Adam Bregenzer
e through php) and write to the file and not let anyone else (besides root 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 interprete

Re: [PHP] Padding the decimals

2004-02-22 Thread Adam Bregenzer
4.30 > etc. I assume you mean adding zeros to the end 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]

Re: [PHP] Can anyone tell me why this code doesn't insert anything?

2004-02-23 Thread Adam Voigt
st_name','email','session','last_name') > VALUES > ('0.0.0.0','0.00',NOW(),'Bob','[EMAIL PROTECTED]','12345','Smith')"; > $result = mysql_query($query); -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E-Commerce Advice? Squirrelcart?

2004-02-23 Thread Adam Voigt
.squirrelcart.com/ looks to be pretty good for a shopping cart- > does anyone have any experience with this or others? > > Also, what suggestions do ya'll have for a payment gateway? > > > thanks > matt -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Php and GpG

2004-02-23 Thread Adam Bregenzer
mething from 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: ht

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

2004-02-23 Thread Adam Bregenzer
ling. Here, here, PGP adds more benefits as long as you don't leak your private key. 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 [E

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Voigt
result and determine if the file is binary? > > I'd like to be able to block binaries from being processed without > > having to try to think of all the possible binary extensions and omit > > them with a function that looks for these extensions. > > > > Nick >

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Voigt
gt; fopen() for that matter, is binary or not and going with that result is > the elegant solution to this problem. There has to be a way to do it. > > Nick > > Adam Voigt wrote: > > >Couldn't you just check the extension on the file? > > > > > >On M

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Bregenzer
with that doesn't rely on mime types or file extensions, both of which can 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
ough bugs are fixed and enough 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 u

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

2004-02-23 Thread Adam Bregenzer
lowing elements > the :date: in the format mmddmmdd > 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.

Re: [PHP] delete a function

2004-02-23 Thread Adam Bregenzer
implementation will be somewhat unique. Also, if a user changes state you will have to issue an HTTP redirect to reload the correct functions. Fortunately, I would guess that would rarely, if ever, happen in the middle of a script's execution. In looking for a non-OO solution, my opinion is

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

2004-02-23 Thread Adam Voigt
2-23 at 09:53, [EMAIL PROTECTED] wrote: > Howdy -- > Would someone point or provide me with an example of PHP + libMysqld > (Embedded MySQL server)? > > My problem is my churchs web site doesn't provide a MySQL database as > a default package (add $15.95/mo)for a MySQ

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

2004-02-23 Thread Adam Voigt
-02-23 at 11:53, [EMAIL PROTECTED] wrote: > Adam Voigt wrote: > > Check these guys out: > > > > http://spenix.com/WebHostingPlans.aspx > > > > Very cheap, very reliable, great features, and support is second to none > > I've ever experienced, and before

Re: [PHP] Constants in class definitions

2004-02-23 Thread Adam Bregenzer
etely > correct. I also use MMCache, mind sharing 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
been started. If I touch index.php > then the problem disappears, 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]

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 "".district[0]." > } Are you doing this in PHP? I do not think you

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Adam Voigt
http://www.freetds.org Enjoy. On Tue, 2004-02-24 at 08:53, [EMAIL PROTECTED] wrote: > Hello, > > How can we connect to MS-SQL Server ? > What tools ( where can we download ) must be installed ? > > Thank a lots. > > PS : the php programs under Linux / Unix... > &

Re: [PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Adam Voigt
or PHP to be able to manipulate the files therein. > > Maybe this is easy, but I can't see how to do it!! Any help appreciated. > > Thanks!! -- Adam Voigt [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
uery. (ie. you 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.breg

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

2004-02-24 Thread Adam Bregenzer
gt; > > The output I am receiving is: > 0: Array > Recipient = Array > > Obviously, I want to see the output of each array element as well as the > final contents of $form['recipient']. You need to look up how to use explode[1], my guess is you don't want

Re: [PHP] Parsing large log files with PHP

2004-02-24 Thread Adam Bregenzer
ound for you. Regards, Adam [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 (h

Re: [PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Adam Voigt
angerously - it can be difficult to write robust code that will recover > from a problem that way. > > Adam Voigt wrote: > > > Why can't you just mount the share on-the-fly when they enter the > > username and pass? > > > > > > On Tue, 2004-02-

Re: [PHP] running php3 files

2004-02-24 Thread Adam Voigt
ill he have to make the changes so that his scripts will run if its > .php or .php3 ? > > Thanks, > -Ryan -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date functions

2004-02-24 Thread Adam Bregenzer
above. If you are using MySQL and the date field 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/

Re: [PHP] Re: Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Adam Voigt
egards, > Manuel Lemos > > PHP Classes - Free ready to use OOP components written in PHP > http://www.phpclasses.org/ > > PHP Reviews - Reviews of PHP books and other products > http://www.phpclasses.org/reviews/ > > Metastorage - Data object relational mapping layer gener

Re: [PHP] Make sure folder is writable

2004-02-24 Thread Adam Bregenzer
> can copy the files 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 Gen

Re: [PHP] Sequential Random Character Generator

2004-02-25 Thread Adam Bregenzer
d[1] and echo your selection. If you 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 [E

RE: [PHP] Sequential Random Character Generator

2004-02-25 Thread Adam Bregenzer
see here a request for someone to design your 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] h

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

2004-02-25 Thread Adam Bregenzer
nd can not control PHP's settings search the archives 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.ph

Re: [PHP] Re: Image resize on upload

2004-02-26 Thread Adam Bregenzer
e load. [1] http://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: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 23:02, [EMAIL PROTECTED] wrote: > Adam, > Thanks for your repsone(s) now back the root of the problem. > As stated above I need to be able to run the database from with the home > direcory/document root? I hesitate to answer this so as to not create a naming con

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

2004-02-26 Thread Adam Bregenzer
good_name}; done This will find any characters 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

[PHP] Importing PDF Text

2004-02-27 Thread Adam Voigt
I need the ability to take a PDF and pull the text out of it, I looked at the manual for the PDFlib extension, but didn't see anything like this. Anyone know a way to do this? -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Importing PDF Text

2004-02-27 Thread Adam Voigt
Well yes, I know there are utilities, on the Linux server I can just use the "pdftotext" program, but I'd like to make it platform-independent instead of relying on outside utilites. On Fri, 2004-02-27 at 11:43, Stuart wrote: > Adam Voigt wrote: > > >I need the abi

Re: [PHP] Updating content on the line. (cli)

2004-03-03 Thread Adam Voigt
ns of console applications. Like some "please wait" > thing that changes from - to \, |, /, and so on (looks like a rotating > line). > > Ideas? > > //Simon -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    8   9   10   11   12   13   14   15   >