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

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. sample.php ?

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

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 to figure

[PHP] search parse?

2002-06-14 Thread Lazor, Ed
Does anyone have a good function for parsing a search string into SQL? I know it will depend on the name of the field and table I'm searching through. Anything close will be helpful. An example search string would be: beer AND pizza NOT anchovies and the resulting search string would be

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 have

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 it

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

2002-06-13 Thread Lazor, Ed
Hi Steve, What you're asking isn't possible. Javascript runs client-side. PHP runs server-side. You can't directly mix the two. For example, you can use Javascript to respond when people choose menu options, but you can't have Javascript communicate with PHP and pull additional information

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'

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

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

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

2002-06-13 Thread Lazor, Ed
Have you tried this on a separate web page to make sure it's not something server specific? Here's a script that worked from my computer with register_globals set to on and off (restarted server between tests for confirmation). If this works from your computer, could you resend the code on your

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 compare

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

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,

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

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 Blob?

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

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

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

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:

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

2002-06-12 Thread Lazor, Ed
Sure, never mind about Rasmus descrimination towards Windows users. Rasmus always has been bitter with users asking for support, especially if they want to run PHP under Windows. Although it seems counter-productive, I can certainly respect Rasmus having his own opinion. He has provided

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

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

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

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, June 12,

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] 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.1 and

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 starting with a

RE: [PHP] Arrays

2002-06-11 Thread Lazor, Ed
free to ask questions, but try to research 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

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:

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:

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; -Original

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

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

2002-06-10 Thread Lazor, Ed
I'm pretty sure it's just an issue of using HTTPS for encrypted pages and HTTP for unencrypted. For example: http://www.example.com is unencrypted and pulls from port 80 on the web server. Whereas, https://www.example.com would be encrypted and come from port 443 on the web

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:

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

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

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

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 lia href='.$link[$i].'$name/a/li; Of course, the link names will all be

[PHP] dynamic pull-down menus?

2002-06-07 Thread Lazor, Ed
Does anyone know how to create a web page with more than 2 selection fields that Interact? In my particular case, I'm trying to create a series of pull-down menus. The first selection is the choice of hardware class (workstation, server, laptop, pda, etc.). The second selection is manufacturer.

RE: [PHP] dynamic pull-down menus?

2002-06-07 Thread Lazor, Ed
: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 We

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

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' Subject: RE: [PHP] dynamic pull-down menus

[PHP] how do you parse this?

2002-04-30 Thread Lazor, Ed
I have a file with this: ullia href=http:\\www.someaddress.comSomeSite/a This is a description of the site./ul I'm trying to parse out the address, site name, and description into separate variables. How can I do this? Thanks, -Ed

RE: [PHP] i cannot pass variables to php script...

2002-04-30 Thread Lazor, Ed
Make sure enable track vars is enabled. Try specifying global $arg before you access it. Try using phpinfo(); in your script. That will display all available variables. -Original Message- From: efa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 1:04 PM To: [EMAIL

[PHP] Verisign / Payflow Pro

2002-02-06 Thread Lazor, Ed
Hi =) I saw PHP has built-in support for Cybercash, but that Verisign has purchased them. It looks like I'll have to go with Payflow Pro, but I'm wondering if PHP has built-in support, available modules, or what the best approach is. Any recommendations? Thanks, -Ed

RE: [PHP] Can anyone jog my memory on HTTP_REFERER Javascript location:replace?

2002-02-05 Thread Lazor, Ed
If I understand what I think you're asking, you're trying to access the results in Javascript of something the PHP script processed... use your php script to spit out some javascript. For example: print script language='javascript'\n; print $Result = .$Results.;\n; print /script;

[PHP] Server crashing?

2002-02-04 Thread Lazor, Ed
I'm starting to have a horrible time of pulling web pages from the server. I checked and found the following entries in the MySQL database server log. The error doesn't occur all the time, but it occurs a lot and only when communicating to the server through PHP. Any idea of what's going on?

[PHP] Can this be done in PHP?

2002-02-01 Thread Lazor, Ed
I'm trying to understand how this banner exchange works and whether it can be done in PHP. Here's the HTML you put on your web page: a href=http://rpgx.rpgconsortium.com/xchange/engage.cgi?advert=NonSSIpage=XX img src=http://rpgx.rpgconsortium.com/xchange/engage.cgi?id=atfantasypage=01;

RE: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Lazor, Ed
Even with a javascript function opening a new window and closing the old? -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:42 PM To: Aras Kucinskas; [EMAIL PROTECTED] Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!

<    1   2