RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
de so that we can see the problem more clearly? ed -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:52 AM To: PHP General Subject: [PHP] Sessions and headers When using PHP sessions, if the user's browser supports cookies, PHP sets the

RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
Are you downloading these files over HTTPS://? Ed -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:24 AM To: CPT John W. Holmes; PHP General Subject: Re: [PHP] Sessions and headers > What errors, exactly? Can you show some examples?

RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
Try including "session_cache_limiter('public');" before your session_start(); call at the top of the page. ed -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:40 AM To: Ed Gorski; 'CPT John W. Holmes'; &

[PHP] Problems with variables and PHP/HTML

2002-09-24 Thread Ed Curtis
RL such as: It becomes a null value or doesn't get passed at all. I thought this might have something to do with track-vars but track vars are enabled by default in PHP since before my version. When I compiled everything I compiled PHP as a DSO. Any ideas? TIA, Ed Curtis -- PHP Gener

[PHP] Missing posted variables in target script when multipart/form-data is set

2002-06-06 Thread Ed Greenberg
ried a solution or even a hint. I hope I've given enough info. Ed Greenberg PS: Resolving this would resolve issues that I have with a bunch of popular PHP packages such as Gallery, Pagetool and phpWebSite. The authors of these packages all have multipart/form-data on almost all their forms,

Re: [PHP] Missing posted variables in target script when multipart/form-data is set

2002-06-07 Thread Ed Greenberg
"Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Friday 07 June 2002 12:32, Ed Greenberg wrote: > > I have a small test script which fails when enctype="multipart/form-data" > > is se

[PHP] dynamic pull-down menus?

2002-06-07 Thread Lazor, Ed
cting. The best article on this was from Leon Atkinson: http://www.zend.com/zend/tut/drop-down.php I also found an example that does use 3 selection fields, but it appears to be in ASP: http://www.quickgallery.com/case/storesearch/ Any ideas on how to go about this? Thanks,

RE: [PHP] dynamic pull-down menus?

2002-06-07 Thread Lazor, Ed
002 2:48 PM To: Lazor, Ed; PHP General Subject: Re: [PHP] dynamic pull-down menus? Usually people do this with javascript, but you could use javascript/php/mysql mysql for the data, php to create the dynamic drop down menus and javascript to refresh the page once someone has picked an option. Rick

RE: [PHP] convertion from string to time & substracting

2002-06-07 Thread Lazor, Ed
> I got a mysql database, where two of the fields of a table > record times as > CHAR(8) in the format hh:mm:ss > I want to take this two times and get the difference between > them in seconds, for example 12:01:30 - 12:00:00 = 90 I > looked up at the doc in the php.net website and could

RE: [PHP] dynamic pull-down menus?

2002-06-07 Thread Lazor, Ed
Cool. Thanks Dave. I'm exploring this stuff in another window. I'll check out irt.org. -Original Message- From: David Freeman [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 4:45 PM To: 'Lazor, Ed'; 'Richard Baskett'; 'PHP General' Su

RE: [PHP] matrix functions

2002-06-10 Thread Lazor, Ed
I think this will work. You'll have to test it to confirm: $A[0][0] = "x"; $A[0][1] = "x"; $A[0][2] = "x"; $A[0][3] = "x"; $A[0][4] = "x"; $A[1][0] = "0"; $A[1][1] = "0"; $A[1][2] = "0"; $A[1][3] = "0"; $A[1][4] = "0"; $B = $C = array(); $B = $A[0]; $C = $A[1]; $A[0] = $C; $A[1] = $B; -O

RE: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Lazor, Ed
Isn't it just an issue of whether you call http: or https: ? -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 11:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Switching from HTTPS to HTTP using PHP? After completing most of the coding for my site,

RE: [PHP] Switching from HTTPS to HTTP using PHP?

2002-06-10 Thread Lazor, Ed
link like this: Home Page The protocol will default to https and this may be the source of the problem you're experiencing. -Ed - Hi Ed, Maybe it's just one of those slow days, brain-wise. But I have a 'problem' with https re

RE: [PHP] multi-line textfields don't post

2002-06-10 Thread Lazor, Ed
Give us a copy of the code so we can tell what you're talking about. -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: [PHP] multi-line textfields don't post Whenever I use a mult-line textfield, the

RE: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed
You'll need to have a cgi version of PHP to use in cronjobs and you'll need to use http://www.php.net/manual/en/function.preg-grep.php Good luck =) -Original Message- From: Jonathan Duncan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 12:48 PM To: [EMAIL PROTECTED] Subject: [PHP

RE: Re[2]: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed
Good point. -Original Message- LE> You'll need to have a cgi version of PHP to use in cronjobs Not entirely true; you can run a script off your server as well, using lynx -dump http://server/path/to/file as the line in crontab - Julie **

RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed
I'm pretty sure it was the lack of a space in the header field between Location: and the actual url. -Original Message- The only thing I can think of is that you have a syntax error in the header. -Kevin ***

RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed
LOL Yea, it's always much easier if we have actual code to work from rather than taking guesses in the dark. -Original Message- Why do I get the feeling I'm playing that "mind bender" game where you have to guess the right combination within so many turns? LOL

RE: [PHP] Compare 2 resultsets of db-query

2002-06-10 Thread Lazor, Ed
What you're asking is considered a UNION. I'm not sure which database you're using, so I can't tell if it supports UNIONs or not. If you're using MySQL, UNIONs are supported in version 4.0-alpha. Another approach is storing the results of both queries in single array and then pulling it from th

RE: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed
Exploding at the "=" is a good idea. I'd just fread the file into a variable, explode it, and then egrep up to the first delimeter. I'm not sure if this is the best approach... but it's the most likely approach I'd take if I were working on this. =) --- I am looking for an i

RE: [PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Lazor, Ed
CSS in this sense is client side. As long as the PHP output is valid style codes, you should be ok. -Original Message- On Mon, 10 Jun 2002, Andrew Brampton wrote: > Yes you can place one in a style sheet you just need to tell apache (or > whatever) that .css should be parsed by PHP, thi

RE: [PHP] Parse an email message for content

2002-06-10 Thread Lazor, Ed
Which documentation should we check to get information on the undocumented features? ;) ps... I'm joking. -Original Message- while not documented, PHP now has the mail-parse functions (see documentation for function list)

RE: [PHP] Arrays

2002-06-10 Thread Lazor, Ed
Get the number of items in the array using the count function and then use a for statement to loop through them from start to finish. Here's an example: $Total = count($link); for ($i = 0;$i < $Total;$i++) print "$name"; Of course, the link names will all be the same, so you'll probab

RE: [PHP] How do I stop foreach if $menu not set??

2002-06-11 Thread Lazor, Ed
Change introduction to a variable with $ in front of it or put it in quotes "introduction". > What Can I do to stop the foreach function from working if > $menu is not > set?? > > if ($menu==(introduction)) {$sub = array( > 'overview.php' => 'Overview', > 'moreinfo.php' => 'More Info' > ); > }

RE: [PHP] 405 Method Not Allowed with Post Request on PWS

2002-06-11 Thread Lazor, Ed
Could you post an example of the code you're working with? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 10:32 AM > To: [EMAIL PROTECTED] > Subject: [PHP] 405 Method Not Allowed with Post Request on PWS > > > I'm running PHP 4.2

RE: [PHP] addslashes for db search?

2002-06-11 Thread Lazor, Ed
Can you put things in standard quotes? "'Aimburu" > -Original Message- > From: andy [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 12:44 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] addslashes for db search? > > > Hi there, > > I have some db records star

RE: [PHP] Arrays

2002-06-11 Thread Lazor, Ed
this and see how much you can figure out on your own first =) -Ed > -Original Message- > From: Daniel Broome [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 10, 2002 4:08 PM > To: Lazor, Ed > Subject: Re: [PHP] Arrays > > > I dont know how to explane this.. what I

RE: [PHP] Installation and/or configuration problems w 4.2.1 on NT

2002-06-11 Thread Lazor, Ed
I don't know the answer, but... It sounds almost like a server configuration issue. Almost as if the web server (Apache?) doesn't have the php extension configured correctly. -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 3:48 AM To: [EMAI

RE: [PHP] get pwd on windows

2002-06-11 Thread Lazor, Ed
Will getcwd() work for you? Also, try phpinfo() to find out which variables are set. -Original Message- From: Shane Wright [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:45 AM To: [EMAIL PROTECTED] Subject: [PHP] get pwd on windows -BEGIN PGP SIGNED MESSAGE- Hash: S

RE: [PHP] XML with PHP?

2002-06-12 Thread Lazor, Ed
--xml -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 6:57 AM To: [EMAIL PROTECTED] Subject: [PHP] XML with PHP? Hey! Which PHP option should I use for compiling with the XML support. I'm using the standard XML support on the web an

RE: [PHP] Array into database

2002-06-12 Thread Lazor, Ed
Depends on the average size of data that you're working with. You have to count how many bytes each array take up. I think the sizeof function will do this for you. -Ed -Original Message- And how should I store a serialized variable in my database? As String or as

RE: [PHP] unset($array[value]) does not work?

2002-06-12 Thread Lazor, Ed
It is working. The last two tests you were running weren't actually the same, which was confusing your testing results. I've altered the code a little for ease of testing. It's included below. -Original Message- You will see that $unserialized['foo'] still exists! Can anyone explain me

RE: [PHP] sending 1000 emails to subscribed members via php?

2002-06-12 Thread Lazor, Ed
Kind of an off-shoot question, but has anyone created functions to interface PHP and one of the popular mailing list management software packages like Majordomo or Mailman? -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 10:29 AM To: andy Cc:

[PHP] Forum / Web Mail Combined?

2002-06-12 Thread Lazor, Ed
Ilia and I were discussing FUDForum and general forum features. That made me wonder... Are there forums that integrate pop3 web mail support? -Ed This message is intended for the sole use of the individual and

RE: [PHP] form post

2002-06-12 Thread Lazor, Ed
No, because PHP is server-side. -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 11:28 AM To: [EMAIL PROTECTED] Subject: [PHP] form post Is there a way to post input types that are "hidden" with out using a html form in php? I know you can d

RE: [PHP] Querying for MAX

2002-06-12 Thread Lazor, Ed
select MAX(fieldname) from table; You can also insert data in tables with auto_increment fields to account for yourneed to insert old member ids. insert into tablename (ID, Name) values ('$OldID', '$Name'); -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Wednes

RE: [PHP] Re: Automatic user login under NT

2002-06-12 Thread Lazor, Ed
elp tremendously. >To write PHP extensions on Windows I think Visual C++ is more >appropriate. Does gcc (or some other free C programming language) for Windows exist? -Ed This message is intended for the sole use of

RE: [PHP] while...

2002-06-12 Thread Lazor, Ed
Why not use while to loop through the shopping cart and add items to the message variable? $message = " Here is your order: "; while ($Row = mysql_fetch_array($Results)) $message .= "item description information"; $message .= " Thanks for your order... "; -Original Message-

RE: [PHP] including functions, passing objects I created

2002-06-12 Thread Lazor, Ed
I'm not sure I completely understand what you're asking, but taking a guess... ... assuming you're just wanting to work with the data... ... and assuming you're creating a results set from your db query, start with this code: $Results = mysql_query($sql, $DBLink); Within your function, you ca

RE: [PHP] Converting week number to unix timestamp

2002-06-12 Thread Lazor, Ed
You're looking for the mktime function. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 6:42 AM To: [EMAIL PROTECTED] Subject: [PHP] Converting week number to unix timestamp How can I convert the week number(i.e. 1 - 52) to a UNIX Times

RE: [PHP] how can i insert date

2002-06-12 Thread Lazor, Ed
http://www.php.net/manual/en/function.mktime.php -Original Message- From: suman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 3:20 PM To: [EMAIL PROTECTED] Subject: [PHP] how can i insert date hi i have a date,month and an year what is the function in php that i can i use t

RE: [PHP] Extracting from an Array

2002-06-12 Thread Lazor, Ed
$sql = "select fieldname from tablename"; $Results = mysql_query($sql, $DBLink); $Row = mysql_fetch_array($Results); $fieldname = $Row["fieldname"]; $Date = explode("-", $fieldname); $Year = $Date[2]; > -Original Message- > From: Andre Dubuc [mailto:[EMAIL PROTECTED]] > Sent: Wednesday,

RE: [PHP] F5 problem...

2002-06-12 Thread Lazor, Ed
Create seperate documents: one to display the form and another to process the form. add.php // displays new form add_handler.php // process form input On the form processing, check for the presence of HTTP_POST_VARS before proceeding. if (isset($HTTP_POST_VARS)) { ##

RE: [PHP] confused newbie on PHP and Javascript.

2002-06-13 Thread Lazor, Ed
g the variable Name and prints out different JavaScript Does this make any sense? I'm probably not sounding very clear... someone help describe this, please =) -Ed > -Original Message- > From: Steve Bradwell [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13,

RE: [PHP] Re: next and previous buttons performing on a query

2002-06-13 Thread Lazor, Ed
select ID, Title from Books where ID='500'; That will give you the current set of data to display. Getting the previous and next record will depend on your sort order. Assuming ID as the sort order, store the value of ID and query for the next record: select ID from Books where ID > '$ID' orde

RE: [PHP] truncating dilema

2002-06-13 Thread Lazor, Ed
Why not just put a "Subject" field? Most people use that to put a brief description of the article. Make the form field small and they'll keep their input small. Plus, you can set the maxlength value of the input field to limit things. http://www.htmlreference.com/htmlref95.html > -Origina

RE: [PHP] Code Improvement

2002-06-13 Thread Lazor, Ed
Why display all 5000 records and 50 fields at once? Typically, you display a sub-set of the row data and page through it to improve performance. Also, you typically display a sub-set of fields and then view individual records for full detail. > -Original Message- > From: Pong-TC [mailto

RE: Re[4]: [PHP] sessions help

2002-06-13 Thread Lazor, Ed
de on your page? Thanks, -Ed > > With register_globals=Off, I understand that you need to > extract the $_POST > > and $_GET vars. I assumed the same for $_SESSIONS. Is this not true? > > No. If you use $_GET, $_POST and $_SESSION to get to those > variables then

RE: Re[4]: [PHP] sessions help

2002-06-13 Thread Lazor, Ed
> Hey, it worked on another server! > I've been working on my local machine's server (localhost), > but when I run it from a different web server, it worked fine. > > Any ideas about which setting(s) may be causing the problem? Nope, but I'm including a copy of my local php.ini for ya to compar

RE: [PHP] Shut down server

2002-06-13 Thread Lazor, Ed
That all depends on what kind of server you're referring to. > -Original Message- > Hi, > I tried to shut down my server with exex("/sbin/poweroff") but nothing > happened! > Can someone tell me how I could make shut down the server ? > Is it possible ? > > Thanks, > Rosen

RE: [PHP] Shut down server

2002-06-13 Thread Lazor, Ed
This has serious security implications. Research how to create a script on your system. Set it's sticky bit to run as a standard user that has authorization to run the shutdown command using SUDO. Make sure the script works from within UNIX and then call the script from PHP using exec. I am no

RE: [PHP] MySQL Query Help!!!!

2002-06-13 Thread Lazor, Ed
This is a MySQL question and best directed to the MySQL mailing lists available at: http://www.mysql.com/documentation/lists.html > -Original Message- > From: Chris Kay [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 4:33 PM > To: PHP General List > Subject: [PHP] MySQL Query

RE: [PHP] MySQL Query Help!!!!

2002-06-13 Thread Lazor, Ed
ps... from a PHP perspective, you may find troubleshooting things like this easier by using formatting like this: $sql = " select detail.*, type.type_name, status.status_name, staff.staff_name, source.source_

[PHP] Dreamweaver MX?

2002-06-14 Thread Lazor, Ed
Does Dreamweaver MX have good PHP support? Thanks, -Ed This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and

RE: [PHP] Shut down server

2002-06-14 Thread Lazor, Ed
Could you restate this question? Sorry, I don't understand what you're asking. > -Original Message- > but the idea is another user only to start and shutdown the server. This message is intended for the sole u

RE: [PHP] Evaluation. Easy Question but I need some help

2002-06-14 Thread Lazor, Ed
> So how would I in PHP say if $var == "value1" then this radio > button is checked? And how do I do > it and keeping the code compact? > This message is intended for the sole use of the individual and entity to w

RE: [PHP] closing mysql connections

2002-06-14 Thread Lazor, Ed
freeing query > results? General rule: Thank PHP for taking care of it for you. -Ed This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information t

RE: [PHP] Variable Result is not displayed

2002-06-14 Thread Lazor, Ed
Could you include some of your code? > -Original Message- > When I try to run my scripts they works fine exept for the > variables results > that are not displayed. This message is intended for the sole use of

RE: [PHP] Dreamweaver MX?

2002-06-14 Thread Lazor, Ed
Thanks everyone. I'll check it out. > > > much. > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.

RE: [PHP] Re: Variable Result is not displayed

2002-06-14 Thread Lazor, Ed
make sure global variables are enabled in your php.ini > -Original Message- > From: J0s [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 11:52 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Variable Result is not displayed > > > Here is an example of the test script. > > samp

RE: [PHP] PHP Installation Win98/Apache error....

2002-06-14 Thread Lazor, Ed
You missed a step in copying DLLs. I don't remember which one, but it's the dll files found in c:\php > -Original Message- > From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 2:01 PM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP Installation Win98/Apache e

RE: [PHP] ucwords() usage QUICKIE

2002-06-14 Thread Lazor, Ed
Looks like it, but you're missing the semi-colon at the end of the line. > -Original Message- > From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 2:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] ucwords() usage QUICKIE > > > Hi All, > > I am trying t

[PHP] search parse?

2002-06-14 Thread Lazor, Ed
ld be select ID, Title from Products where Title like '%beer%' AND Title like '%pizza%' AND Title NOT LIKE '%anchovies%'; Another example search string would be: beer OR pizza AND movies Thanks! =) -Ed *

RE: [PHP] integer to string

2002-06-14 Thread Lazor, Ed
Try: $n = $soils[$i]; $soils[$i] = sprintf("%d", $n); and if that doesn't work, print out $soils[$i] to see what it is. > -Original Message- > $soils[$i] = sprintf("%d", $soils[$i]); > > But doesn't seem to work, my program returned an error. > P.S. : I'm using 4.0.6 otherwise wouldn't

RE: [PHP] Re: php server on Windows

2002-06-14 Thread Lazor, Ed
Do you have any benchmarks? > -Original Message- > fans). Put your site on a *nix box with apache its a heck of > a lot faster This message is intended for the sole use of the individual and entity to whom i

[PHP] Can't set a cookie?

2002-06-15 Thread Lazor, Ed
her servers - 1 linux and 1 windows, both with Apache 1.3.24. I'm looking for what version the hosting service is using... their support page says "PHP4 with Zend Optimizer". The other two servers are using PHP 4.1.1. Any

RE: [PHP] Can't set a cookie? [SOLVED]

2002-06-15 Thread Lazor, Ed
Thanks for your help Everyone =) I needed the 3rd parameter set in order to specify the fourth "/", because the cookie is being set by a script located in a sub-directory. One of the old documents I read said "" would work as the third parameter - and it did on my old servers. Setting the thir

RE: [PHP] Search - 'AND' ... 'OR'

2002-06-15 Thread Lazor, Ed
Funny. I asked a very similar question the other day. Jason Morehouse was nice enough to offer this advice: If you use fulltext search (assuming you are using MySQL), it deals with stop words on its own as well as some additional search logic. http://www.mysql.com/doc/F/u/Fulltext_Search.html

RE: [PHP] How do I hide download link ...

2002-06-18 Thread Lazor, Ed
Hey Martin, could you send me the syntax for attaching a file? I'll be doing something like this next week and this would come in handy. Thanks, -Ed > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 17, 2002 5:58 PM > To: &#

RE: [PHP] calling a php file from javascript

2002-06-20 Thread Lazor, Ed
I don't know the complete answer. But, in case it helps, I can tell you that you'll need to research how to load standard web pages. In other words, this is a general Javascript / Flash question and PHP doesn't really play factor into your solution. > -Original Message- > how can I call

RE: [PHP] Error Reporing Questions with Mac

2002-06-20 Thread Lazor, Ed
Why would this be the case? PHP is server-side and client independent... > -Original Message- > Your problem is undoubtably to do with the difference in line > endings on > mac/pc/unix. > This message is int

RE: [PHP] getting values by a joints mysql query

2002-06-20 Thread Lazor, Ed
You need to establish a relation between the two tables to complete the join with something like: AND G.GID = U.GID Also, this is not a PHP related question. You should also be directing this to the MySQL mailing list. > -Original Message- > Im having problem in getting the the

RE: [PHP] Netiquette

2002-06-20 Thread Lazor, Ed
Concise is also good ;) *gives Erik a noogie* Erik wrote: > I was going to stay out of the thread, because people have > ways of doing > it that they are set in, but this is really the crux of it -- > allow me > to extrapolate on what Dan said. Please realize that these > aren't "fire >

RE: [PHP] Date Comparsion

2002-06-20 Thread Lazor, Ed
Check out the date() and mktime() functions. > -Original Message- > Now i want to compare the leave_from and leave_to date to find out the > number of days between! > > What should i do or any function in php can provide this operation? ***

RE: [PHP] Can I be an ASP with PHP?

2002-06-20 Thread Lazor, Ed
this data, but typically it's just an issue of specifying which server is the database server when using the mysql_connect function. -Ed > -Original Message- > From: René Fournier [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 20, 2002 11:29 AM > To: [EMAIL PROTE

RE: [PHP] Red Hat & PHP

2002-06-20 Thread Lazor, Ed
Good question. Please refer to the RedHat mailing list for assistance. > -Original Message- > From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 20, 2002 12:47 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Red Hat & PHP > > > I'm trying to install a PHP server on Li

RE: [PHP] Is there a replicate function in PHP

2002-06-21 Thread Lazor, Ed
I don't know if the function exists, but it should be easy to create. Something like this: function replicate($Repeat, $RepeatCount) { $Results = ""; if ( ($RepeatCount < 1) or ($Repeat == "") ) return false; for ($i=0; $i < $RepeatCount;$i++)

RE: [PHP] any reason why mail() returns a false value?

2002-06-21 Thread Lazor, Ed
Please send code generating the problem. > -Original Message- > my sendmail problem is still present -- every time I try to call the > "mail()" function, even with the simplest of arguments (the > first three > required arguments, all three of them simple string literals: > mail('[EMA

RE: [PHP] Convert a grayscale value to a #RRGGBB hex value

2002-06-24 Thread Lazor, Ed
I have an idea on how to do this. Could someone confirm whether this is a good approach? function grayscaletohex ($val) { $n = ($val * 255) / 100;// convert from range of 100 to range of 255 $h = dechex($n);// convert decimal to hex $result

RE: [PHP] header("Location with & in URL

2002-06-24 Thread Lazor, Ed
Have you tried this? header("Location: $retURL"); ? > -Original Message- > > $retUrl = htmlspecialchars ($retUrl); > > if ($retUrl != "") { > header("Location: " . $retUrl); > > Any ideas? This messa

RE: [PHP] forms question

2002-06-25 Thread Lazor, Ed
I do what you're asking with Javascript. Lookup dynamic forms and you'll find a lot of examples. On Tuesday 25 June 2002 10:30 am, M.E. Suliman wrote: > I'm busy with an order form in php. How would I display a text field only > if a checkbox is checked. The reason for this is that if the user

RE: [PHP] dynamically creating variable names

2002-06-26 Thread Lazor, Ed
I think so. Try using double dollar signs. $name = "food"; $$name = "pizza"; print $food; -Original Message- Can someone tell me if it's possible to create variable names from varaible names? This message

RE: [PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread Lazor, Ed
Isn't this an example of using require in the wrong context, since you don't typically load a gif file and attempt to process it as a PHP file? http://www.php.net/manual/en/function.require.php The require() statement includes and evaluates the specific file. -Original Message- I think

RE: [PHP] Image GD Wizardry!

2002-06-26 Thread Lazor, Ed
It sounds like you're describing the difference between data type and data format. In other words, jpg, bmp, and gif files are all binary data. What makes them unique is the format of that binary data, which is why it's necessary to specify the correct file extension to properly process the file

[PHP] PHP Security

2002-06-27 Thread Lazor, Ed
organizing the information and making it available on the web. Thanks, -Ed This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is

RE: [PHP] Gradients in PHP & GD

2002-06-30 Thread Lazor, Ed
You guys are over-complicating this. If you want to help someone and don't understand their question, just say so. People asking for help are usually more than happy to provide additional information or rephrase their question. Be careful when using the question, "Are you new to PHP?". It has

RE: [PHP] Encripted download

2002-07-01 Thread Lazor, Ed
Everything going through https is encrypted. Update links to download files and everything should go smoothly. -Original Message- Questions: 1. Are the files actually travelling with no encription ? 2. How can I encript them but making it transparent to the user ? *

RE: [PHP] Keeping "Secrets" in PHP Files

2002-07-01 Thread Lazor, Ed
Dang. $2880 is kind of expensive! I wish they'd base licensing more on how many copies your encoded program you sell. -Original Message- http://www.zend.com/store/products/zend-encoder.php This message is int

RE: [PHP] Page rendering speed: PostNuke or PHP-Nuke

2002-07-01 Thread Lazor, Ed
Check SourceForge.com to see what content management systems are available. -Original Message- To those who have used these content management systems: which one renders pages faster, PostNuke or PHP-Nuke? I plan to set up a site on my Linux box and want to know which one I should use. :

RE: [PHP] Re: [PHP-DB] blob versus file

2002-07-01 Thread Lazor, Ed
There are benefits to this making the performance hit worthwhile in some instances. More info: http://www.zend.com/zend/trick/tricks-sept-2001.php -Original Message- Inserting images or whatever binary data in a database does not have much sense **

RE: [PHP] uploading a file - here is the error message...

2002-07-01 Thread Lazor, Ed
The web server needs write access to where you're trying to store the files. Check the directory permissions. Check with your ISP to make sure there are solutions other than making the directory world writeable. -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: M

RE: [PHP] Re: [PHP-DB] blob versus file

2002-07-01 Thread Lazor, Ed
Aren't you saying that storing files on the local file system is generally faster than using database blobs? There are enough examples in the article and related threads to convince me that benefits to database blobs are more than exceptions to the rule. In fact, there are even examples where d

RE: [PHP] Where do I specify a DSN?

2002-07-01 Thread Lazor, Ed
It depends on your operating system. This is a Windows system level configuration option. For example, in Windows 2000, you'd configure DSN's in Start->Settings->Control Panel->Administrative Tools->Data Sources(ODBC) -Original Message- I'm getting this error message...where do

RE: [PHP] blob versus file

2002-07-01 Thread Lazor, Ed
What are the specs on your system? I'm wondering how much over-all system performance is effecting your results. For example, if you have limited amounts of ram, storing blobs in a database may end up being slower than the local file system. -Original Message- I thought the performance

RE: [PHP] Frames JavaScript and PHP

2002-07-02 Thread Lazor, Ed
PHP is server-side. You're discussing client-side issues. You'll need to find a way of submitting the information to the server and then PHP can process it from there. -Original Message- I am trying to get the value of a frames path into a PHP variable. Is it possible to access DOM valu

RE: [PHP] find and replace in php

2002-07-02 Thread Lazor, Ed
Nothing will be inserted if the variable is empty, so you could just use $firstname, $product, $date, etc. inside your "letter". The main problem is adding logic to your "letter" to respond appropriately based on the value of different variables. For example: $MailBody = ""; if (empty($firstnam

RE: [PHP] upgrading php...

2002-07-02 Thread Lazor, Ed
I think there were security updates in the newer version that you'll benefit from, so it's worth your time. Check the README file for the new download. There are notes on upgrading. -Original Message- Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth my time and tr

RE: [PHP] Re: Copy of Ed Lazor's response : find and replace in php

2002-07-02 Thread Lazor, Ed
It sounds like you need to use templates. I haven't played with them much so I can't give specifics, but I hope that points you in the right direction =) -Original Message- I would like to do that, but I'm not hard coding the letters myself. I'm trying to provide a way for others (to pro

RE: [PHP] Re: Have you seen this host?

2002-07-02 Thread Lazor, Ed
Are you not promoting a hosting service? What is your inquiry? -Original Message- I think calling it spam is a bit harsh! Offtopic maybe, but it is a genuine enquiry > > Hi, if you can find a web host that offers ALL these services, i will eat > my > > hat on my webcam to the whole clu

RE: [PHP] FW: Help please!

2002-07-02 Thread Lazor, Ed
Why would it be quicker on the client-side? I would think you'd go with the first option. That way the layout of your web page is maintained while the image downloads. -Original Message- Do not want WHat I want WHich will be a lot quicker on the client side. I cannot m

<    1   2   3   4   5   6   7   >