[PHP] Weight function.

2002-10-17 Thread Steve Jackson
Hi all. Wondering if anyone can shed some light! I have a problem whereby I need to define the weight of a selection of items in a shopping cart in order to calculate a shipping cost. Basically I have 5 products (at the moment) which are of set weights. What I want to do is add up the amount of

[PHP] how to setup mysql logging from php scripts

2002-10-17 Thread Petre Agenbag
Hi I need to be able to see logs of all mysql queries from php scripts on my server. I have a multitude of virtual hosts on my RedHat server, with many mysql db's, and would like to be able to see what queries are done against the db's from which scripts. The reason being is that I suspect that

Re: [PHP] Blank PHP pages...

2002-10-17 Thread René Moonen
I had the same thing just two days ago. This is what happend: I have some code using include files in this way: 1 ?php 2 3 // some php code 4 include(xlib.inc); 5 // some php code 6 7 ? The include file looks like 1 ?php 2 // some code 3 ? The problem was in line 3 of the include file. If

Re: [PHP] Problem with setcookie and IE6.0.2800.1106

2002-10-17 Thread John Nichel
It seems that the problem is with IE, and characters in the domain name. This is a beta site (of one of my existing sites), and I have the virtual host name set as by-tor_v70. I tried setting the cookie on another virtual host running on the same box, and it worked. So, I removed the

Re: [PHP] Weight function.

2002-10-17 Thread Jason Wong
On Thursday 17 October 2002 14:34, Steve Jackson wrote: Hi all. Wondering if anyone can shed some light! I have a problem whereby I need to define the weight of a selection of items in a shopping cart in order to calculate a shipping cost. Basically I have 5 products (at the moment) which

RE: [PHP] Weight function.

2002-10-17 Thread Steve Jackson
Thanks. I have just this minute got it working. Basically the same function I used for determining price of the cart items could be used for determining weight. All I needed to do was assign my DB with a field called weight and call that instead of price from the DB so my calculate weight

Re: [PHP] People who searched this also searched this!

2002-10-17 Thread Krzysztof Dziekiewicz
Hi guys, Does anybody have a working example of doing the lists of 'People who searched this also searched this!' that I see on Amazon and other websites. That is a very complex problem. It is not for PHP. PHP may only insert queries and get results and another system computers all

Re: [PHP] weird IE cookie problem

2002-10-17 Thread Krzysztof Dziekiewicz
Is the time set properly on your machine? Double check both the time AND the timezone. I went nuts trying to fix a similar problem once just to find out that someone had changed the timezone on the PC for a test and then forgot to put it back. It is very easy to check. Set $expires = 0;

[PHP] xml parsing

2002-10-17 Thread Michael Ransburg
Hi! I understand that it's easily possible to parse xml documents with php. But what about changing them? With other xml parsers, I have the xml document in a structure (usually a tree or an array) and when I change something in the structure I can later write out the structure again into a xml

Re: [PHP] Weight function.

2002-10-17 Thread Jason Wong
On Thursday 17 October 2002 15:52, Steve Jackson wrote: Thanks. I have just this minute got it working. Basically the same function I used for determining price of the cart items could be used for determining weight. All I needed to do was assign my DB with a field called weight and call

[PHP] Is this a bad thing to do? (Unix permissions)

2002-10-17 Thread Gwydion Elderwyn
As part of my new site I have created a php-driven guestbook. The guestbook entries are stored in a file called guestbook.txt. I found that in order to get the script to write to the file, I had to set the directory permissions for the guestbook directory and the guestbook.txt file to

[PHP] Re: how to setup mysql logging from php scripts

2002-10-17 Thread David Robley
In article 1034836283.1253.23.camel@dell, [EMAIL PROTECTED] says... Hi I need to be able to see logs of all mysql queries from php scripts on my server. I have a multitude of virtual hosts on my RedHat server, with many mysql db's, and would like to be able to see what queries are done

Re: [PHP] fopen error

2002-10-17 Thread Marek Kilimajer
if allow_url_fopen is not on, you can still use fsockopen(), and no it doesn't affect security, if you don't open files based on unchecked user input. Alfonso Ballesteros wrote: Hello I'm a newcomer to PHP and I wish to know how to get the contents of a file located in an URL if the

RE: [PHP] Weight function.

2002-10-17 Thread Steve Jackson
I'm using both variables called in another page. Taking globals off causes weight not to be calculated in the shipping cost? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -Original Message- From: Jason Wong

Re: [PHP] php/frontpage

2002-10-17 Thread John Nichel
I'm not 100% sure, but I think the answer you seek lies in the server, and not php. You may have to set your webserver to reconize *.php as FP files that it needs to parse, or set it to where it parses *.htm for php. Is this running on IIS, Apache, or something else? Shaun wrote: Hi , I

[PHP] Re: Get the string in between two other strings

2002-10-17 Thread Noodle Snacks
Cameron Cooke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi, I need a function to get a string in between two other strings. So you would give the function the string to search and then you pass the first string and last string, and the function will return the string in

[PHP] shopping cart, inventory control, point of sale system

2002-10-17 Thread Daniel Negron/KBE
can anyone point me in the direction of a good system that will cover all 3 of these points (Shopping Cart, Inventory Control, and Point of Sale) ? Thank you, **DAN** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php/frontpage

2002-10-17 Thread Rankin, Randy
Yes. Frontpage can edit php files ( albeit not very gracfully ). So, if you must ... Open Front Page Select Tools | Options Select the Configure Editors tab and add the .php extension. HTH, Randy -Original Message- From: Shaun [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 17,

Re: [PHP] MySQL GMT -- Local time

2002-10-17 Thread 1LT John W. Holmes
+ INTERVAL 5 HOUR) = TO_DAYS(20021017) You can use DATE_FORMAT() in your query to reformat the MySQL timestamp, or use UNIX_TIMESTAMP() to retrieve a unix timestamp instead and format it in PHP. With the above query, the 5 and actual date 20021017 can be PHP variables, to make it more flexible

Re: [PHP] shopping cart, inventory control, point of sale system

2002-10-17 Thread Justin French
A web based interface is pretty slow for POS isn't it??? phpshop.org might be a good start on the other two... justin on 17/10/02 11:56 PM, Daniel Negron/KBE ([EMAIL PROTECTED]) wrote: can anyone point me in the direction of a good system that will cover all 3 of these points (Shopping

RE: [PHP] Which one? Firebird or mysql for php

2002-10-17 Thread John W. Holmes
I am working on a project which has plenty Gigabytes of data. I heard something about firebird. Is it much better than mysql? Can anybody compare the odds of both of them? Is it easy to use firebird from php? Thanx... What kind of data are you storing? Is it going to be mostly reads or

RE: [PHP] Downloads

2002-10-17 Thread John W. Holmes
I know that php allows uploading , but does it support downloading. I want users to be able to download from my site , how do i go to work. Please send me sample of code if possible. Yes, it does. a href=mydocument.docClick here to download/a ---John Holmes... -- PHP General Mailing

[PHP] Re: Get the string in between two other strings

2002-10-17 Thread Cameron Cooke
I have looked at these, and they make no sense to me. I tried the substr function, but it all went a bit pear shaped. Cameron Noodle Snacks [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Cameron Cooke [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Re: Get the string in between two other strings

2002-10-17 Thread Tom Rogers
Hi, Thursday, October 17, 2002, 10:33:43 PM, you wrote: CC I have looked at these, and they make no sense to me. I tried the substr CC function, but it all went a bit pear shaped. Here is a way that will handle line breaks which tend to stuff up the string functions: ? function

[PHP] Re:[PHP] fopen error

2002-10-17 Thread Alfonso Ballesteros
First of all... thanks for trying to help... I'll show the full piece of code I made : $file = http://www.ivan.ivao.org/whazzup.txt;; $fp = fsockopen($file, 80); if (!$fp) { echo does not open; } else { echo $fp; - Here is what I say it does't return anything. This line is just to

[PHP] php/frontpage

2002-10-17 Thread Shaun
Hi , I used ms frontpage 2000 to make a website. When i comepleted the site , i had to study php to enable database capabilities. When i changed my login.htm file into login.php, ms frontpage did not recognize the .php file. All the navigational links/views were removed from the login.php file.

Re: [PHP] Calendar System

2002-10-17 Thread Rick Emery
http://myphpcalendar.sourceforge.net/

[PHP] Re: shopping cart, inventory control, point of sale system

2002-10-17 Thread Tjoumaidis
You may find something in www.oscommerce.com Daniel Negron/Kbe wrote: can anyone point me in the direction of a good system that will cover all 3 of these points (Shopping Cart, Inventory Control, and Point of Sale) ? Thank you, **DAN** -- PHP General Mailing List

Re: [PHP] xml parsing

2002-10-17 Thread Geoff Hankerson
Change xml into a different type of xml sounds like a job for the xslt functions. Works like a charm Michael Ransburg wrote: Hi! I understand that it's easily possible to parse xml documents with php. But what about changing them? With other xml parsers, I have the xml document in a structure

[PHP] E-Commerce interfacing...

2002-10-17 Thread Noodle Snacks
What is a good service to process credit card numbers for an E-Commerce site? To be specific I mean an easy interface with a PHP based system (maybe even sample code) eg works well with curl... and second any personal recommendations... -- JJ Harrison [EMAIL PROTECTED] -- PHP General

Re: [PHP] MySQL GMT -- Local time

2002-10-17 Thread Jason
this: SELECT * FROM your_table WHERE TO_DAYS(datetime_column + INTERVAL 5 HOUR) = TO_DAYS(20021017) You can use DATE_FORMAT() in your query to reformat the MySQL timestamp, or use UNIX_TIMESTAMP() to retrieve a unix timestamp instead and format it in PHP. With the above query, the 5 and actual

[PHP] Alt tags in rollover buttons

2002-10-17 Thread Brad Harriger
Is there any way to create ALT tags in secondary nav bars with rollover images? (NOF 7) Thanks in advance, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php