Re: [PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-12 Thread Mark Sargent
Mark Sargent wrote: Hi All, keep getting this error with make on Fedora 3, home machine. Successfully installed on work FC3 machine earlier today. I did make twice, to no avail, and then redid the configure then another make, with the same results. collect2: ld returned 1 exit status make

[PHP] Cant find ClearModuleList in httpd.conf anywhere

2005-04-12 Thread Mark Sargent
x27;t find ClearModuleList anywhere. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cant find ClearModuleList in httpd.conf anywhere

2005-04-12 Thread Mark Sargent
whole bunch of AddModules, put it at the bottom of that list. Chris Mark Sargent wrote: Hi All, what line number is the following on, And in the AddModule section of httpd.conf, somewhere under the ClearModuleList, add this: For PHP 4: AddModule mod_php4.c For PHP 5:

[PHP] Index of /base-1.1

2005-04-13 Thread Mark Sargent
g_common.php <http://localhost/base-1.1/base_ag_common.php> 04-Apr-2005 05:26 3.5K a listing of the dir, which, I guess, is not too good. What have I done wrong here..? Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Index of /base-1.1

2005-04-13 Thread Mark Sargent
David Robley wrote: Mark Sargent wrote: Hi All, typing localhost/bse-1.1 gives me access, but, in this format, Index of /base-1.1 Icon Name <http://localhost/base-1.1/?C=N;O=D>Last modified <http://localhost/base-1.1/?C=M;O=A> Size <http://localhost/ba

Re: [PHP] Re: Index of /base-1.1

2005-04-13 Thread Mark Sargent
Mark Sargent wrote: David Robley wrote: Mark Sargent wrote: Hi All, typing localhost/bse-1.1 gives me access, but, in this format, Index of /base-1.1 Icon Name <http://localhost/base-1.1/?C=N;O=D>Last modified <http://localhost/base-1.1/?C=M;O=A> Size <h

[PHP] snort database not appearing in phpmyadmin

2005-04-14 Thread Mark Sargent
test machine. What should I look for to fix this..? Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] snort database not appearing in phpmyadmin

2005-04-14 Thread Mark Sargent
Mark Sargent wrote: Hi All, I've installed phpmyadmin and have a snort database in mysql, but, it doesn't appear in phpmyadmin. I know it's there, because base is using it to display info from snort on the machine. Why wouldn't it appear in phpmyadmin. It appears with the sa

FW: [PHP] Reverse plural forms to singular for search

2005-04-15 Thread Mark Rees
Eugene, your reply-to address is set -Original Message- From: Mark Rees Sent: 15 April 2005 09:08 To: 'Eugene Voznesensky' Subject: RE: [PHP] Reverse plural forms to singular for search That sounds like a nightmare! Assuming you are talking about English, you might be able to

RE: [PHP] Re: How to unset a post variable

2005-04-15 Thread Mark Rees
Your best bet is to check that the data has not already been inserted rather than try to fiddle with the post: Don't know what db you are using but something like IF NOT EXISTS (SELECT X FROM Y WHERE Z=1) INSERT INTO Y VALUES X Cheers Mark -Original Message- From: Nieko Ma

[PHP] Access Denied-phpMyAdmin

2005-04-16 Thread Mark Sargent
Hi All, I can access the database from the terminal on Fedora 3, [EMAIL PROTECTED] bin]# ./mysql -h localhost -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 to server version: 4.1.10a-standard Type 'help;' or '\h' for help. Type '\

Re: [PHP] Access Denied-phpMyAdmin

2005-04-16 Thread Mark Sargent
Marek Kilimajer wrote: Mark Sargent wrote: Hi All, I can access the database from the terminal on Fedora 3, [EMAIL PROTECTED] bin]# ./mysql -h localhost -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 to server version: 4.1.10a

RE: [PHP] mysql blob datatype for documents

2005-04-19 Thread Mark Rees
data in and reading it out, but it can be done. I recall implementing a document storage system in SQL Server a few years ago - you will see a lot of advice both ways but actually the filesystem and the db are both suitable for this. It really depends on what your requirements are. Mark

FW: [PHP] Last visitors

2005-04-19 Thread Mark Rees
like DELETE FROM profile_visits WHERE user='billy' AND time_of_visit NOT IN ( Select time_of_visit FROM profile_visits WHERE user='billy' ORDER by time_of_visit DESC LIMIT 10 ) Should give you an idea. Mark -Original Message-

RE: [PHP] One more time (Duft Punk) about hyperlink

2005-04-20 Thread Mark Rees
Why not try selecting both the short and the full values of loc1 from the database? Then you can display them both in the html output. Select loc1, left(loc1,3) as locx, etc Have I missed your point here? Mark -Original Message- From: Sugimoto [mailto:[EMAIL PROTECTED] Sent: 20

RE: [PHP] set cookie function problem

2005-04-20 Thread Mark Rees
You might consider using JavaScript to set the cookie, as that will execute on the client and therefore use the client's time to make any calculations regarding expiry. This may or may not suit your purpose. Mark -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sen

RE: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-22 Thread Mark Rees
Be very careful with timezones. If you have dedicated servers with full control over each one, you can simplify this by setting them all to the same timezone. If not, you have a lot of work to do. Mark -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 08

RE: [PHP] image maps in PHP

2005-04-22 Thread Mark Rees
#x27;t fit. Mark -Original Message- From: Mike [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 14:16 To: php-general@lists.php.net Subject: RE: [PHP] image maps in PHP > Hi! > I need to create an image map on a country map, where people > can click on any state and get some info

RE: [PHP] image maps in PHP

2005-04-22 Thread Mark Rees
:34 To: Mark Rees Subject: Re: [PHP] image maps in PHP Mark Rees wrote: > Yes, I once did this for all the states in Brazil. It took me a few > hours to trace the states, but it looked beautiful when it was > finished. This will already have been done for the states many times - &g

RE: [PHP] Repeat Accross, then down

2005-04-22 Thread Mark Rees
Use a counter when iterating through the results When counter % (modulus) 3=0 then write a new row Mark -Original Message- From: Simon Allison [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 15:00 To: php-general@lists.php.net Subject: [PHP] Repeat Accross, then down Say for a photo

RE: [PHP] MSSqlServer table/field information

2005-04-23 Thread Mark Rees
Look into the INFORMATION SCHEMA views in SQL Books Online for a starting point. Mark -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 15:51 To: PHP General Subject: [PHP] MSSqlServer table/field information Is there a way to programatically get

Re: [PHP] PHP vs ASP .NET

2005-04-23 Thread Mark Charette
over what language is "better" than another to be less than constructive anyway. Better to just do your work and let it speak for itself. Mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
onkey.wired.com/webmonkey/99/21/index3a.html Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
Drewcore wrote: just put a @ symbol before the function calll, eg while ($myrow = @mysql_fetch_row($result)) { etc On 4/25/05, Mark Sargent <[EMAIL PROTECTED]> wrote: Hi All, get the following error when calling data from mysql, *Warning*: mysql_fetch_row(): supplied argument is not a

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
Hegedűs Balázs wrote: Hi all, ever tried to test if your connection to the database succeeded? maybe that's why it shouted that "...not a valid result resource..." msg. Balazs Hegedus Mark Sargent wrote: Drewcore wrote: just put a @ symbol before the function calll, e

[PHP] Mixed Up Values

2005-04-25 Thread Mark Sargent
the left 1. Meaning product_model_number is being displayed as product_name and so forth. What is wrong with the code.? Cheers. Mark Sargent. $result = mysql_query("SELECT product_name, product_model_number, 23 product_serial_number FROM Products",$db); 24 25 26 27 echo "\n

Re: [PHP] Help outputting an array?

2005-04-25 Thread Mark Sargent
te.Here is my second title. What incredibly easy way to do this am I just missing? Thanks! :) Hi All, crikey, you'd think I woulda seen that myself. Forgot something so fundamental...it's been a while since I played with programming..it shows..cheers. Mark Sargent. -- PHP General Mailing

[PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Mark Sargent
don't see what it is. Anyone..? Cheers. Mark Sargent. *Parse error*: parse error, unexpected T_ELSE in */var/www/html/phpmysqltable.php* on line *41* 25 if ($myrow = mysql_fetch_array($result)); { 26 27 echo "\n"; 28 29 echo "Product NameProduct Model Numbe

Re: [PHP] array from folder

2005-04-26 Thread Mark Sargent
inspiration. You have to go after it with a club." -Jack London Hi All, yep, basics are good, hence my following the tut at webmonkey(so I can learn the basics), which had the code like that. Cheers. P.S. Some people are mailig me direct. That's great, but, I'd prefer you reply

Re: [PHP] array from folder

2005-04-26 Thread Mark Sargent
Mark Sargent wrote: Ed Dorsch wrote: Can PHP generate an array based on file names in a folder? For example, if I have a folder called "photos" that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP "look" at the file and generate a variable $photos= a

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Mark Sargent
Prathaban Mookiah wrote: Mark, Back to basics budy!! 25 if ($myrow = mysql_fetch_array($result)); { should be 25 if ($myrow = mysql_fetch_array($result)) { Note that extra semicolon? Prathap -- Original Message --- From: Mark Sargent <[EMAIL PROTECTED]&

RE: [PHP] Re: Cache control

2005-04-26 Thread Mark Rees
-control and expiring pages than meets the eye, do a search on it or read the rfc. Ultimately it is down to how user agents interpret those commands, and there is no substitute for testing... Mark -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: 26 April 2005 09:55 To

RE: [PHP] Some Question

2005-04-26 Thread Mark Rees
Hello I have some questions: 1.How I can make a optional argument in function that if I dont mention it in my code does not make problem? Start here http://www.php.net/manual/en/functions.arguments.php#functions.variable- arg-list 2.How I can see apache or IIS headers? Thanks http://www.google

[PHP] Product details not being displayed, based on passed id

2005-04-26 Thread Mark Sargent
instead of the proudct's details being displayed, based on that id, I get the original page, with the lnks. I've right clicked the links, and viewed properties, where I see that the id=n is set. Why doesn't it pull the record based on the id being passed..? Cheers. Mark Sar

Re: [PHP] Product details not being displayed, based on passed id

2005-04-27 Thread Mark Sargent
Petar Nedyalkov wrote: On Wednesday 27 April 2005 08:54, Mark Sargent wrote: Hi All, this page, http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programmin g has code that is supposed to pass an id via the url string to the same page, and display info of a particular product

RE: [PHP] Re: handling a user pressing browser's back button

2005-04-27 Thread Mark Rees
pdate query. This way, you don't need to worry about what the browser does when the user hits back, or which page it serves Mark -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 27 April 2005 06:03 To: Matthew Weier O'Phinney Cc: php-general@lists.php.net Su

Re: [PHP] Product details not being displayed, based on passed id

2005-04-27 Thread Mark Sargent
Richard Lynch wrote: http://php.net/register_globals On Wed, April 27, 2005 12:20 am, Mark Sargent said: Petar Nedyalkov wrote: On Wednesday 27 April 2005 08:54, Mark Sargent wrote: Hi All, this page, http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programmin g has

[PHP] passing a variable through 2 required files embedded in Javascript

2005-04-28 Thread Mark Cain
that called the header in # 4 ? In other words, I want the name of #1 to be reported in #4. If I use $_SERVER["PHP_SELF"], that variable reports the name of #4. It gets a little tricky because #3 is called from within a JavaScript tag. Got any suggestions? Mark Cain

Re: [PHP] empty function and array indices

2005-05-01 Thread Mark Cain
cho array_key_exists('c', $a)? 'empty':'not empty'; Mark Cain - Original Message - From: "Gabriel Birke" <[EMAIL PROTECTED]> To: Sent: Sunday, May 01, 2005 4:47 PM Subject: [PHP] empty function and array indices > Hello! > > Suppos

Re: [PHP] Newbie Help

2005-05-01 Thread Mark Cain
thing like that. Mark Cain - Original Message - From: "Thomas Bonham" <[EMAIL PROTECTED]> To: Sent: Sunday, May 01, 2005 10:39 PM Subject: [PHP] Newbie Help > Hello All, > > First of I'm new to this a hop I'm doing this right. > > If some one ca

Re: [PHP] Newbie Help

2005-05-01 Thread Mark Cain
first remove the space between GET and [ I think this keeps your script from find the variable "page" secondly the variable "page" already has the php extension being passed to it via the GET statement make the include like: {include($_GET['page']);} try it and le

Re: [PHP] Newbie Help

2005-05-01 Thread Mark Cain
the variable -- resulting in main.php, links/index.php.php, email/email.php.php and so forth. Do it one place or the other -- but do it consistently. Looks like you're close to getting it to work and I'm close to going to bed. Mark Cain > >>The code that I'm trying to

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
_data; or a little more succinctly $my_data = "foo bar"; $new_data = preg_replace('/(.*)(<\/.*>)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message - From: "Jared Sherman&

RE: [PHP] Check for doubleposts

2005-05-04 Thread Mark Rees
-Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED] Sent: 03 May 2005 17:49 To: php-general@lists.php.net Subject: [PHP] Check for doubleposts Hi, what is the easiest way to check if a person i registered twice in a mysql-table. Lets assume that I only check if the l

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
_data; or a little more succinctly $my_data = "foo bar"; $new_data = preg_replace('/(.*)(<\/.*>)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message - From: "Jared Sherman&

Re: [PHP] age function

2005-05-04 Thread Mark Cain
The following code was taken directly from www.php.net/date $dob_month || ($dob_month==$cur_month && $cur_day>=$dob_day) ) return $cur_year-$dob_year; else return $cur_year-$dob_year-1; } ?> Mark Cain` - Original Message - From: &q

RE: [PHP] setting condition problem

2005-05-04 Thread Mark Rees
Does this help? Select * From Projects Order By Relate,Title If not, please provide more details on the output you want to see and the structure of your table Mark -Original Message- From: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED] Sent: 02 May 2005 21:49 To: php-general

Re: [PHP] Finding out their server type

2005-05-04 Thread Mark Cain
you how many websites are on that server. I ran across one the other day that had about 4.000 websites on it. http://www.whois.sc/e-zekiel.com Mark Cain - Original Message - From: "Computer Programmer" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 04, 2005 7:44 AM Subjec

RE: [PHP] Tracking what has been changed

2005-05-05 Thread Mark Rees
-Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 00:29 To: php-general@lists.php.net Subject: [PHP] Tracking what has been changed Here's the scenario... I am building a site in which users will be able to create and then later edit personal information. Wh

RE: [PHP] insert not working

2005-05-05 Thread Mark Rees
-Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 10:16 To: php-general@lists.php.net Subject: [PHP] insert not working $query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_in

RE: [PHP] Re: sort by date

2005-05-06 Thread Mark Rees
I strongly recommend that you convert the db column to the datetime datatype if at all possible. However if you do wish to do it this way, read: http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html And if you can't get it to work, bear in mind that STR_TO_DATE() is available as of MyS

Re: [PHP] need class to send email w/attachments

2005-05-06 Thread Mark Cain
You could try this link. I know that you will find something there: http://www.phpclasses.org/ Mark Cain - Original Message - From: "Bosky, Dave" <[EMAIL PROTECTED]> To: Sent: Friday, May 06, 2005 12:44 PM Subject: [PHP] need class to send email w/attachments Any rec

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Mark Charette
M. Sokolewicz wrote: > Rory Browne wrote: > >> What might be more useful is stripping out comments, If you don't use >> javascript it is simply a case of replacing all with >> a blank space. If you do though it's more complicated since it is >> considered good practice to place js inside blocks,

RE: [PHP] I'm having a blond moment with a while loop???

2005-05-09 Thread Mark Rees
-Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: 08 May 2005 11:56 To: php-general@lists.php.net Subject: [PHP] I'm having a blond moment with a while loop??? Hi guys, I'm doing something dumb but I can't see it. The basic premise is: sql search of orders sort

RE: [PHP] need manual reload on Mac client

2005-05-09 Thread Mark Rees
-Original Message- From: Francesco Casalena [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 10:18 To: php-general@lists.php.net Subject: [PHP] need manual reload on Mac client Hi, I've a strange problem on this scenario: -SERVER MacOs X server w/ Apache's httpd2, MySql Max, PHP5

RE: [PHP] Accessible HTML - OT

2005-05-09 Thread Mark Rees
-Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 15:40 To: php-general@lists.php.net Subject: [PHP] Accessible HTML - OT Hiya! I have just come back from the client visit and one of the issues that arose was over the use of accessible markup, more specifical

[PHP] While and echoing HTML

2005-05-09 Thread Mark Sargent
$db); $myrow = mysql_fetch_array($result); $num = mysql_num_rows($result); ?> Product Type $i=0; while ($i < $num){ $product_type=mysql_result($result,$i,"product_type_detail"); echo "" } $i++ ?> I get the folowing error, *Parse error*: parse error, unexp

[PHP] Test: Please Ignore

2005-05-09 Thread Mark Sargent
Testing receipt of post..cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] While and echoing HTML

2005-05-10 Thread Mark Sargent
Prathaban Mookiah wrote: I guess it is the missing semicolon. And you can write: echo "" as simply echo "$product_type" Prathap -- Original Message --- From: Mark Sargent <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Tue, 10 May 2005 13:23:51

Re: [PHP] While and echoing HTML

2005-05-10 Thread Mark Sargent
Mary-Anne Nayler wrote: oh, and the i++ should be inside the while loop and there is also a missing semi colon after the echo, ie; $i=0; while ($i < $num){ $product_type=mysql_result($result,$i,"product_type_detail"); echo ""; $i++ ; } Mark Sargent wrote, On 10/05/05 02:2

RE: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Mark Rees
In addition to the valid suggestions thus far, another option which may suit your purpose is to display an image from webserver2 in the page on webserver1. You can put a JavaScript redirection in the image's onload event. -Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] Se

[PHP] Inner Join or 2nd Query...?

2005-05-10 Thread Mark Sargent
Hi All, with wanting to show both product types(Switch, Router etc) and Makers(Cisco, Avaya, etc) on the one page in select boxes, I was wondering, do you use 2 seperate queries to the database or do you inner join to get all in 1..? I have set up different tables with related id's etc. So, to

RE: [PHP] SQL Date guru in the house?

2005-05-11 Thread Mark Rees
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 07:17 To: php-general@lists.php.net Subject: [PHP] SQL Date guru in the house? Hi All, I have a small problem. I have a project in which someone has got three integer fields for holding the date

RE: [PHP] Inner Join or 2nd Query...?

2005-05-11 Thread Mark Rees
Hi All, with wanting to show both product types(Switch, Router etc) and Makers(Cisco, Avaya, etc) on the one page in select boxes, I was wondering, do you use 2 seperate queries to the database or do you inner join to get all in 1..? I have set up different tables with related id's etc. So, to

RE: [PHP] protect your CSS files, and possibly other extenstionsas well...

2005-05-11 Thread Mark Rees
Richard Lynch wrote: >You could do all this... > >Or you could just move the files outside your web tree and change your >include path. [shrug] > > This is probably true, but I was thinking of a virtual hosting environment where its easier to maintain the code when its all in a sub-director

Re: [PHP] Inner Join or 2nd Query...?

2005-05-11 Thread Mark Sargent
Mark Rees wrote: Hi All, with wanting to show both product types(Switch, Router etc) and Makers(Cisco, Avaya, etc) on the one page in select boxes, I was wondering, do you use 2 seperate queries to the database or do you inner join to get all in 1..? I have set up different tables with related

Re: [PHP] Inner Join or 2nd Query...?

2005-05-11 Thread Mark Sargent
you're looking for, you need to describe what your goal is. You might also give more of your table structure since you're asking about joins. kgt Mark Sargent wrote: Hi All, with wanting to show both product types(Switch, Router etc) and Makers(Cisco, Avaya, etc) on the one pa

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
Richard Lynch wrote: On Wed, May 11, 2005 10:19 pm, Mark Sargent said: I'll try this differently(I hope). With the below code, variables are named/set twice ($db, $num, $result, $myrow) etc. In ASP, from what I remember, that would be a no no. Currently, this code only populates the

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
r_num; $i++){ $maker_myrow=mysql_fetch_array($maker_result); $maker=mysql_result($maker_result,$i,"maker_detail"); $maker_id=mysql_result($maker_result,$i,"maker_id"); echo "$maker"; } ?> *Warning*: mysql_num_rows(): supplied argument is not a valid MySQL result resourc

[PHP] Posts taking over an hour to be displayed

2005-05-12 Thread Mark Sargent
Hi All, is anyone else experiencing this.? Over an hour for my posts to be seen. Happening from work and home. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
Richard Lynch wrote: On Thu, May 12, 2005 12:17 am, Mark Sargent said: Hi All, ok, this revised code produces the error below, You took out the mysql_connect completely??? Don't do that. mysql_select_db("status",$db); $maker_result = mysql_query("SE

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
Richard Lynch wrote: On Thu, May 12, 2005 12:17 am, Mark Sargent said: Hi All, ok, this revised code produces the error below, You took out the mysql_connect completely??? Don't do that. Sorry, was following what you suggested b4, no..? $db = mysql_connect("localho

RE: [PHP] sleep function

2005-05-13 Thread Mark Rees
You could try sending all the data to the client at once then achieving the delay effect with JavaScript perhaps? That way, you are not reliant on external factors like connection speed. On Thu, May 12, 2005 8:38 pm, James Williams said: > I just tried a couple of output_buffering on a test script

RE: [PHP] Add to array problem

2005-05-16 Thread Mark Rees
-Original Message- From: mayo [mailto:[EMAIL PROTECTED] Sent: 16 May 2005 15:26 To: php Subject: [PHP] Add to array problem I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); Looking at

[PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Mark Sargent
FROM Customers WHERE customer_username = $username AND customer_password = $password") or die (mysql_error()); $myrow = mysql_fetch_row($result); $customer_id = $myrow[0]; $_SESSION['customer_id'] = $customer_id; ?> echo 'SQL Query: '.$result.''; echo "Customer

RE: [PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Mark Rees
I expect (indeed I sincerely hope) that customer_username AND customer_password columns are character datatypes. So it would be a good idea to put single quotes around the values you are trying to select from them. -Original Message- From: Mark Sargent [mailto:[EMAIL PROTECTED] Sent: 18

Re: [PHP] html editor written in PHP

2005-05-18 Thread Mark Cain
ions of JS CMS which work wonderfully well on windows machine and appear broken on Macs. Mark Cain - Original Message - From: "Dustin Krysak" <[EMAIL PROTECTED]> To: "PHP" Sent: Wednesday, May 18, 2005 6:02 PM Subject: [PHP] html editor written in PHP > Has anyo

RE: [PHP] Class function calling another function in class

2005-05-19 Thread Mark Rees
You might find this interesting if you are working with hierarchies in SQL http://www.intelligententerprise.com/001020/celko.jhtml?_requestid=72430 3 -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 19 May 2005 07:35 To: Charles Kline Cc: php-general@lists.php.net S

[PHP] Japanese Fonts in php

2005-05-20 Thread Mark Sargent
mic site for my company, minus any bells and whistles interface wise. Do I have to set something in php/apache for this.? Thanx. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] OT - Table help needed~ PLEASE

2005-05-20 Thread Mark Rees
ColourDescription VARCHAR Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 May 2005 00:12 To: php-general@lists.php.net Subject: [PHP] OT - Table help needed~ PLEASE Hi, I am working on a program for a clothing manufacture and need some help designing

RE: [PHP] Php with mysql

2005-05-23 Thread Mark Rees
This is a beginner's guide to SQL syntax, please review it http://www.webdevelopersnotes.com/tutorials/sql/mysql_guide_querying_mys ql_tables.php3?PHPSESSID=fb6c7c7a548b6a271a75d623ce04cc9c The answer to your question (which someone has already given in a previous reply to you) is SELECT `User_n

RE: [PHP] Php with mysql

2005-05-23 Thread Mark Rees
(posted again with another syntax error corrected) This is a beginner's guide to SQL syntax, please review it http://www.webdevelopersnotes.com/tutorials/sql/mysql_guide_querying_mys ql_tables.php3?PHPSESSID=fb6c7c7a548b6a271a75d623ce04cc9c The answer to your question (which someone has already g

RE: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread Mark Cubitt
I'm not sure but I think it would depend on the programming language and with php File I/O is slower then database (mySql anyway). Where as Perl would probably be quicker with the text file. I could be wrong though Regards Mark Cubitt > -Original Message- > From: Travis

RE: [PHP] PHP5 bloats the code

2004-04-24 Thread Mark Charette
to them since PHP doesn't have method signatures, meaning I _don't_ know a priori what will be passed to them. Currently type checking is mandatory if you want to avail yourself of a single method name. Mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using PHP4 4.3.4 as a CGI

2004-05-12 Thread Mark Constable
Debian testing system with a recent update to php-cgi 4.3.4. I have been using the /usr/bin/php4 binary as a some.cgi with a shbang line of "#!/usr/bin/php4" which worked fine up until this recent 4.3.4 update. Now the new 4.3.4 php4 binary does not produce a "Content-type: index/html\n\n" header

Re: [PHP] Methods for instatiating an object

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 08:41 pm, Jordi Canals wrote: > A)$object = new MyClass; > B)$object =& new MyClass; > 1) In case A, PHP creates a new object and returns a Copy of this new > object, so really I will have the object two instances for the object in > memory ... > > 2) In case B, PHP cre

Re: [PHP] parsing value by URL

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 09:42 pm, gowthaman ramasamy wrote: > I have a problem in passing the value to another PHP script from the > first one. can any one help me to debug it. > > ENCTYPE="text/plain"> > if(isset($_POST['submit'])) > { > does many things > > $detail_file='testrun_hetero_srtdou

Re: [PHP] default and another constructor

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote: > Please ,could anybody help me ? I'm not so familiar with PHP. > > I've the following problem with my code when I try to make an object from > the class "forum" with the code "$test=new forum()". I always get a > warning on this: "Warning: M

Re: [PHP] default and another constructor

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 11:27 pm, Rudy Metzger wrote: > On Wed, 2004-05-12 at 15:18, Mark Constable wrote: > > You can at least make the below work by removing the first > > forum() instance and using > > > > function forum($naam=NULL,$tijd=NULL,$tekst=NULL) > > &g

Re: [PHP] Max file size for uploads?

2004-05-12 Thread Mark Pecaut
, referer: http://dinghy.homeip.net/upload.php > > Any thoughts? If you are using apache, this might help: http://httpd.apache.org/docs/mod/core.html#limitrequestbody -Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using PHP4 4.3.4 as a CGI

2004-05-12 Thread Mark Constable
Debian testing system with a recent update to php-cgi 4.3.4. I have been using the /usr/bin/php4 binary as a some.cgi with a shbang line of "#!/usr/bin/php4" which worked fine up until this recent 4.3.4 update. Now the new 4.3.4 php4 binary does not produce a "Content-type: index/html\n\n" header

Re: [PHP] Re: Date Function - Empty Value

2004-05-20 Thread Mark Pecaut
9/30/2003# WHERE foo='bar'; or UPDATE tablename SET date_field=NULL WHERE foo='bar'; if you want to make that field null. If it complains when you try to set it NULL and you want it to be null, put 'No' for 'Required' for that field in Design View. -Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Piping new email to a PHP file

2004-05-22 Thread Mark Pecaut
7;, then I tried to pipe it to a > program (the php interpreter) like this "|php /home/php-script.php" > and that didn't work either. try the full path: |/usr/local/bin/php /home/php-script.php or, if using qmail, | /var/qmail/bin/preline /usr/local/bin/php /home/php-script.php us

RE: [PHP] Re: Query Query

2004-05-30 Thread Mark Charette
> From: Khan [mailto:[EMAIL PROTECTED] > you have 'company_name' in SET and then again in WHERE. This looks fishy. Very common, often required, and perfectly legal. Mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OT (Re: IMPORTANT MASSAGE FROM THE BANK)

2004-06-03 Thread Mark Pecaut
cam > list!!! http://419eater.com/ This is way off topic, but still interesting... -Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Email with attachment function

2004-06-17 Thread Mark Cubitt
except it isn't divided up (i.e. attachment is text) Regards Mark Cubitt function send_mail($to, $from, $subject, $body, $attachment = '', $attachmentDir = '') { $path_to_sendmail = "/usr/sbin/sendmail"; $fp = popen(&quo

[PHP] PHP code causing very high load.  Assistance with cause / diagnosis

2004-06-21 Thread Mark Hutchinson
reccomendations on what I could do to optimize, anyalyze etc. this? Assistance appreciated. Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: test if $int is integer

2004-06-29 Thread Mark Leavy
Yeah, 4 will pass the is_int() test, '4' won't. I prefere just to use if(ctype_digit($foo)){ ... } On Tue, 29 Jun 2004 15:12:22 -0700 (PDT), Matthew Sims <[EMAIL PROTECTED]> wrote: > I recently purchased George Schlossnagle's Advanced PHP Programming and on > page 85 in the Error Handling chapter

RE: [PHP] Is "Function Constants" the Correct Term?

2004-07-18 Thread Mark Charette
fined or undefined once they have been set' 'Constants may only evaluate to scalar values' Unambiguous. To paraphrase the comments from the old ANSI C group, "Any violation of the rules may cause missles to fly from your nose". Mark C. -- PHP General Mailing List (http://ww

[PHP] TGA image support?

2004-07-19 Thread Mark Collin
Is there any support for TGA images in PHP. I have been writing some code to upload files, convert them to JPG and create thumbnails however I cannot find any information on using TGA files as the source. Can anybody help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

<    6   7   8   9   10   11   12   13   14   15   >