Re: [PHP] PHP 5.02 and Fedora Core 2 Installation question

2004-10-15 Thread Brad Pauly
am also trying to do this. Dovecot is the default IMAP server on FC2. I haven't had time to try it yet, but here is a link I found about compiling PHP with dovecot: http://www.dovecot.org/list/dovecot/2004-July/004282.html I should have a chance to try later today and will let you know

Re: [PHP] set multiple variables

2004-10-01 Thread Brad Pauly
> } > > But I want to specify multiple IPs. What's the best recommended way for > doing that? One way would be to create an array of ips and look for it in that array: $ips = array('127.0.0.1','192.168.1.50'); if (in_array($REMOTE_ADDR, $ips))

Re: [PHP] Re: PDF from PHP generated HTML, possible?

2004-09-23 Thread Brad Pauly
On Thu, 23 Sep 2004 22:39:06 +0100, Graham Cossey <[EMAIL PROTECTED]> wrote: > > Brad: When you say "a hash of the query string" do you mean passing the > variable part of the URL thru mhash to obtain a hash/key/digest or whatever > you wish to call it? If so, do you r

Re: [PHP] Re: PDF from PHP generated HTML, possible?

2004-09-23 Thread Brad Pauly
it has a cached html version would redirect to a different URL before any of your queries are executed. http://server/html/.html Or, for the pdf version. http://server/pdf/.pdf - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] accessing querystring values

2004-09-21 Thread Brad Pauly
e values in $_POST and $_COOKIE. You might want to do this method if your script could be accessed via a GET or POST. http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.request - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Brad Pauly
efault.aspx?scid=kb;en-us;293792 - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] thumbnail of webpage

2004-09-17 Thread Brad Pauly
> Michael Mao wrote: > > > Is there a way to capture a snapshot of a html page and save it as a > > jpg using php? This is a bit of a hack, but kinda neat if you don't mind setting it up. I'm sure you could use php to call a script anyway. Heh. http://www.livejo

Re: [PHP] PHP accelerators

2004-09-16 Thread Brad Pauly
On Thu, 16 Sep 2004 12:08:50 -0400, Dan Joseph <[EMAIL PROTECTED]> wrote: > > There are others? http://www.php-accelerator.co.uk/ http://pecl.php.net/package-info.php?package=APC http://turck-mmcache.sourceforge.net/ - Brad -- PHP General Mailing List (http://www.

[PHP] multi-uploading

2004-08-17 Thread Brad Ciszewski
I am having troubles with a script im trying to write. I was wondering if anyone could help me. The script needs to upload 2 files to a directory, and have a field for a name, which will then figure out the URLs of the files put them in the database along with the specified name. Please help :o

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Brad Bonkoski
try restarting apache. if mysql were not running they would see a mysql error, not a PHP error saying the function is not defined. Is is something to do with how mysql is built into PHP and how PHP interacts with apache, so if all else fails, try rebuilding PHP. -B - Original Message -

RE: [PHP] COUNT(*) Output Question

2004-08-02 Thread Brad Ciszewski
Wouldn't count(sku) work? -Original Message- From: Tom Ray [Lists] [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 3:20 PM To: [EMAIL PROTECTED] Subject: [PHP] COUNT(*) Output Question Hey- I'm query my mySQL database to see how many of each Sku has been ordered. I am doing my

[PHP] php coding software

2004-08-02 Thread Brad Ciszewski
Does anyone know any good software for PHP/mysql coding? I currently use DreamWeaver MX, however it doesn't have much PHP support, and no MySQL support. I just want an easy program to script in, and upload on to my webserver. Please help! :o

Re: [PHP] other eyes

2004-05-24 Thread Brad Pauly
$_REQUEST[search_username]; --^ need an r > echo "search_username.1='$_REQUEST[search_username]'"; > echo "search_username.2='$search_username'"; - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session variables not working

2004-05-14 Thread Brad Pauly
) to see what is there. The ob_* functions don't cause any output of variables, they only output what you output within them (if that makes sense). For example: ob_start(); echo 'Hi'; ob_end_flush(); - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] paging methodology

2004-05-05 Thread Brad Pauly
nd on the type of table you are using. "SELECT COUNT(*) FROM sometable" is much faster with MyISAM tables than with InnoDB tables because InnoDB tables need to actually count all the rows where MyISAM tables keep that information handy. Someone please correct me if I got that wrong. - Brad -

Re: [PHP] creating thumbnails

2004-03-12 Thread Brad Pauly
inux (maybe others too) you might be able to use 'mogrify' which is part of ImageMagick. I think it works very well for this. http://www.imagemagick.org/www/mogrify.html - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread Brad Pauly
like Anjuta. http://anjuta.org/ - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Compiling Apache Module, missing Header files?

2004-01-22 Thread Brad Pauly
ourse with any other options you want) Apache: $ ./configure --prefix=/path/apache --enable-module=so $ make # make install PHP: $ ./configure --prefix=/path/php --with-apxs=/path/apache/bin/apxs $ make # make install - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Odd Code Error.

2004-01-20 Thread Brad Pauly
ld recommend using it whenever you can. It may require a few extra lines of code here and there, but you know for sure what 'type' you are dealing with. This is especially good when dealing with user input. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Odd Code Error.

2004-01-20 Thread Brad Pauly
'==' is a loose comparison. You can use '===' instead which will give you the results you are looking for. if ($EA === "NFH") - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] odd and even numbers

2004-01-16 Thread Brad Pauly
hp.net/manual/en/language.operators.arithmetic.php if ($your_number % 2) { echo 'odd'; } else { echo 'even'; } - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression for Search/Replace

2004-01-16 Thread Brad Pauly
On Fri, 2004-01-16 at 10:21, Brad Pauly wrote: > On Fri, 2004-01-16 at 10:07, Tobias Engelhardt wrote: > > That is not possible because the id's are hard-coded in thousands of > > html-pages. Not a very good idea, i know. It wasn't mine... I *have* to > > use sear

Re: [PHP] Regular Expression for Search/Replace

2004-01-16 Thread Brad Pauly
I see. I think you could use str_replace (untested): $a = 'order.php?order_id='; $b = 'order_'; $c = ''; $new = str_replace($a, $b, $c).'.html'; - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression for Search/Replace

2004-01-16 Thread Brad Pauly
On Fri, 2004-01-16 at 09:49, Tobias Engelhardt wrote: > Hi list, > i hope someone can help me out... i have to replace > > > with > > > any ideas? thank you! What about just using the variable to build the name? $file_name = 'order_'.$_GET['order

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
s to start with: RewriteRule ^show/(.*) /show.php?foo=$1 And see what $_GET looks like. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
ll see that its echoing that without a problem..so this is > partly working. > > now what to do about the variables? Well, are any of them in $_GET? If so, are they getting assigned to the right place? How about putting a print_r($_GET) in show.php. - Brad -- PHP General Mailing

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 12:41, Ryan A wrote: > Hey Jason, Brad, > Thanks for replying. > > I took out the .php part...and even tried it with [L] tacked to the end of > the second linenot working > Heres how my .htaccess looks now: > > RewriteEngin

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
php /show.php?category=Beginners%20Corner&sid=$2&id=$3 I don't remember for sure, but do you need an [L] at the end of the second line? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
pace in "Beginners Corner". Try passing simple values first. I am assuming you have Apache compiled with mod_rewrite and you have the proper settings in httpd.conf (ie. LoadModule). Did you restart Apache? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] md5() and string-length?

2004-01-09 Thread Brad Pauly
ght have other constraints that make very large input impractical. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help parsing text file?

2004-01-08 Thread Brad Pauly
bout giving that kind of privileges though. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Content-type vs session_start()

2004-01-08 Thread Brad Pauly
ent-type: text/html' . "\n\n"; > session_start(); Have you tried putting session_start() before the first print? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with while loop

2004-01-07 Thread Brad Pauly
"$dom $totalused $totalfree $total \n"; for( $i=0;$i $message .=$lines[$i]; } } echo $message; } You are overwriting $lines every time you make an assignment. From the looks of how you create $message, you want $lines to be an array. Try $lines[] = 'wh

Re: [PHP] Looping problem?

2004-01-06 Thread Brad Pauly
o $vlans[$z]\n; > > Right now it only pulling the last record??? You are only echo'ing the last record, $vlanz[$z]. You will need to loop over $vlans again or put the echo line inside the for loop. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] developing a plug-in framework

2004-01-05 Thread Brad Pauly
he config file they would do. $_framework['container_type'] = 'File'; Just some thoughts. I would be curious to know what you come up with. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange coding bug

2004-01-05 Thread Brad Pauly
lso try echoing $query on both pages to make sure they same query actually is being executed. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Export MySQL

2003-12-31 Thread Brad Pauly
e exec() command (http://us2.php.net/exec) with something like this: $dbname = 'mydb'; $password = 'secret'; $username = 'myusername'; $filename = '/path/to/file'; exec("mysqldump --opt $dbname -u $username --password='$password' > $filename&q

Re: [PHP] Email verification

2003-12-31 Thread Brad Pauly
l E-mail es requerido en ambos campos."; $errors++; } elseif ($email1 != $email2) { echo "Las direcciones de E-mail no concuerdan."; $errors++; } - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cannot send session cache limiter

2003-12-31 Thread Brad Pauly
On Wed, 2003-12-31 at 11:24, [EMAIL PROTECTED] wrote: > > perhaps you could show some code snippets. > > Thanks Warren, at least I know my message is getting through :-) > > Well, I just got this: > > Warning: Cannot send session cookie - headers already sent by (output > started at /home/sites/

Re: [PHP] Cannot send session cache limiter

2003-12-31 Thread Brad Pauly
(); is called the > second time around .. as if I'd issued session_start() halfway through a > program. > > I'd look it up, but, err, what under? Can anyone shed some light? What is the exact error message? It usually tells you where the guilty line is. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie mysql and php

2003-12-27 Thread Brad Pauly
cause I > didn't show the other lines since it is not relevant. > here is the error > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result > resource in /home/prog/public_html/php/cateadded.php on line 14 Try checking your query results. mysql_query might

[PHP] Error with Absolute URLs

2003-12-23 Thread Brad
Hi, I keep getting errors on my websites, that contain absolute URLs, e.g. http://www.url.com/blah.html. With most, being in the folder of my website, it's fine, i can just add $_SERVER['DOCUMENT_ROOT'], but there's a script I use to display the network statistics of an IRC network, which is l

Re: [PHP] evaluating a variable

2003-12-22 Thread Brad Pauly
unc_name(); > } Nicely explained! Please disregard my earlier suggestions. Typing too fast and not paying enough attention. I'll go sit in the corner now =) - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] evaluating a variable

2003-12-22 Thread Brad Pauly
; Any other ideas? What are you trying to do exactly? Looking at your code again maybe you want: $contenctfunction(); - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] evaluating a variable

2003-12-22 Thread Brad Pauly
does seem like a simple question but I cannot find any information to > help me. Can anyone tell me how to get the function to be executed here? Try $$contentfunction - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sessions simply don't work

2003-12-19 Thread Brad Pauly
ror with a > single session_start() function on its own in a file. > It fails on Apache on my intranet and IIS after being uploaded to a web > server. The browser is set to recieve cookies. All the books say it should > work. Is there anything before the first line of code? Any whitespace or

Re: [PHP] run a command on a remote host

2003-12-09 Thread Brad Lhotsky
___ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Brad Lhotsky <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array confusion...

2003-11-24 Thread Brad Pauly
[C02] => 40 > [C03] => 50 > [C04] => 4 > [C05] => 4 > ) > > Now, the problem I'm having is that when I echo $array['C06'] and > $array['C07'] I'm getting "" (nothing..). Could someone poi

Re: [PHP] Create Popup Window using PHP

2003-10-23 Thread Brad Bonkoski
Impossible, PHP is server side, look into javascript of some other client side language to create pop-up windows. - Original Message - From: <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Thursday, October 23, 2003 3:00 AM Subject: [PHP] Create Popup Window using PHP > > > Hi a

Re: [PHP] What Is Scalability?

2003-10-19 Thread Brad Pauly
doom an application if it needs to change. So I think I would add a little bit of 'changeablity' to make an application scalable. Do others consider application design when talking about scalability? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption question

2003-10-10 Thread Brad Pauly
passwords? I looks like it's a two-way encryption. md5 is a one-way hash function. It is great for passwords. (I'm not sure if that technically qualifies as encryption because it is nearly impossible to decrypt..hmm) Anyway, I would recommend using it. - Brad -- PHP General Mailing L

Re: [PHP] serialized arrays

2003-10-10 Thread Brad Pauly
:1;s:2:"91";}}) " > You need to either move the urlencode function outside of the quotes echo ""; Or encode it first: $s_array1_encoded = urlencode($s_array1); echo ""; I think the second is easier to understand. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Verry strange GET behaviour

2003-10-07 Thread Brad Pauly
Ben Edwards wrote: On Tue, 2003-10-07 at 16:14, Brad Pauly wrote: Probably because you have register_globals turned off. You can use $_GET['_section']. You can also turn it on. But it works in hundreds of other places on the server. I don't really want to use $_GET because I s

Re: [PHP] Verry strange GET behaviour

2003-10-07 Thread Brad Pauly
also turn it on. http://us3.php.net/register_globals - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] storing the passthru() output as an array

2003-10-06 Thread Brad Pauly
ents(); ob_end_clean(); $lines = explode("\n",$ps); - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File read and sort question

2003-10-06 Thread Brad Pauly
the name of the file it would save you the step of reading the files. Just getting the contents of the directory should provide all the information. Of course you would still need to put that in an array and sort it. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] passing form information.

2003-10-02 Thread Brad Pauly
Payne wrote: [big snip] What I am getting this INSERT INTO leads (leads_id, title, f_name, l_name) VALUES ('', "", "", "") Is register_globals off? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: your method for validating forms

2003-10-01 Thread Brad Pauly
or what it costs (I know, don't solve a problem by throwing money at it). Anyway, just some things to consider. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] your method for validating forms

2003-10-01 Thread Brad Pauly
of doing everything in a switch statement. Instead of a 'type' element, I have 'rules' which is a comma delimited list of the validation I want it to run on each field. For example, IsEmail, IsNotBlank, IsPhoneNumber. These correspond to functions of the same name. The

Re: [PHP] "Too many connections" fix?

2003-10-01 Thread Brad Pauly
Brad Pauly wrote: Nicole wrote: I last increased my max connections to 500. That seemed to fix things for a while. Now I am getting the problems (database freezing up because too many connections) again. The site I run is pretty high traffic. I wondered if anyone encountered a solution to

Re: [PHP] "Too many connections" fix?

2003-10-01 Thread Brad Pauly
problem. Are you using mysql_connect or mysql_pconnect? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Brad Pauly
ow I should get one? I installed PHP v4.3.3 on Apache 1.3. Check out the Windows installation section of the manual. http://www.php.net/manual/en/install.windows.php Basically, you need to copy one of the ones that comes with php into your windows directory. - Brad -- PHP General Mailing Lis

Re: [PHP] Setting cookies

2003-09-30 Thread Brad Pauly
newsref/std/cookie_spec.html What about clearing your cookies when you switch between your dev server and your live server. Takes a little more manual effort, but should work. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if statement

2003-09-30 Thread Brad Pauly
Steve Buehler wrote: [snip] $array=("/etc/bind/options.conf.wp","/etc/bind/rndc.conf.wp","/etc/bind/keys.conf.wp"); if($k2b==$array){ do this1 }else{ do this2 } You are close. Check out in_array(). http://us4.php.net/in_array if (in_array($kb2, $array))

[PHP] Templating system (was Re: [PHP] Cleaning up my messy code)

2003-09-29 Thread Brad Pauly
t to smart for > certain applications. I haven't used smarty for anything significant. I like it, but it does more than I need. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A _post question I guess

2003-09-29 Thread Brad Pauly
lue) { if (stristr($field_name, 'exercise')) { $content .= "$field_name = $field_value\n"; } } - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A _post question I guess

2003-09-29 Thread Brad Pauly
st email $content. You could filter out the excerciseN fields if you only wanted to send those. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Understanding code.. again

2003-09-25 Thread Brad Pauly
Jeff McKeon wrote: Ok, so if an argument is supplied to the function, the "= null" is ignored? Yep. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Understanding code.. again

2003-09-25 Thread Brad Pauly
without an argument and it will not raise an error. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql.sock file location

2003-09-25 Thread Brad Pauly
nning processes to see if it exists there? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql.sock file location

2003-09-25 Thread Brad Pauly
7;, '**')) print 'Success!'; else print 'Failure'; ?> Are you sure the MySQL server is running? Can you connect from the command line using the same credentials as above? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with external command.

2003-09-22 Thread Brad Pauly
cho $scan_result | $mail -s "Hostile Node" $admin`; } /* end scanner() */ You have a in $cmd. That will likely cause problems. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] globals on globals off (help

2003-09-16 Thread Brad Pauly
hould be (it probably isn't there right now). Copy php.ini-recommended to the location that phpinfo() told you it was, and name it php.ini. Make the necessary changes to php.ini. Restart Apache. You should be all set. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Brad Pauly
You need a ; at the end of the line before that. Like: include ($include); You also use $includes in a couple of the cases, like the last one. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loading classes and efficiency

2003-09-13 Thread Brad Pauly
because you are assigning a reference of what is returned? Would that make $some_object a reference to a reference? It doesn't seem to raise an exception. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Brad Pauly
TML, also (although, yes, both will work in HTML). This is also my understanding. I could swear that I read it somewhere. I just don't remember where. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loading classes and efficiency

2003-09-10 Thread Brad Pauly
a mechanism to handle that. Would there be much benefit from returning a reference to the object? I would guess it would consume less memory. function &create_object() { [..] } $some_object =& create_object('some_object'); - Brad -- PHP General Mailing List (http://www

Re: [PHP] loading classes and efficiency

2003-09-10 Thread Brad Pauly
t be much difference in performance. If you use a consistent naming convention for your class files, you could have a function that will handle including the class file and return an object. So you could do something like: $foo_object = CreateObject('FooObject'); - Brad -- PHP General

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Brad Pauly
her or not you need the 4.0 client lib. Take a look at this link: http://www.mysql.com/doc/en/Upgrading-from-3.23.html - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Brad Pauly
e result is because you are using $object (which is an array) as a key. Do you want an array element that holds the $options array? $HTTP_SESSION_VARS[$user]['options'] = $options; You could then add elements to this array like this: $HTTP_SESSION_VARS[$user]['options']['registered'] = 1; Is that what you are trying to do? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] addslashes() || Why the multiple slashes?

2003-09-09 Thread Brad Pauly
Brad Pauly wrote: CF High wrote: why does PHP add 3 slashes to the following var: $apostrophe = "I've got an apostrophe"; $slashed = addslashes($apostrophe); echo $slashed; Result: I\\\'ve got an apostrophe. What's up with that -- why not just add a single

Re: [PHP] addslashes() || Why the multiple slashes?

2003-09-09 Thread Brad Pauly
gpc_magic_quotes enabled? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] count() & numerical arrays....

2003-09-09 Thread Brad Pauly
CF High wrote: I split the number list to array -- $num_list_array = split("," $num_list) Any ideas? split uses a regular expression. I think you want to use explode here. $num_list_array = explode(',', $num_list) - Brad -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] No answers found - Why var and why & ?

2003-09-09 Thread Brad Pauly
André Cupini wrote: But what's the diference of the sintax: function &bla(&$var) That means the function will return a reference. http://www.php.net/manual/en/functions.returning-values.php - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Problems with $DOCUMENT_ROOT being blank

2003-08-30 Thread brad e
I set up a PHP4.3.3/mySQL4.0.14/Apache2.0.47 server and everythign is configured and running properly. i tested php with some scripts and functions and they all work. When i try and do any file editing/including in scripts i get file not found errors all over the place when i open like $DOCUMENT_RO

[PHP] mail() function failure

2003-08-14 Thread Brad Esclavon
hosted by a company and am sure the mail server is up and working for me. is there a way i need to feed it a username/password with php? any ideas on why its not working? im completely stumped. -- Brad Esclavon [EMAIL PROTECTED] (H) 404-875-4561 (C) 404-291-1082 -- PHP General Mailing List

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
http://yousite.com/index.php?page=home&home=http://othersite.com/bad.php Although I think you would still be ok. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
LoonySalmon wrote: if page is defined in url, include page defined else include home You are on the right track. Take a look at the manual. http://us4.php.net/manual/en/index.php http://us4.php.net/isset - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
#x27;s included what i'm going for here is to choose the page i want in that space by defining it in the url, such as http://l33trus.servebeer.com/site/index.php?page=contact but how would i do that? Based on the code posted before I think you should be able to do: include $$_GET['

Re: [PHP] Script Execution Time

2003-07-28 Thread Brad Pauly
://us4.php.net/microtime - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Apache 2.x and PHP

2003-07-23 Thread Brad Young
We have a detailed whitepaper on the subject. Please check out: http://www.zend.com/whitepapers/PHPandApache2-ZendWhitepaper.pdf BY __ Brad Young [EMAIL PROTECTED] www.zend.com Zend - The PHP Company > >Hi All, > >Can anyone aswer this simple ques

Re: [PHP] Changing numbers

2003-07-21 Thread Brad Pauly
. Trailing zeros to the right of a decimal are significant. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] classes v. functions

2003-07-18 Thread Brad Bonkoski
as like polymorphism and inheritance and such. Just google for Object oriented programming, and read some of the numerous exposes on the subject to get a general idea. http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=object+oriented+programming -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Brad Pauly
so, maybe you could escape that character in the users input when you add it. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript multi text box form validation?

2003-07-18 Thread Brad Pauly
n for what I am trying to do? Thanks in advance. You might want to check out stripslashes(). http://us2.php.net/manual/en/function.addslashes.php - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] zend optimizer for 4.3.2

2003-07-17 Thread Brad Young
Yes, Zend Optimizer definitely does support 4.3.X. Brad __ Brad Young [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> www.zend.com <http://www.zend.com> Zend - The PHP Company >-Original Message- >From: Adrian Teasdale [mailto:[EMAI

Re: [PHP] How To Ask Questions - Some List Guidelines

2003-07-14 Thread Brad Pauly
uette that some might find useful. http://www.catb.org/~esr/faqs/smart-questions.html - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread Brad Pauly
use the mv command via the exec function. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I dump a blob or text into a mySQL Database?

2003-07-14 Thread Brad Pauly
I dump in text or binary. Oddly enough when I run the query I get no error, and can print it and run it through a mySQL terminal, and it works. Anyone have any ideas? Is $buffer empty? I would start there. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-10 Thread Brad Pauly
that this would be the easy part. Any more ideas? Thanks for your help Jason I appreciate it. Writing and moving require the same permissions. Also, there is a big difference between root and webroot. Which one are you talking about? - Brad -- PHP General Mailing List (http://www.ph

<    1   2   3   4   5   6   7   8   >