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.livejournal.com/users/brad/2015327.html

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

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

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

Re: [PHP] other eyes

2004-05-24 Thread Brad Pauly
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
(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
(*) 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 -- PHP General Mailing List (http://www.php.net

Re: [PHP] creating thumbnails

2004-03-12 Thread Brad Pauly
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
. 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
/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
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 Code Error.

2004-01-20 Thread Brad Pauly
' 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] Regular Expression for Search/Replace

2004-01-16 Thread Brad Pauly
['order_id'].'.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
use str_replace (untested): $a = 'order.php?order_id='; $b = 'order_'; $c = 'a href=order.php?order_id=12345'; $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 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 search/replace. (A script processes each

Re: [PHP] odd and even numbers

2004-01-16 Thread Brad Pauly
/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] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
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] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
=$2id=$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
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: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php

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

2004-01-14 Thread Brad Pauly
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 List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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

2004-01-14 Thread Brad Pauly
?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] md5() and string-length?

2004-01-09 Thread Brad Pauly
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] Content-type vs session_start()

2004-01-08 Thread Brad Pauly
; 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] Help parsing text file?

2004-01-08 Thread Brad Pauly
. - 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
]; } } 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[] = 'whatever' instead of $lines = 'whatever'; - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Looping problem?

2004-01-06 Thread Brad Pauly
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] Strange coding bug

2004-01-05 Thread Brad Pauly
. - 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
with. - 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
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] Cannot send session cache limiter

2003-12-31 Thread Brad Pauly
/navigationStart3.php4 on line 4 Just after session_start() from the code: ?php include 'navigationStart3.php4'; Are these indents in the code (changeAlertDetails3.php4 I think)? You can't have anything before the ?php. - Brad -- PHP General Mailing List (http://www.php.net

Re: [PHP] Email verification

2003-12-31 Thread Brad Pauly
no concuerdan.; $errors++; } - 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
(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); - Brad -- PHP General Mailing List (http://www.php.net

Re: [PHP] newbie mysql and php

2003-12-27 Thread Brad Pauly
/public_html/php/cateadded.php on line 14 Try checking your query results. mysql_query might return false which is not a valid result. $dbdo = mysql_query($query, $dbconnect) or die(mysql_error()); That should let you know what is going on. - Brad -- PHP General Mailing List (http

[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

Re: [PHP] evaluating a variable

2003-12-22 Thread Brad Pauly
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] evaluating a variable

2003-12-22 Thread Brad Pauly
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
) { echo You requested to execute the function: $func_name.; echo 'The output of the function is: ' . $func_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

Re: [PHP] sessions simply don't work

2003-12-19 Thread Brad Pauly
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 html will cause this error. - Brad -- PHP General

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

2003-12-09 Thread Brad Lhotsky
/) 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
think you might have some letter 'O's instead of the number 0. Notice that you have CO1 and C01 when you print_r. They are different keys. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 all,

Re: [PHP] What Is Scalability?

2003-10-19 Thread Brad Pauly
' 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] serialized arrays

2003-10-10 Thread Brad Pauly
outside of the quotes echo img src=\gd_graph.php?harray=,urlencode($s_array1),\; Or encode it first: $s_array1_encoded = urlencode($s_array1); echo img src=\gd_graph.php?harray=$s_array1_encoded\; I think the second is easier to understand. - Brad -- PHP General Mailing List (http://www.php.net

Re: [PHP] Encryption question

2003-10-10 Thread Brad Pauly
-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 List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Verry strange GET behaviour

2003-10-07 Thread Brad Pauly
- 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 sometimes switch

Re: [PHP] File read and sort question

2003-10-06 Thread Brad Pauly
the RELEASE_DATE and RELEASE_TIME in 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

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

2003-10-06 Thread Brad Pauly
it in a selection box . Any Idea how, thanks in advance. You can use output buffering to grab the output and explode to put the lines in an array. http://us4.php.net/manual/en/ref.outcontrol.php ob_start(); passthru(ps -ef); $ps = ob_get_contents(); ob_end_clean(); $lines = explode(\n,$ps); - Brad -- PHP

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] Variables not passed on localhost setup

2003-10-01 Thread Brad Pauly
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 List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Too many connections fix?

2003-10-01 Thread Brad Pauly
of 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] 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

Re: [PHP] your method for validating forms

2003-10-01 Thread Brad Pauly
, whether it be in a switch statement or different functions. Not only does it save you time, but it keeps your validation consistent across your application. - 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
to consider. - 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)) - Brad -- PHP General Mailing List

Re: [PHP] Setting cookies

2003-09-30 Thread Brad Pauly
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] A _post question I guess

2003-09-29 Thread Brad Pauly
.= $field_name = $field_value\n; } Then just 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] A _post question I guess

2003-09-29 Thread Brad Pauly
) { 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

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

2003-09-29 Thread Brad Pauly
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] mysql.sock file location

2003-09-25 Thread Brad Pauly
!'; 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] mysql.sock file location

2003-09-25 Thread Brad Pauly
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] Understanding code.. again

2003-09-25 Thread Brad Pauly
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] 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] problem with external command.

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

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Brad Pauly
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] globals on globals off (help

2003-09-16 Thread Brad Pauly
where the php.ini file should 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

Re: [PHP] loading classes and efficiency

2003-09-13 Thread Brad Pauly
. - 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
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
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 Mailing List (http

Re: [PHP] loading classes and efficiency

2003-09-10 Thread Brad Pauly
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.php.net/) To unsubscribe, visit: http

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://www.php.net

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/) To unsubscribe, visit

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

2003-09-09 Thread Brad Pauly
? - 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 backslash? Do you have

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Brad Pauly
? $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] Installing PHP with MySQL RPM version

2003-09-09 Thread Brad Pauly
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

[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

[PHP] mail() function failure

2003-08-14 Thread Brad Esclavon
PROTECTED]; $mail_subject = php mail test; $mail_body = test; if ( mail($mail_to, $mail_subject, $mail_body)) {echo(sucess);} else {echo(fail);} ? -- Brad Esclavon [EMAIL PROTECTED] (H) 404-875-4561 (C) 404-291-1082 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
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['page']; - Brad -- 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
/index.php?page=homehome=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] 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 question, that i still

Re: [PHP] Changing numbers

2003-07-21 Thread Brad Pauly
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] Javascript multi text box form validation?

2003-07-18 Thread Brad Pauly
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] explode and escape character for string separator

2003-07-18 Thread Brad Pauly
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] classes v. functions

2003-07-18 Thread Brad Bonkoski
, and read some of the numerous exposes on the subject to get a general idea. http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=object+oriented+programming -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:[EMAIL PROTECTED] Sent: Thursday

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

2003-07-14 Thread Brad Pauly
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] Moving Files/ Temporary Names

2003-07-14 Thread Brad Pauly
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 To Ask Questions - Some List Guidelines

2003-07-14 Thread Brad Pauly
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] 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.php.net

Re: [PHP] Permissions on server

2003-07-08 Thread Brad Pauly
as (this is the User directive in your httpd.conf file). Then you can restrict the permissions on that directory. You could probably make it 600 if you want. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL problem

2003-07-07 Thread Brad Pauly
should be using a comparison operator. Try using == (or ===): if ($_SERVER['QUERY_STRING'] == ) { disp_cat(); } http://us4.php.net/manual/en/language.operators.assignment.php http://us4.php.net/manual/en/language.operators.comparison.php Brad -- PHP General Mailing List (http://www.php.net

Re: [PHP] qry not running??

2003-07-07 Thread Brad Pauly
$cat_name is, but since you have a cat_name column, I am wondering if you are comparing two different things. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do i work with an object

2003-07-03 Thread Brad Pauly
, but essentially something like this: $header = imap_header($foo, $bar); print $header-date; http://us4.php.net/manual/en/function.imap-headerinfo.php Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending a PDF page

2003-07-03 Thread Brad Pauly
.php.net/manual/en/ref.outcontrol.php Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-03 Thread Brad Pauly
probably just tell configure where apxs is. --with-apxs=/path/to/apache/bin/apxs http://www.php.net/manual/en/install.apache.php Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   >