|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Mon Feb 05 2001 - 22:07:22 CST
php-general Digest 6 Feb 2001 04:07:22 -0000 Issue 495
Topics (messages 38255 through 38349):
Re: Which Regex library?
38255 by: johnny p.
Make good money online! It's easy ....
38256 by: NEWS!!
Why doesn't this work? Please trouble-shoot my script.
38257 by: chip.wiegand.simrad.com
38271 by: chip
38280 by: MarkRoedel
Re: Making a object from one class available to all objects in th e calling class
38258 by: Tim Ward
38264 by: szii.sziisoft.com
array max min
38259 by: rui.websolut.net
38261 by: Steve Werby
38266 by: rui.websolut.net
38272 by: Steve Werby
38293 by: rui.websolut.net
GD
38260 by: Brandon Orther
Re: job search/posting software
38262 by: Nathan Cassano
AS400 SQL Errors and Resources
38263 by: Karl J. Stubsjoen
Cobalt RaQ
38265 by: szii.sziisoft.com
38267 by: K.M. The
38270 by: Julian Morcinek
38278 by: szii.sziisoft.com
include files
38268 by: David VanHorn
38276 by: Steve Werby
38279 by: Brian V Bonini
38283 by: David VanHorn
38290 by: Brian V Bonini
38295 by: Christian Reiniger
Re: Java Servlet Support
38269 by: Alex Akilov
GD for: PHP on WIN
38273 by: Brandon Orther
38274 by: Alexander Wagner
Off the point! (Apache)
38275 by: Scott Fletcher
saving images from mysql to file
38277 by: Phillip M.(Mike) Bishop
How to reference global variables in strings
38281 by: Karl J. Stubsjoen
38311 by: Steve Edberg
GD font errors
38282 by: Brandon Orther
XML methods(SAX/expat)
38284 by: szii.sziisoft.com
uploading file
38285 by: Shane McBride
Is PHP integrated with LDAP?
38286 by: Zhu George-CZZ010
Attempt to unsubscribe failed
38287 by: Jon Jacob
Re: XML Parsing with PHP
38288 by: Chris Lee
38292 by: Joe Stump
38294 by: Brian V Bonini
PHPSESSID location?
38289 by: Shane McBride
GD with TTF
38291 by: Brandon Orther
Using a background image with GD
38296 by: Brandon Orther
simple config. question
38297 by: Don
38298 by: Shane McBride
38299 by: Christian Reiniger
38320 by: Alain Fontaine
COM and PHP
38300 by: Conover, Ryan
Revised [PHP] COM and PHP
38301 by: Conover, Ryan
Re: Learning MySQL
38302 by: Boaz Yahav
Re: PHP hosting - the final frontier.
38303 by: Boaz Yahav
Getting image size from gif/jpeg
38304 by: r a n d y
38305 by: Boaz Yahav
38309 by: r a n d y
38315 by: Brian V Bonini
Apache Mod_Auth_DB.
38306 by: Dave McNicholl
Re: [PHP-WIN] Revised [PHP] COM and PHP
38307 by: Conover, Ryan
38308 by: Sterling Hughes
htaccess
38310 by: Kurth Bemis
38313 by: James, Yz
Automating tasks in PHP?
38312 by: James, Yz
38316 by: Steve Werby
38318 by: Christian Reiniger
38322 by: Dave VanAuken
General Question: OOP
38314 by: Kath
38317 by: Steve Werby
COM Question
38319 by: Conover, Ryan
SELECT options is null or not an object
38321 by: Gobins, Debbie
Parse error on blank line...
38323 by: Jackson, Michael
38325 by: April
38327 by: April
38328 by: johnny p.
38329 by: Jackson, Michael
38330 by: April
[newbie] Array form values.
38324 by: April
38332 by: David Robley
Cookie problem
38326 by: Ben Wiechman
PHP, MySQL and XML
38331 by: Thor M. Steindorsson
38339 by: Sean Cazzell
Re: Select list with PHP
38333 by: Richard Lynch
Mixing PHP code with phplib templates... possible?
38334 by: derek fong
PHP mail as 'nobody'
38335 by: Dave Goodrich
Timestamp field
38336 by: Chad Guilette
38337 by: David Robley
MySQL previous next query
38338 by: Luis Lebron
How can I do this?? :((
38340 by: Sandeep Hundal
38345 by: Steve Werby
SQL Statments?
38341 by: Jonathan Sharp
38343 by: Jason Brooke
38344 by: David Robley
Re: Problem with Zend Encoder testdrive - Win2k
38342 by: Carsten Gehling
Need some Help! [:)]
38346 by: Kelly Hamlin
Generic cloner?
38347 by: Chien-pin Wang
Re: How to save something in a Java Applet as an IMAGE file?
38348 by: Lise Fleming McKinney
I wish: IIS and ISAPI $PHP_AUTH_USER
38349 by: Shane McBride
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
well, i would try this:
ereg('([0-9]+\.){4}', $email, $res);
I'm not sure if that will work, but your expression is definitely not
correct. I would reduce it down to its most basic element, perhaps, and
try that:
ereg('[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+', $email, $res);
If that works, then just use that.
johnny p.
> -----Original Message-----
> From: Shawn J. Wallace [mailto:lists
wa.ca]
> Sent: Monday, February 05, 2001 8:17 AM
> To: johnny p.
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] Which Regex library?
>
>
> Ok, this is from memory, but.. I'm trying to pull the IP
> addresses of mail
> relays out of an email - and they are of the form
> [xxx.xxx.xxx.xxx], so I
> do something like:
>
> ereg('\[(0-9\.)*]', $email, $res)
>
> It finds some but not all of them in the email. What I
> really do is put
> that in a while statement and replace each found ip with a
> marker so I can
> repeat the regex again and again.
> ---
> Shawn J. Wallace (shawn
justweb.com)
> Justweb Inc. - http://www.justweb.com
> (519)652-6599 or (800)343-9312
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
>
attached mail follows:
Please see the bottom of the message for the remove instuctions.
What you are about to read is tried, true, proven and effective. Above all, this offer
is utterly and ridicously excellent!!
Have you ever tried or considered making money using the internet? Are you
marketing or promoting a business online? There is a lot of money to be made on the
internet and in reality, anyone can do it! Why not get your share? Read on and
weep with joy, if you would like to know exactly how to begin making money online
right away!
FREEDOM - Working on the internet allows you the freedom to work at home, or
wherever you keep a computer with an internet connection.
FLEXIBILITY - Work when you want, choose your own hours! No time clocks
here! Spend more time with your family, and supplement your current income.
Maybe even give up your day job.
There's definately more money to be made on the internet. In fact there are huge
amounts, but lets not get carried away. The secret is to have the right system, as you
must have the right method for marketing and promoting your business. Of course
you will firstly need a money generating business, if you don't already have one. If
you need an online business, you will be referred to a reputable one if you read on.
Prepare to be amazed!
The following info and programmes would cost you in excess of $1000.00, if you
bought them singularly over your internet travels. Not to mention the time, and
painstakingly gruelling effort you are saved. It took me years to perfect, collect, and
put together this system. Nowhere else will you find such a complete package.
Experienced marketers keep these secrets closely guarded from possible
competition.
METHOD - You must promote your business to as many people as you can. The
more exposure, the more money you will generate. Classified sites, FFA sites and
search engine submissions are all great to mess around with, but are not worth the
time that you put in. Replies, hits and sales from these advertising methods are dismal
to say the least. Opt in lists are much the same. So many people use these methods,
that the chance of your sales ad being noticed are slim. The moment I discovered
bulk emailing my profits soared literally overnight. Bulk mailing reaches you your
target customers and reaches them quickly and efficiently.
Bulk mailing is the simplest way to get your advertisement seen by your target
audience. You could think of it as dropping thousands of flyers advertising your
business from an aeroplane over a city, some will be read and some will not. The law
of averages applies to bulk mailing, sales can be increased by a catchy sales ad or
decreased by a boring, uninspiring ad. Bulk mailing is wrongly frowned apon by a
section of the internet community. Bulk emailing is an amazing new way of advertising
and if gone about correctly you can avoid the hassles and achieve your aim - to
generate sales. There are the cowboy bulk emailers who send out huge amounts of
mail everyday, they do not give recipients the option to be removed from thier lists
and basically don't give a damn. These 'cowboys' are the cause of the bad press on
bulk mailing, they may make a lot of money in the short time they are mailing, but they
never last long. Internet service providers will not stand for that kind of behavior.
The methods I am about to outline to you here will have you profiting continuosly for
years to come, not just for a couple of days. You will not be sending out mail blindly,
but in a sensible and controlled manner. If you are going to send out bulk email, then
why not do it the right way to start with and save yourself and others a lot of
headaches. There are thousands upon thousands of people out there who are ready
and willing to respond to your ads and purchase your products. Get out there and be
seen, stand out from the crowd and reap the rewards. It is not as hard as you may
think! You must have a system to be successful and to work out the correct system
for you could take years of trial and error. There are not many successful marketers
out there who are willing to give away their secrets such as I have here!
To save you gruelling and lengthy task of learning to make money online, I have
outlined and supplied you with the complete, ready to go system. I fully guarantee
the system and the associated programmes. They will work for you!
First you will need the right business opportunity or product to sell. You can search
around for one yourself, but beware of scams. I will refer you to a great business
opp later in this message. You will need to write a killer ad that grabs peoples
attention, try different ads and gauge the responses.
To send bulk mail you need a reliable bulk mailing programme, I will refer you to a
great one later in this message. Once again, there are many different programmes
around and some are better than others. They can range in cost from free to
$3000.00. The free programmes that are around tend to be slow and unreliable, they
also blatantly expose your dialup ISP causing more trouble than they are worth. The
best solution is a low cost mailer which masks your dialup ISP and sends about 5000
emails per hour. I will refer you to the best bulk mail programme for your purposes
later in this message.
You need loads and loads of fresh (preferably targeted) email addresses to send your
ads to. No doubt you will find offers all over the place selling email lists. Do Not
buy these lists whatever you do. A great one I have seen is 1 000 000 email
addresses for $30.00. Most of these addresses are old and full of undeliverables. I
will tell you how to get your addresses later in this message.
POP 3 ADDRESS EXTRACTOR - The process of collecting addresses from
removal requests is a very lengthy and tedious job, nevertheless it must be done
religiously after every mailing. Personally, I've laboured through this task every day
to compile my remove lists. After stumbling across a POP 3 extractor, things
instantly became so much easier. This simple programme runs from your desktop. It
logs into your POP 3 accessable email account and collects all email addressess from
all of the messages from your inbox and then saves them into a file. There is no
simpler way to collect your remove addresses! It even deletes the messages as it
goes, leaving your inbox nice and clean ready for your next mailing. This programme
saves you countless hours and lets you spend more time on other tasks. POP 3
Extractor normally sells for over $50.00, but not anymore!
You will need a list management programme. These programmes are designed
specifically for bulk mail lists. They allow you to manage, organise, clean removes,
and save your lists. Your removes can be easily stored and new lists can be purged
of these unwanted addresses. They are worth there weight in gold! read on!
You will need a web space. You should never link directly to your business URL
from your email ad. Some people like to complain to the webhost of the business
that you are bulk mailing, and try to have you booted off. To prevent this happening,
get yourself some free webspace. Design a simple page linking to your product or
business URL. It's very easy to set up a webpage, as most hosts offer design
wizards to guide you through. If you get kicked off your free website, simply sign up
for another. Link to your free webspace from your intial email ad. To find a free
website, go to www.freewebspace.net, or find your own through an engine search. If
you prefer you can ask the reader to reply to your ad with a request for "more info"
instead of sending them to another website. You can then direct them to your
business site directly, as you have proof of their request.
You need a "throw away" dial up ISP (Internet service provider). There are people
out there, who will check your emails properties to find out who your ISP is. They
will then complain to your ISP which could result in the closure of your account. You
should try to keep your mailings to a maximum of
10 000 per day. You can send more if you wish, but your internet service provider
may not like it too much and at the worst may close your account. This occasionally
happens, so it makes sense to have a disposable account to use for your bulk mailing.
Then if it becomes shut down, you still have your main everyday account. Simply
sign up for another throw away account, and continue on your merry way.
Using the above methods, you will see results right away. Your degree of success
depends on the grab of your ad and your product. It took me a couple of years to
learn and perfect these methods, it will take you a lot less after reading this
information. Even if you are a beginner, you will see results right away. There is no
need to rush into it, take your time and set everything up properly. Things will run
much more smoothly if you plan ahead. If you fail to plan, you plan to fail!
I have put together for you a package which includes all of the programmes you will
need to start and run your marketing campaign. The programme package is called
Jumpstart Kit 2001. The value of the kit is in excess of $1000.00, but all I'm
asking is a mere $59.00. I am only offering the kit for a short time at this price, the
price will go up to $180.00 again next month. Now is a great opportunity for you to
purchase these excellent programmes at such a unheard of price.
JUMPSTART KIT 2001 INCLUDES -
Business opportunity
http://www.goingplatinum.com/member/buckeroo
Bulk mailing programme
Incredible new programme for mailing out your ads. Usually costs well over $200.
This mailer actually hides your ISP's details from grumpy people who might want to
complain. Sends mail incredibly fast compared to other mailers, it utilises your
modem's full potential. If you can think of your modem as an eight lane highway for a
moment. Conventional mailing programmes will only send mail down one of these
lanes. This mailer actually uses all eight lanes, sending your mail a lot faster and
more efficiently.
Email Addresses
I will supply you with 50 000 fresh, targeted and unused email addresses to get you
off on the right foot.
Email address collecting programme
Fresh email addresses will not be far away with this programme in your arsenal.
Simply type in a keyword and sit back and watch your addresses roll in. You will
have an endless supply of addresses whenever you require them.
Pop 3 extractor programme
This programme will log onto your email account and collect addresses to place into
your remove database. Very easy to use and also very essential.
List manager
List manager is required to keep your email lists in order. This programme can
breakup large lists into any size. Your remove database is kept here and all new
email lists can be purged before they are sent to.
All of the above programmes come with detailed instructions and full technical
support 24 hours a day 7 days a week. I would be surprised if you found even one
of these programmes alone selling for $59.00.
To order now and take advantage of this unbeatable offer, simply follow this link to
make your secure online payment. The programmes will be emailed to you within 12
hours of your order.
http://www.geocities.com/starterkit2000au/JUMPSTART.html
This message was posted as you have visited my site or requested
information from me at
some time. To unsubscribe from any possible future mailing, send an
email to
starterkit2000au
yahoo.com.au with "unsubscribe" as the subject
attached mail follows:
Hi,
Maybe someone can take a look at the script below and tell how to make the
bottom part work
the same way the top part works. The top part (select box) works where the one
item chosen is
written to a hidden file and passed on to the next page, then on and on through
several more
pages and to the last page that emails the chosen items to our marketing dept.
Problem is,
it only allows one choice at a time. I tried it with the multiple option set but
the final form shows
only the last item chosen from the list of multiple items. So I tried with the
checkboxes, but that
doesn't work at all.
____________________________________________________________________________
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Simrad USA Brochures Request Page</title>
</head>
<body>
<form method = post action = 'form_combos.php'>
<?
$name;
$value;
while (list($name, $value) = each($HTTP_POST_VARS))
{
echo "<input type=\"hidden\" value=\"$value\" name=\"$name\">\n";
}
?>
Please choose the brochures you are interested in receiving.
<select name = 'listbox1'>
<option selected value = ''>Select ...</option>
<option>AP11</option>
<option>AP12/AP14</option>
<option>AP20 Series</option>
<option>AP35</option>
<option>AP45</option>
<option>AP9MK3</option>
<option>Tiller/Wheel Pilots</option>
<option>WP5000</option>
</select><br /><br />
<br />
<br />
<input type="checkbox">AP11<br />
<input type="checkbox">AP12/14<br />
<input type="checkbox">AP20 Series<br />
<input type="checkbox">AP35<br />
<input type="checkbox">AP45<br />
<input type="checkbox">AP9MK3<br />
<input type="checkbox">Tiller/Wheelpilots<br />
<input type="checkbox">WP5000<br />
<br />
<br />
<input type = submit>
</form>
</body>
</html>
-----------------------------------------------------------------------------------------------------------------------------------
On the checkboxes I had at first specified the name and value fields, but that
didn't work either.
My goal is to have the above list allow multiple choices that are passed to the
next page,
and so on through about 6 pages to the final page. Even better yet would be a
text box where
the end-user could specify a quantity of brochures, for multiple choices, that
would be my
preferred form.
Thankyou for your help,
Chip Wiegand
Computer Services
chip.wiegand
simrad.com
Simrad, Inc
Lynnwood, WA
425-712-1138
"There is no reason anyone would want a computer in their home."
--Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977
(-- Then why do I have nine? Somebody help me!)
attached mail follows:
I tried your suggestion, as you can see from the script below, but it
still does not work, I get the
word 'array' where I should get the selected options.
--------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Simrad USA Brochures Request Page</title>
</head>
<body>
<form method = post action = 'form_combos.php'>
<?
$name;
$value;
while (list($name, $value) = each($HTTP_POST_VARS))
{
echo "<input type=\"hidden\" value=\"$value\" name=\"$name\">\n";
}
?>
Please choose the brochures you are interested in receiving.
<select name = "listbox1[]" multiple="multiple">
<option selected value = ''>Select ...</option>
<option>AP11</option>
<option>AP12/AP14</option>
<option>AP20 Series</option>
<option>AP35</option>
<option>AP45</option>
<option>AP9MK3</option>
<option>Tiller/Wheel Pilots</option>
<option>WP5000</option>
</select>
<br />
<br />
<input type="checkbox" name="AP11[]">AP11<br />
<input type="checkbox" name="AP12[]">AP12/14<br />
<input type="checkbox" name="AP20[]">AP20 Series<br />
<input type="checkbox" name="AP35[]">AP35<br />
<input type="checkbox" name="AP45[]">AP45<br />
<input type="checkbox" name="AP9[]">AP9MK3<br />
<input type="checkbox" name="TP[]">Tiller/Wheelpilots<br />
<input type="checkbox" name="WP[]">WP5000<br />
<br /><br />
<input type = submit>
</form>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------------
Chip Wiegand
Computer Services
chip.wiegand
simrad.com
Simrad, Inc
Lynnwood, WA
425-712-1138
"There is no reason anyone would want a computer in their home."
--Ken Olson, president, chairman and founder of Digital Equipment
Corp., 1977
(-- Then why do I have nine? Somebody help me!)
Please respond to andy
mainetoday.com
To: Chip Wiegand
cc:
Subject: Re: [PHP] Why doesn't this work? Please trouble-shoot my
script.
On Monday, February 5, 2001, at 10:59 AM, chip.wiegand
simrad.com wrote:
> Maybe someone can take a look at the script below and tell how to make
the
> bottom part work
> the same way the top part works.
put square brackets immediately after the name element of your select
and checkbox tags. i.e.:
<select name="mySelect[]" multiple="multiple">
<checkbox name="myBox[]">
:: Andrew Rush :: Lead Systems Developer :: MaineToday.com ::
**************************************************************************
"Crippled but free, blind all the time, i was learning to see"
- J. Garcia / R. Hunter
**************************************************************************
The views expressed herein are not necessarily those of my employer,
but
they let me have them anyway.
attached mail follows:
> -----Original Message-----
> From: chip [mailto:chip.wiegand
simrad.com]
> Sent: Monday, February 05, 2001 11:37 AM
> To: php-general
lists.php.net; andy
mainetoday.com
> Subject: Re: [PHP] Why doesn't this work? Please trouble-shoot my
> script.
>
>
> I tried your suggestion, as you can see from the script below, but it
> still does not work, I get the word 'array' where I should get the
> selected options.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html>
> <head>
> <title>Simrad USA Brochures Request Page</title>
> </head>
> <body>
> <form method = post action = 'form_combos.php'>
> <?
> $name;
> $value;
> while (list($name, $value) = each($HTTP_POST_VARS))
> {
> echo "<input type=\"hidden\" value=\"$value\" name=\"$name\">\n";
Since you're dealing with a situation where $value may actually be an
array, perhaps you should consider serializing it first?
(from http://php.net/serialize)
serialize - Generates a storable representation of a value
Description
string serialize (mixed value)
Serialize() returns a string containing a byte-stream representation of
value that can be stored anywhere.
This is useful for storing or passing PHP values around without losing
their type and structure.
To make the serialized string into a PHP value again, use unserialize().
Serialize() handles the types integer, double, string, array
(multidimensional) and object (object properties will be serialized, but
methods are lost).
--- Mark Roedel | "A wise man once told me that everything in Systems Programmer | life is either a lesson or a joke. Our task LeTourneau University | is to figure out which is which..." Longview, Texas, USA | -- Chris Savage
attached mail follows:
I haven't tested this, but assuming you meant an instance of class_y being available to each instance of class_x ...
class class_x { var y_of_x; function class_x() // i.e. constructor { $this->y_of_x = new class_y(); } function x { $n = new $y; } function z { $n->test(); } }
> Hi, > > Can someone advise on the following. > > class class_y > { > function test() { > return "test"; > } > } > > class class_x > { > function x { > $n = new $y; > } > > function z { > $n->test(); > } > } > > I need the object of class_y available to the other objects of classx > but I cant figure out how I do this. Any ideas? > > Regards, Steve Maher
Tim Ward Senior Systems Engineer
Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html
attached mail follows:
IMHO, I'd use
class class_y { function test() { return "test"; } }
class class_x { $var m_SomeOtherClass; function x() { $this->m_SomeOtherClass = new class_y; }
function z() { $this->m_SomeOtherClass->test(); } }
AFAIK, there's no real way to "embed" a class definition within another class definition. Not quite sure why you'd want to, either, but it's your code. =)
'Luck!
-Szii
At 02:52 PM 2/5/2001 +0000, Stephen Maher wrote: >Hi, > >Can someone advise on the following. > >class class_y >{ > function test() { > return "test"; > } >} > >class class_x >{ > function x { > $n = new $y; > } > > function z { > $n->test(); > } >} > >I need the object of class_y available to the other objects of classx >but I cant figure out how I do this. Any ideas? > >Regards, Steve Maher >
attached mail follows:
Hi there, i have a little problem,
suppose i have a multidimensional array ex:
row[monthnr][daynr][hour][numberofusers] row[monthnr][daynr][hour][numberofmails] row[monthnr][daynr][hour][numberofdownloads]
the values in the array are a sql result query, soh not all of them are filled like it is possible that row[12][1][23] is undefined. i need to tag the value that is maximum and minimum foreach number of users, numberof mails and numberofdownloads in the same month for example, i tried all kinds of sort but it never makes a numeric comparison, maybe because of the return of the sql result, anyone has any idea?
thanks in advance
Rui Barreiros Software Developer
WEBSOLUT - Soluções Internet
Emailto: rui
websolut.net
Personal Info: http://websolut.net/people/rui.html
As informações contidas neste email são confidenciais e destinam-se apenas à(s) pessoa(s) a quem foi enviado: http://websolut.net/confidencialidade-responsabilidade.html
attached mail follows:
<rui
websolut.net> wrote:
> suppose i have a multidimensional array ex:
>
> row[monthnr][daynr][hour][numberofusers]
> row[monthnr][daynr][hour][numberofmails]
> row[monthnr][daynr][hour][numberofdownloads]
>
> the values in the array are a sql result query, soh not all of
them are
> filled like it is possible that row[12][1][23] is undefined.
>
> i need to tag the value that is maximum and minimum foreach number
of
> users, numberof mails and numberofdownloads in the same month for example,
i
You might want to try to get this info directly from an SQL query. It'll probably be much faster than a PHP solution involving looping through each available month and finding the max and min for 3 different keys. If you decide to do this you'll probably want to nest "while ( list( $key, $val ) = each( $row[$i][number..] )" type statements, but given that the key "hour" isn't really needed you may have to transform your array and I really don't think this solution is as elegant as using a database query.
SELECT month, MAX(numberofusers) AS numberofusers_max, MIN(numberofusers) AS numberofusers_min, ..., MIN(numberofdownloads) AS numberofdownloads_min FROM my_table GROUP BY month WHERE where_clause;
-- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/
attached mail follows:
On 05-Feb-2001 Steve Werby wrote:
> <rui
websolut.net> wrote:
>> suppose i have a multidimensional array ex:
>>
>> row[monthnr][daynr][hour][numberofusers]
>> row[monthnr][daynr][hour][numberofmails]
>> row[monthnr][daynr][hour][numberofdownloads]
>>
>> the values in the array are a sql result query, soh not all of
> them are
>> filled like it is possible that row[12][1][23] is undefined.
>>
>> i need to tag the value that is maximum and minimum foreach number
> of
>> users, numberof mails and numberofdownloads in the same month for example,
> i
>
> You might want to try to get this info directly from an SQL query. It'll
> probably be much faster than a PHP solution involving looping through each
> available month and finding the max and min for 3 different keys. If you
> decide to do this you'll probably want to nest "while ( list( $key, $val ) =
> each( $row[$i][number..] )" type statements, but given that the key "hour"
> isn't really needed you may have to transform your array and I really don't
> think this solution is as elegant as using a database query.
>
> SELECT month,
> MAX(numberofusers) AS numberofusers_max,
> MIN(numberofusers) AS numberofusers_min,
> ...,
> MIN(numberofdownloads) AS numberofdownloads_min
> FROM my_table
> GROUP BY month
> WHERE where_clause;
>
> --
> Steve Werby
> COO
> 24-7 Computer Services, LLC
> Tel: 804.817.2470
> http://www.247computing.com/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
i thought about that, but i gave up on my first attempt on doing so, because mysql complained about my query, it seems that it doesn't allow to use the max() function with a sum() function, an example of the query is:
SELECT month, daynr, hour, sum(numberofusers), sum(numberofmails), sum(numberofdownloads) FROM table GOURP BY month, daynr, hour WHERE where_clause;
and mysql complaints when i do another column with max(sum(numberofusers)) :\
i think i'm doomed with the big loop thing :\
Rui Barreiros Software Developer
WEBSOLUT - Soluções Internet
Emailto: rui
websolut.net
Personal Info: http://websolut.net/people/rui.html
As informações contidas neste email são confidenciais e destinam-se apenas à(s) pessoa(s) a quem foi enviado: http://websolut.net/confidencialidade-responsabilidade.html
attached mail follows:
<rui
websolut.net> wrote:
> i thought about that, but i gave up on my first attempt on doing so,
because
> mysql complained about my query, it seems that it doesn't allow to use the
> max() function with a sum() function, an example of the query is:
>
> SELECT month,
> daynr,
> hour,
> sum(numberofusers),
> sum(numberofmails),
> sum(numberofdownloads)
> FROM table
> GOURP BY month, daynr, hour
> WHERE where_clause;
>
> and mysql complaints when i do another column with max(sum(numberofusers))
:\
You just need to add a column max(numberofusers). You've already grouped by month, day and hour so:
sum(numberofusers) => total # of users for that month/day/hour/ max(numberofusers) => max # of users for any record for that month/day/hour
If you're really trying to get the total # of users for the single month/day/hour with the most users then you need a second query. If you can put into sentences exactly what you're trying to do, we can probably help you a little better.
> i think i'm doomed with the big loop thing :\
Nah, I think you can avoid it. MySQL is your friend. <grin>
-- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/
attached mail follows:
On 05-Feb-2001 Steve Werby wrote:
> <rui
websolut.net> wrote:
>> i thought about that, but i gave up on my first attempt on doing so,
> because
>> mysql complained about my query, it seems that it doesn't allow to use the
>> max() function with a sum() function, an example of the query is:
>>
>> SELECT month,
>> daynr,
>> hour,
>> sum(numberofusers),
>> sum(numberofmails),
>> sum(numberofdownloads)
>> FROM table
>> GOURP BY month, daynr, hour
>> WHERE where_clause;
>>
>> and mysql complaints when i do another column with max(sum(numberofusers))
>:\
>
> You just need to add a column max(numberofusers). You've already grouped by
> month, day and hour so:
>
> sum(numberofusers) => total # of users for that month/day/hour/
> max(numberofusers) => max # of users for any record for that month/day/hour
>
> If you're really trying to get the total # of users for the single
> month/day/hour with the most users then you need a second query. If you can
> put into sentences exactly what you're trying to do, we can probably help
> you a little better.
>
>> i think i'm doomed with the big loop thing :\
>
> Nah, I think you can avoid it. MySQL is your friend. <grin>
>
> --
> Steve Werby
> COO
> 24-7 Computer Services, LLC
> Tel: 804.817.2470
> http://www.247computing.com/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
ok, this is the real query:
select sum(numberofusers), sum(numberofmails), sum(numberofdownloads), month(data) as month, hour from account, site where site.pid=account.id and site.siteid=10 and hour!='' group by month,hour order by month,hour
while($db->next_record()) row[$db->Record[3]][$db->Record[4]]=$db->Record; }
then display the table
| |month1 |month2 | |hour1 |value |value | |hour2 |value |value |
and to distinguish the maximum value and minimum value with somekind of color or bold or something.
this is the whole job, i can't seem to find another way beside the loop thing... thanks a lot for the help guys.
Rui Barreiros Software Developer
WEBSOLUT - Soluções Internet
Emailto: rui
websolut.net
Personal Info: http://websolut.net/people/rui.html
As informações contidas neste email são confidenciais e destinam-se apenas à(s) pessoa(s) a quem foi enviado: http://websolut.net/confidencialidade-responsabilidade.html
attached mail follows:
Hello,
Does anyone have a tutorial getting started with the GD lib?
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon
webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
attached mail follows:
At CJHunter.com we use swish-e http://sunsite.berkeley.edu/SWISH-E/ in conjunction with custom php scripts to make our job and resumes searches.
-----Original Message-----
From: Chuck Barnett [mailto:xobyte
bellsouth.net]
Sent: Monday, February 05, 2001 4:46 AM
To: PHP General List
Subject: [PHP] job search/posting software
Does anyone know of any good software for creating a job posting/search service?
Thanks, Chuck
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hello,
I reallize that the SQL syntax should be similar among all DB's which allow SQL, but there are slight differences amongst them. With that said, I have written an SQL statement to the AS400 and am getting errors back. So, and I don't have ANY, I need a site to visit where I can reference DB2 and SQL for the AS400. Here is my error code:
SQL error: [IBM][CLI Driver][AS] SQL0401N The data types of the operands for the operation "= " are not compatible. SQLSTATE=42818 , SQL state 42818 in SQLExecDirect
Any ideas? Was this Off-Topic? Any suggestions where I could post these questions?
Thanks guys!
Karl
attached mail follows:
After hearing about "Coalt RaQ" a number of times on the list, I thought I'd cruise over and check them out.
After doing so, I'm of the opinion that I'm missing something.
$1,200 USD for a 300Mhz 1u box? $2,699 for a $450 w/256M RAM? $3,599 for a $450 w/512 RAM and a dual 30G HDs?
What am I missing? You can get a dual-P3 800 w/ 256 RAM and a single 15G HD in a 1u for $2400 USD. With RAM and HDs being so cheap now, Is there something special about the RaQs? Software? Support? I just don't see anything to warrant the higher pricing. Are they RISC based and use the more expensive Sun chips with 2M SRAM?
Thanks...
-Szii
attached mail follows:
The reason they're so expensive is not the hardware, it's the complete webbased administration tool you're paying for. The users these products are targeted at, are those who can't administrate a server through a standard SSH/Telnet connection.
Vincent The
-----Original Message-----
From: szii
sziisoft.com [mailto:szii
sziisoft.com]
Sent: Monday, February 05, 2001 6:12 PM
To: php-general
lists.php.net
Subject: [PHP] Cobalt RaQ
After hearing about "Coalt RaQ" a number of times on the list, I thought I'd cruise over and check them out.
After doing so, I'm of the opinion that I'm missing something.
$1,200 USD for a 300Mhz 1u box? $2,699 for a $450 w/256M RAM? $3,599 for a $450 w/512 RAM and a dual 30G HDs?
What am I missing? You can get a dual-P3 800 w/ 256 RAM and a single 15G HD in a 1u for $2400 USD. With RAM and HDs being so cheap now, Is there something special about the RaQs? Software? Support? I just don't see anything to warrant the higher pricing. Are they RISC based and use the more expensive Sun chips with 2M SRAM?
Thanks...
-Szii
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I'ts also the small footprint (ideal for racking at large ISP's and Data Centres: the prime market positioning of these boxes) and excellent MTBF's (they just keep on trucking..)
You can also install SSH to maintain an encrypted 'telnet' session.
Julian
----- Original Message -----
From: "K.M. The" <php
i-the.nl>
To: <php-general
lists.php.net>
Sent: Monday, February 05, 2001 5:18 PM
Subject: RE: [PHP] Cobalt RaQ
> The reason they're so expensive is not the hardware, it's the complete
> webbased administration tool you're paying for. The users these products
are
> targeted at, are those who can't administrate a server through a standard
> SSH/Telnet connection.
>
> Vincent The
>
> -----Original Message-----
> From: szii
sziisoft.com [mailto:szii
sziisoft.com]
> Sent: Monday, February 05, 2001 6:12 PM
> To: php-general
lists.php.net
> Subject: [PHP] Cobalt RaQ
>
>
> After hearing about "Coalt RaQ" a number of times on the list,
> I thought I'd cruise over and check them out.
>
> After doing so, I'm of the opinion that I'm missing something.
>
> $1,200 USD for a 300Mhz 1u box? $2,699 for a $450 w/256M RAM?
> $3,599 for a $450 w/512 RAM and a dual 30G HDs?
>
> What am I missing? You can get a dual-P3 800 w/ 256 RAM
> and a single 15G HD in a 1u for $2400 USD. With RAM and
> HDs being so cheap now, Is there something special about
> the RaQs? Software? Support? I just don't see anything to
> warrant the higher pricing. Are they RISC based and use the
> more expensive Sun chips with 2M SRAM?
>
> Thanks...
>
> -Szii
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
1u is 1u. There's no difference in size between the RaQ and a standard 1u box, like the ones I described in my previous post.
-Szii
At 05:32 PM 2/5/2001 -0000, Julian Morcinek wrote:
>I'ts also the small footprint (ideal for racking at large ISP's and Data
>Centres: the prime market positioning of these boxes) and excellent MTBF's
>(they just keep on trucking..)
>
>You can also install SSH to maintain an encrypted 'telnet' session.
>
>Julian
>----- Original Message -----
>From: "K.M. The" <php
i-the.nl>
>To: <php-general
lists.php.net>
>Sent: Monday, February 05, 2001 5:18 PM
>Subject: RE: [PHP] Cobalt RaQ
>
>
>> The reason they're so expensive is not the hardware, it's the complete
>> webbased administration tool you're paying for. The users these products
>are
>> targeted at, are those who can't administrate a server through a standard
>> SSH/Telnet connection.
>>
>> Vincent The
>>
>> -----Original Message-----
>> From: szii
sziisoft.com [mailto:szii
sziisoft.com]
>> Sent: Monday, February 05, 2001 6:12 PM
>> To: php-general
lists.php.net
>> Subject: [PHP] Cobalt RaQ
>>
>>
>> After hearing about "Coalt RaQ" a number of times on the list,
>> I thought I'd cruise over and check them out.
>>
>> After doing so, I'm of the opinion that I'm missing something.
>>
>> $1,200 USD for a 300Mhz 1u box? $2,699 for a $450 w/256M RAM?
>> $3,599 for a $450 w/512 RAM and a dual 30G HDs?
>>
>> What am I missing? You can get a dual-P3 800 w/ 256 RAM
>> and a single 15G HD in a 1u for $2400 USD. With RAM and
>> HDs being so cheap now, Is there something special about
>> the RaQs? Software? Support? I just don't see anything to
>> warrant the higher pricing. Are they RISC based and use the
>> more expensive Sun chips with 2M SRAM?
>>
>> Thanks...
>>
>> -Szii
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>> For additional commands, e-mail: php-general-help
lists.php.net
>> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>> For additional commands, e-mail: php-general-help
lists.php.net
>> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I've got kind of a deep page structure, lots of subdirs. I'm having trouble with an include directive. The problem is a footer that I use on all pages, which resides in the base directory.
The footer file includes another file, which I use if there is no menu. footer.inc has menu, and includes footer-nomenu.inc footer-nomenu.inc may be used alone.
I know this works, in footer.inc, to pull up nomenu. <? include("/home/dvh/public_html/footer-nomenu.inc")?>
However, is there a more "generic" way to specify the server root as the path? I'd rather not expose my directory structure in the PHP code. I tried various versions of ../ and ../../ without success.
-- Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
attached mail follows:
"David VanHorn" <dvanhorn
cedar.net> wrote:
> I know this works, in footer.inc, to pull up nomenu.
> <? include("/home/dvh/public_html/footer-nomenu.inc")?>
>
> However, is there a more "generic" way to specify the server root as the
path?
> I'd rather not expose my directory structure in the PHP code.
How about the environment variable $DOCUMENT_ROOT (you may need to access as $GLOBALS[DOCUMENT_ROOT] depending on your code). Put <?php phpinfo(); ?> in a webpage to see all of the goodies available to you. I personally prefer to keep the bulk of my PHP code outside the document root, in a directory parallel to it. I define a constant INC_PATH typically parallel to the document root using code similar to the following:
// Set INC_PATH. ereg( "(.*)web_directory.*", $SCRIPT_FILENAME, $regs ); define( "INC_PATH", $regs[1] . "inc_directory/" );
Then I include files as follows:
include( INC_PATH . "inc_common.php" );
Very portable.
> I tried various versions of ../ and ../../ without success.
This isn't very portable anyway. You don't want to have to change paths if you move a file to a deeper subdirectory.
-- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/
attached mail follows:
DOCUMENT_ROOT ??? http://php.net/manual/en/language.variables.predefined.php
> -----Original Message-----
> From: David VanHorn [mailto:dvanhorn
cedar.net]
> Sent: Monday, February 05, 2001 12:16 PM
> To: php-general
lists.php.net
> Subject: [PHP] include files
>
>
> I've got kind of a deep page structure, lots of subdirs.
> I'm having trouble with an include directive.
> The problem is a footer that I use on all pages, which resides in the base
> directory.
>
> The footer file includes another file, which I use if there is no menu.
> footer.inc has menu, and includes footer-nomenu.inc
> footer-nomenu.inc may be used alone.
>
> I know this works, in footer.inc, to pull up nomenu.
> <? include("/home/dvh/public_html/footer-nomenu.inc")?>
>
> However, is there a more "generic" way to specify the server root
> as the path?
> I'd rather not expose my directory structure in the PHP code.
> I tried various versions of ../ and ../../ without success.
> --
> Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
At 12:50 PM 2/5/01 -0500, Brian V Bonini wrote: >DOCUMENT_ROOT ??? >http://php.net/manual/en/language.variables.predefined.php
Ok, but having read the docs you pointed to (thanks), I still don't see how to use it in an include directive.
I assume that since the vhost is specified to use "/home/dvh/public_html/" as the server root, that DOCUMENT_ROOT is equal to "/home/dvh/public_html/" when the server is running any script from that vhost.
But, how do I apply that to the include directive?
<? include("/home/dvh/public_html/footer-nomenu.inc")?>
-- Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
attached mail follows:
<? include ($DOCUMENT_ROOT . "/footer-nomenu.inc"); ?>
> -----Original Message-----
> From: David VanHorn [mailto:dvanhorn
cedar.net]
> Sent: Monday, February 05, 2001 1:04 PM
> To: brian
gfx.cncdsl.com; php-general
lists.php.net
> Subject: RE: [PHP] include files
>
>
> At 12:50 PM 2/5/01 -0500, Brian V Bonini wrote:
> >DOCUMENT_ROOT ???
> >http://php.net/manual/en/language.variables.predefined.php
>
> Ok, but having read the docs you pointed to (thanks), I still
> don't see how
> to use it in an include directive.
>
> I assume that since the vhost is specified to use
> "/home/dvh/public_html/"
> as the server root, that DOCUMENT_ROOT is equal to
> "/home/dvh/public_html/"
> when the server is running any script from that vhost.
>
> But, how do I apply that to the include directive?
>
> <? include("/home/dvh/public_html/footer-nomenu.inc")?>
>
> --
> Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
>
>
>
attached mail follows:
On Monday 05 February 2001 18:15, David VanHorn wrote:
> I know this works, in footer.inc, to pull up nomenu. > <? include("/home/dvh/public_html/footer-nomenu.inc")?> > > However, is there a more "generic" way to specify the server root as > the path? I'd rather not expose my directory structure in the PHP code. > I tried various versions of ../ and ../../ without success.
Set the include_patz in php.ini and include everything relative to that path
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)(A)bort (R)etry (P)retend this never happened ...
attached mail follows:
Shawn,
The PHP distribution contains various SAPIs (server API's). Examples are CGI, Apache, ISAPI, NSAPI and Servlet. Each of these SAPIs is optimized to host the PHP interpreter in the respective environment. Thus, if you want to run PHP in Apache, you can use the Apache SAPI (also known as mod_php) instead of CGI which will give you much better performance as well as being able to take advantage of the capabilities of that API.
The sapi/servlet option is essentially a Java servlet that you add to your Java webserver just like you would any other servlet and it invokes the PHP engine through JNI and reflection (so you could reference Java objects from within your PHP script). This option is much more efficient then just running the ext/java extension (which allows you to access Java objects from PHP by starting up a JVM per session) since the JVM used is already running in the Java webserver and can be managed much better by the latter than anything ext/java can attempt to do. Note that using this SAPI implies that PHP will be running in your Java Webserver instead of on your HTTP webserver (e.g. Apache) which could have implications (hopefully for the better) unless they're both running on the same physical machine.
Let me know if you have other questions.
Alex
attached mail follows:
Hello,
Can anyone tell me a simple way to install the GDlib for php on a windows machine?
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon
webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
attached mail follows:
Brandon Orther wrote: > Can anyone tell me a simple way to install the GDlib for php on a > windows machine?
Some binary PHP-Distrobutions on php4win.de include GDlib.
Wagner
-- Three may keep a secret, if two of them are dead.
attached mail follows:
Hi!
Anyone know the url address for the apache newsgroup? I don't seem to be able to find one.
Just wanting to ask a question or two at the apache newsgroup. The questions are is there every a ModSSL and OpenSSL that would work on windows machine, along with apache and php? Somebody at work is giving me a hard time about switching from UNIX to windows. Windows suck!
Thanks, Scott
attached mail follows:
I have a mysql database of images that I would like to save each image to a file on my server. Hw do I read the image from mysql and write it to a file?
attached mail follows:
If you don't prefix a global variable with $ then how can you interpit a global variable within a string? AS IN:
define ("MY_PATH", "/home/me/");
print("This is My Path: MY_PATH or is it?");
attached mail follows:
At 10:57 AM -0700 2/5/01, Karl J. Stubsjoen wrote: >If you don't prefix a global variable with $ then how can you interpit a >global variable within a string? AS IN: > >define ("MY_PATH", "/home/me/"); > >print("This is My Path: MY_PATH or is it?"); >
This wouldn't be a global variable; rather, it's a constant. And, you'd reference it like
print("This is My Path: ".MY_PATH." or is it?");
See http://www.php.net/manual/en/function.define.php and http://www.php.net/manual/en/language.variables.php
-steve
-- +--- "They've got a cherry pie there, that'll kill ya" ------------------+ | Steve Edberg University of California, Davis | | sbedbergucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-------------------------------------- FBI Special Agent Dale Cooper ---+
attached mail follows:
Hello,
I am trying to get started with GD and I am gettign an error saying there isn't a font.
<br> <b>Warning</b>: Could not find/open font in <b>c:\apache\htdocs\sitemaestro\gd\test.php</b> on line <b>4</b><br> <br> <b>Warning</b>: Could not find/open font in <b>c:\apache\htdocs\sitemaestro\gd\test.php</b> on line <b>15</b><br> <br> <b>Warning</b>: Could not find/open font in <b>c:\apache\htdocs\sitemaestro\gd\test.php</b> on line <b>16</b><br> <br> <b>Warning</b>: ImageGif: No GIF support in this PHP build in <b>c:\apache\htdocs\sitemaestro\gd\test.php</b> on line <b>17</b><br>
is the error I am getting can someone please let me know what folder I supposed to have my fonts in?
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon
webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
attached mail follows:
When parsing a CDATA field that's being read in from a file, if the fread() buffer fills up, does it make two calls to the CDATA or does it wait for the closing tag to show up before firing off to the handler?
while ($data = fread($fp,1)) // yes, I know you shouldn't use '1', but it's an example { xml_parse($parser, $data,feof($fp)); }
ie, should I set a flag if the CDATA's base64 encoded to persist over multiple CDATA events, or does it wait for the closing tag and send all of the data off to the handler as one batch? Some CDATA elements may be multiple megabyte images. (Yes, it's from an outside source that we have no control of.)
-Szii
attached mail follows:
OK, I'm not sure if the file is getting uploaded or not, and it certainly is not getting copied to the permanent directory.
Here's what I have:
This creates the upload form: <FORM method="post" ENCTYPE="multipart/form-data" action="add_record2.php"> <INPUT type="file" name="picture" size=30> </form> This is the action from that form:
// Creates the image file with a timestamp $timestamp = time(); $image= $timestamp.$picture_name;
if ($PLATFORM == "windows") { $new_path = str_replace('^', '\\', $WINDOWS_PATH); echo $picture; if (is_uploaded_file($picture)) { copy($picture, $new_path); //move_uploaded_file($picture, $new_path); } else { echo "Possible file upload attack: filename '$picture'."; } }
attached mail follows:
Does anyone know if PHP is interated with LDAP, or how can I integrate PHP with LDAP?
Thanks and Regards, George
-----Original Message-----
From: Alex Akilov [mailto:aakilov
nc.rr.com]
Sent: Monday, February 05, 2001 11:26 AM
To: php-general
lists.php.net
Subject: Re: [PHP] Java Servlet Support
Shawn,
The PHP distribution contains various SAPIs (server API's). Examples are CGI, Apache, ISAPI, NSAPI and Servlet. Each of these SAPIs is optimized to host the PHP interpreter in the respective environment. Thus, if you want to run PHP in Apache, you can use the Apache SAPI (also known as mod_php) instead of CGI which will give you much better performance as well as being able to take advantage of the capabilities of that API.
The sapi/servlet option is essentially a Java servlet that you add to your Java webserver just like you would any other servlet and it invokes the PHP engine through JNI and reflection (so you could reference Java objects from within your PHP script). This option is much more efficient then just running the ext/java extension (which allows you to access Java objects from PHP by starting up a JVM per session) since the JVM used is already running in the Java webserver and can be managed much better by the latter than anything ext/java can attempt to do. Note that using this SAPI implies that PHP will be running in your Java Webserver instead of on your HTTP webserver (e.g. Apache) which could have implications (hopefully for the better) unless they're both running on the same physical machine.
Let me know if you have other questions.
Alex
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I have tried to unsubscribe to the list because my server will be down for at least two weeks, however, I am still getting mail. If someone could pass this on to the admin I would appreciate it (and so would they).
attached mail follows:
PHPbulder.com classically has terrible tutorials. I myself am trying to learn this XML deal. PHPbuilders code, cut and paste is filled with parse errors. after fiddling Ive got his example to work, but I havent a clue how? he posts this stupid two page article, page one is nothing, page two is nothin plus broken code. He doesn explain what even one of his four functions are for. completely confused. I hate to ramble, but phpbuilder is a terrible site that ruins php for many newbies.
--Chris Lee Mediawaveonline.com lee
mediawaveonline.com
"Joe Stump" <jstump
zebulon.miester.org> wrote in message news:20010204125905.F8240
zebulon.miester.org... > phpbuilder.com - there are a few articles on the site about XML > > --Joe > > On Sun, Feb 04, 2001 at 05:02:43PM +0100, Steve Haemelinck wrote: > > Where can I find some info on parsing XML with PHP? > > I am not looking for functions, but examples and explanations ! > > > > Thx > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net > > For additional commands, e-mail: php-general-help
lists.php.net > > To contact the list administrators, e-mail: php-list-admin
lists.php.net > > -- > > -------------------------------------------------------------------------- ----- > Joe Stump, PHP Hacker, -o) > http://www.miester.org http://www.care2.com /\\ > "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V > -------------------------------------------------------------------------- ----- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net > For additional commands, e-mail: php-general-help
lists.php.net > To contact the list administrators, e-mail: php-list-admin
lists.php.net >
attached mail follows:
If you're talking about my article on PHPBuilder
Found at: http://www.phpbuilder.com/columns/joe20000907.php3
You can feel free to ask me any questions you like in private (I write them because I like supporting a community that has helped me so much)
--Joe
On Mon, Feb 05, 2001 at 10:19:17AM -0800, Chris Lee wrote:
> PHPbulder.com classically has terrible tutorials. I myself am trying to
> learn this XML deal. PHPbuilders code, cut and paste is filled with parse
> errors. after fiddling Ive got his example to work, but I havent a clue how?
> he posts this stupid two page article, page one is nothing, page two is
> nothin plus broken code. He doesn explain what even one of his four
> functions are for. completely confused. I hate to ramble, but phpbuilder is
> a terrible site that ruins php for many newbies.
>
>
> --
>
>
>
> Chris Lee
> Mediawaveonline.com
> lee
mediawaveonline.com
>
>
>
> "Joe Stump" <jstump
zebulon.miester.org> wrote in message
> news:20010204125905.F8240
zebulon.miester.org...
> > phpbuilder.com - there are a few articles on the site about XML
> >
> > --Joe
> >
> > On Sun, Feb 04, 2001 at 05:02:43PM +0100, Steve Haemelinck wrote:
> > > Where can I find some info on parsing XML with PHP?
> > > I am not looking for functions, but examples and explanations !
> > >
> > > Thx
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> > --
> >
> > --------------------------------------------------------------------------
> -----
> > Joe Stump, PHP Hacker,
> -o)
> > http://www.miester.org http://www.care2.com
> /\\
> > "It's not enough to succeed. Everyone else must fail" -- Larry Ellison
> _\_V
> > --------------------------------------------------------------------------
> -----
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
--------------------------------------------------------------------------------- Joe Stump, PHP Hacker, joestump98
yahoo.com -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V -------------------------------------------------------------------------------
attached mail follows:
You know, some of these guys are members of this list.
I don't think they make any claims about being the definitive end all be all source for all things PHP but rather are a bunch of folks sharing their PHP experiences/knowledge.
I'd say that's pretty generous of them.....
-Brian ************
> -----Original Message-----
> From: Chris Lee [mailto:lee
mediawaveonline.com]
> Sent: Monday, February 05, 2001 1:19 PM
> To: php-general
lists.php.net
> Subject: Re: [PHP] XML Parsing with PHP
>
>
> PHPbulder.com classically has terrible tutorials. I myself am trying to
> learn this XML deal. PHPbuilders code, cut and paste is filled with parse
> errors. after fiddling Ive got his example to work, but I havent
> a clue how?
> he posts this stupid two page article, page one is nothing, page two is
> nothin plus broken code. He doesn explain what even one of his four
> functions are for. completely confused. I hate to ramble, but
> phpbuilder is
> a terrible site that ruins php for many newbies.
>
>
attached mail follows:
Where is the temp session file held at? I have a script that uses sessions but I can't find the session file.
My php.ini file indicates that the session.save_path = c:\php\sessiondata but there is not any files there when there should be. It does look like the session is working though.
Any ideas?
Apache win2k php 4.0.4pl1
- Shane
attached mail follows:
Hello,
Does anyone know where PHP looks for the TTF when using GD to make an image? I keep getting an error saying it can't find the font file
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon
webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
attached mail follows:
Hello,
Does anyone have an example or can someone tell me how to use a background image in GD?
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon
webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
attached mail follows:
Hi,
I'm a newbie with PHP and have successfully written some simple scripts. I am using Apache on Redhat Linux 6.2 with PHP 3.
At the moment, I have to give .php3 extensions ot my web files in order for PHP to run. If I insert PHP code into an .html file, it does not execute.
Is their a way to configure PHP to execute from .html files?
P.S. As I write this, I don't discount the possibility of this being an
Apache config. If so, I apologize for posting to this list.
Thanks, Don
attached mail follows:
Unless I am mistaken, I am pretty sure you need to have sometype of .php extension. Unless you could put a line in the httpd.conf file like: AddType application/x-httpd-php .html
BUT, I HAVE NEVER DONE THIS SO PLEASE WAIT FOR A MORE EDUCATED ANSWER.........
- Shane
----- Original Message -----
From: "Don" <don
lclcan.com>
To: <php-general
lists.php.net>
Sent: Monday, February 05, 2001 2:03 PM
Subject: [PHP] simple config. question
> Hi,
>
> I'm a newbie with PHP and have successfully written some simple
> scripts. I am using Apache on Redhat Linux 6.2 with PHP 3.
>
> At the moment, I have to give .php3 extensions ot my web files in order
> for PHP to run. If I insert PHP code into an .html file, it does not
> execute.
>
> Is their a way to configure PHP to execute from .html files?
>
> P.S. As I write this, I don't discount the possibility of this being an
>
> Apache config. If so, I apologize for posting to this list.
>
> Thanks,
> Don
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Monday 05 February 2001 20:14, Shane McBride wrote: > Unless I am mistaken, I am pretty sure you need to have sometype of > .php extension. Unless you could put a line in the httpd.conf file > like: AddType application/x-httpd-php .html
Well, that's exactly the right way :)
Perhaps a more "generous" setup would be even better though:
AddType application/x-httpd-php .html .htm .php3 .php .phtml
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)(A)bort (R)etry (P)retend this never happened ...
attached mail follows:
Christian,
Wouldn't this put unnecessary load on the webserver? Every .htm and .html document, even if it doesn't contain any line of PHP code, would go through the parser... ?
"Christian Reiniger" <creinig
mayn.de> a écrit dans le message news:
01020520230301.00608
chrisbig...
On Monday 05 February 2001 20:14, Shane McBride wrote:
> Unless I am mistaken, I am pretty sure you need to have sometype of
> .php extension. Unless you could put a line in the httpd.conf file
> like: AddType application/x-httpd-php .html
Well, that's exactly the right way :)
Perhaps a more "generous" setup would be even better though:
AddType application/x-httpd-php .html .htm .php3 .php .phtml
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)(A)bort (R)etry (P)retend this never happened ...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I have been trying the following example from the PHP developer's cookbook and it keeps giving me the following error.
Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 4 <? //line 1 $excel_handle = new COM("excel.application"); //line2 $excel_handle->Visible = false; //line3 $worksheet->Cells(1,1)->value = "Name"; //line4 $worksheet->SaveAs("temp.xls"); //line5 $excel_handle->quit(); //line6 //line7 ?> //line8
Anyone that has Com and PHP experience help please
Ryan
attached mail follows:
I have been trying the following example from the PHP developer's cookbook and it keeps giving me the following error.
Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5 <? //line 1 $excel_handle = new COM("excel.application"); //line2 $excel_handle->Visible = false; //line3 $worksheet = $excel_handle->workbooks->add(); //line4 $worksheet->Cells(1,1)->value = "Name"; //line5 $worksheet->SaveAs("temp.xls"); //line6 $excel_handle->quit(); //line7 //line8 ?> //line9
Anyone that has Com and PHP experience help please
Ryan
attached mail follows:
Start going over script examples and tutorials on http://www.weberdev.com
Sincerely
berber
Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow.
-----Original Message-----
From: Jeff Oien [mailto:jeff
webdesigns1.com]
Sent: Monday, February 05, 2001 1:06 AM
To: PHP
Subject: [PHP] Learning MySQL
What would your advice be for learning MySQL with PHP on an Apache server? I know a little Perl and am beginning to learn PHP. I'm more of a designer than a programmer (not enough geek genes). I went through the tutorial at WebMonkey and have it all installed and working, but the tutorial isn't able to go in depth about the basic functions of MySQL. Is this something better learned from a book? Suggestions for books and/or tutorials online would be appreciated. Jeff Oien, WebDesigns http://www.webdesigns1.com/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Just to make things clear, PHP/FI was the basis, not so many people used it in comparison to PHP3/4. PHP3 was designed by more than one developer (actually more like 4-6).
-----Original Message-----
From: Robert Covell [mailto:rcovell
rolet.com]
Sent: Monday, February 05, 2001 12:19 AM
To: Boaz Yahav; Ben Peter; Chris Mason
Cc: Php-General
Subject: Re: [PHP] PHP hosting - the final frontier.
I understand your concerns, but with this type of logic this mailing list not not be around. Niether would Linux, Apache, MySql or anyother open source tool that so many people utilize today. We would all be on NT instead of Linux and using IIS with ASP instead of PHP. Do think Ramsus when he started out on PHP/FI was thinking I am only one person I shouldn't even try to make it because the big guys are more reliable. Or Linus thought the same thing when he made his first kernel. I really doubt it, and neither did I when I decided to take a chance learn PHP/FI on Linux using Apache about 5 years ago. Look at where they are today and the bazillion people who rely on the tools that one or two people took the time and a chance on developing.
Sincerely,
Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: rcovell
rolet.com
Phone: 816.210.7145
Fax: 816.753.1952
----- Original Message -----
From: "Boaz Yahav" <berber
netvision.net.il>
To: "'Robert Covell'" <rcovell
rolet.com>; "Boaz Yahav"
<berber
netvision.net.il>; "Ben Peter" <gbp
bpeter.org>; "Chris Mason"
<chris
net.ai>
Cc: "Php-General" <php-general
lists.php.net>
Sent: Sunday, February 04, 2001 3:29 PM
Subject: RE: [PHP] PHP hosting - the final frontier.
> No need to get upset :) just stating MHO (nothing personal).
>
> In your own words you say : "People have taken a chance with me"
> and that's really what they did. Cause you know what happens to
> backup plans that don't have backup plans that don't...
>
> I'm assuming that there may be an audience for this kind of hosting
> but personally I wouldn't host my site under such circumstances.
>
> Prices are so cheep today and you can get so much for so less with
> many ISP's that have a department of people running the show.
>
> As for the Service, well, if you chose a company and don't like the
service
> you can always go somewhere else. Most companies that I worked with
> gave amazing service.
>
> Today I work with PhenomiNET and the service is simply amazing.
> you can look at what they offer here :
>
> http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm
>
> This is your one stop shop for hosting. WeberDev.com is hosted there
> and I can tell you that their service is amazing. They are fast, reliable
> and more than anything, very professional (specially in PHP / MySQL).
>
> Sincerely
>
> berber
>
> Visit http://www.weberdev.com Today!!!
> To see where PHP might take you tomorrow.
>
>
> -----Original Message-----
> From: Robert Covell [mailto:rcovell
rolet.com]
> Sent: Saturday, February 03, 2001 10:40 PM
> To: Boaz Yahav; Ben Peter; Chris Mason
> Cc: Php-General
> Subject: RE: [PHP] PHP hosting - the final frontier.
>
>
> I shouldn't even reply to this...
>
> Yes I would host with me.
>
> Have you ever heard of a backup plan. People that would step in if
> something happens to me? People that I trust to keep the company going if
> it fails.
>
> With all due respect, how do people host with a company that doesn't give
a
> rats ass about them or their business. How many big companies redirect
your
> call, or brush you away when problems occur. I been over backwards for my
> clients. Providing better service then many of the bigger companies out
> there. That is why people do and will continue to host with me. Like I
> said, I plan on hiring people in the near future. Things take time to
> evolve.
>
> I am not saying that my company is for everyone. If you don't like a one
> man shop then don't go there. People have taken a chance with me and have
> not been disappointed like so many times before.
>
> Sincerely,
>
> Robert T. Covell
> President / Owner
> Rolet Internet Services, LLC
> Web: www.rolet.com
> Email: rcovell
rolet.com
> Phone: 816.210.7145
> Fax: 816.753.1952
>
> -----Original Message-----
> From: Boaz Yahav [mailto:berber
netvision.net.il]
> Sent: Saturday, February 03, 2001 1:38 PM
> To: 'Robert Covell'; Ben Peter; Chris Mason
> Cc: Php-General
> Subject: RE: [PHP] PHP hosting - the final frontier.
>
>
> And if, God forbid, something was to happen to you...
> 120 People / Companies would be left with a server
> that no one knows the root password too?
>
> With all due respect, how can someone in his
> right mind host with a one man gang company?
>
> For all I know you can be a hosting genius and
> give the best service around but you are still one
> man.
>
> Would you host with you ? :)
>
> Sincerely
>
> berber
>
> Visit http://www.weberdev.com Today!!!
> To see where PHP might take you tomorrow.
>
>
> -----Original Message-----
> From: Robert Covell [mailto:rcovell
rolet.com]
> Sent: Saturday, February 03, 2001 9:16 PM
> To: Ben Peter; Chris Mason
> Cc: Php-General
> Subject: RE: [PHP] PHP hosting - the final frontier.
>
>
> I am going to have to disagree on this one.
>
> I run a successful (and profitable) hosting company(http://www.rolet.com).
> My employees total 1 (me, myself and I). The number of clients hosted is
> roughly 120. I provide a wide variety of services on Linux, FreeBSD, NT,
> and W2K. Yes it is hard to believe that 1 person can be available 24x7,
or
> not take vacations, but this is what I do and LOVE every second of it. I
> value customer satisfaction and strive to provide that best Internet
> services possible. For me this is a career for life, not just a job. So
I
> do believe that 1 person can be available 24x7 and not take vacations.
> Don't get me wrong, some days it is tough. I would like to have other
> employees in the future, but don't mind the sacrifices taken to get there.
>
> Sincerely,
>
> Robert T. Covell
> President / Owner
> Rolet Internet Services, LLC
> Web: www.rolet.com
> Email: rcovell
rolet.com
> Phone: 816.210.7145
> Fax: 816.753.1952
>
>
>
> -----Original Message-----
> From: ben
host2.successfulhosting.com
> [mailto:ben
host2.successfulhosting.com]On Behalf Of Ben Peter
> Sent: Saturday, February 03, 2001 11:59 AM
> To: Chris Mason
> Cc: Php-General
> Subject: Re: [PHP] PHP hosting - the final frontier.
>
>
> Chris,
>
> This all sounds good but for one thing: I firmly believe that one man
> with a root password is not enogh to look after even one client. I have
> hosted with 3 one-man-companies, and it always came to the point where I
> couldn't reach someone for a week, or I waited for 3 months, only to be
> granted connect privileges to the mysql database - no offense meant! I
> think it's just too much for one man, you cannot be available 24/7, and
> you will want holidays.
>
> Still, a PHP-specialized hosting environment would be worth much.
>
> Cheers,
> Ben
>
> Chris Mason wrote:
> >
> > I see a lot of traffic regarding php hosting. From experience I know
that
> > the general hosting companies provide a minimal PHP environment which is
> > often insufficient for PHP developers.
> > With this in mind, I'm considering offering specialized hosting for PHP
> > projects.
> >
> > The server will be tuned to the needs of PHP projects, and will have the
> > latest PHP4 and mySQL versions, up to date XML libraries, IMAP and POP,
> and
> > will run php as a apache module for performance. The server will have a
> low
> > user count and I will offer migration alternatives as user's needs grow.
> The
> > machines will be hosted at a major data center with multiple large
> internet
> > feeds, and all the other essential requirements.
> >
> > I plan to be available to users to assist in configuration problems and
> will
> > stay abreast of developments in PHP to make our projects run faster and
> > better.
> >
> > I'd like to hear from people interested in participating or with
> > configuration suggestions. I'm not looking to start a large hosting
> company
> > but to be a specialized service provider on a small scale.
> >
> > Let me know what you think, guys.
> >
> > Chris Mason
> > Box 340, The Valley, Anguilla, British West Indies
> > Tel: 264 497 5670 Fax: 264 497 8463
> > USA Fax (561) 382-7771
> > Take a virtual tour of the island
> > http://net.ai/ The Anguilla Guide
> > Find out more about NetConcepts
> > www.netconcepts.ai
> > Talk to me in real time with Instant Messenger: masonc92
hotmail.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Is it possible to get the size of an image in PHP4?
if so, does it require gif/jpeg support built in?
Thanks
================================== r a n d y // sesser at mac dot com http://randys.org
attached mail follows:
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=918
Sincerely
berber
Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow.
-----Original Message-----
From: r a n d y [mailto:sesser-
-mac.-com]
Sent: Monday, February 05, 2001 9:55 PM
To: php-general
lists.php.net
Subject: [PHP] Getting image size from gif/jpeg
Is it possible to get the size of an image in PHP4?
if so, does it require gif/jpeg support built in?
Thanks
================================== r a n d y // sesser at mac dot com http://randys.org
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
weberdev.com isn't working...can you email me the text from that page?
Thanks - randy
PS remove the "-" from my email address
In article
<EEC6EBAB1A35E94789FB2872A1698F757FBFD0
ntx2.netvision.net.i
l>, berber
netvision.net.il (Boaz Yahav) wrote:
// http://www.weberdev.com/index.php3?GoTo=get_example.php3?coun
// t=918
//
// Sincerely
//
// berber
//
// Visit http://www.weberdev.com Today!!!
// To see where PHP might take you tomorrow.
//
//
// -----Original Message-----
// From: r a n d y [mailto:sesser-
-mac.-com]
// Sent: Monday, February 05, 2001 9:55 PM
// To: php-general
lists.php.net
// Subject: [PHP] Getting image size from gif/jpeg
//
//
// Is it possible to get the size of an image in PHP4?
//
// if so, does it require gif/jpeg support built in?
//
// Thanks
//
// ==================================
// r a n d y // sesser at mac dot com
// http://randys.org
//
// --
// PHP General Mailing List (http://www.php.net/)
// To unsubscribe, e-mail:
// php-general-unsubscribe
lists.php.net
// For additional commands, e-mail:
// php-general-help
lists.php.net
// To contact the list administrators, e-mail:
// php-list-admin
lists.php.net
================================== r a n d y // sesser at mac dot com http://randys.org
attached mail follows:
getimagesize (string filename [, array imageinfo])
http://php.net/manual/en/function.getimagesize.php
> -----Original Message-----
> From: r a n d y [mailto:sesser-
-mac.-com]
> Sent: Monday, February 05, 2001 2:55 PM
> To: php-general
lists.php.net
> Subject: [PHP] Getting image size from gif/jpeg
>
>
> Is it possible to get the size of an image in PHP4?
>
> if so, does it require gif/jpeg support built in?
>
> Thanks
>
> ==================================
> r a n d y // sesser at mac dot com
> http://randys.org
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hi, Anyone using PHP with mod_auth_db ? I was using MySQL but when I get 40 hits a sec MySQL is just a bit too much. Even at low hit rates I am running 70 MySQLds.
http://www.thewebmasters.net/php/Htpasswd.phtml doesn't use db and
http://www.thewebmasters.net/php/AccessDBM.phtml is dbm :)
Any thoughts on which db method to use ?
Dave.
attached mail follows:
I tried with FALSE same error.
I also tried the following word example
<? $word = new COM("word.application") or die("Unable to instanciate Word"); print "Loaded Word, version {$word->Version}\n"; $word->Visible = 0; $word->Documents->Add(); $word->Selection->TypeText("Testing, testing... 1,2,3"); $word->Documents[1]->SaveAs("Some.doc"); $word->Quit(); ?>
I get the following error
Loaded Word, version 9.0 Warning: Invoke() failed: No description available in c:\Inetpub\wwwroot/temp2.php on line 5
Warning: Invoke() failed: Exception occurred. in c:\Inetpub\wwwroot/temp2.php on line 7
Ryan
-----Original Message-----
From: Andris Jancevskis [mailto:ajandris
parks.lv]
Sent: Monday, February 05, 2001 3:01 PM
To: Conover, Ryan
Subject: Re: [PHP-WIN] Revised [PHP] COM and PHP
Try "FALSE" instead of "false"
Andris
mailto:ajandris
parks.lv
+--------------------------- Monday, February 05, 2001, 10:05:24 PM, you wrote:
> I have been trying the following example from the PHP developer's cookbook > and it keeps giving me the following error.
> Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5 > <? //line 1 > $excel_handle = new COM("excel.application"); //line2 $excel_handle->>Visible = false; //line3 > $worksheet = $excel_handle->workbooks->add(); //line4 $worksheet->>Cells(1,1)->value = "Name"; //line5 $worksheet->>SaveAs("temp.xls"); //line6 $excel_handle->>quit(); //line7 > //line8 ?>> //line9
> Anyone that has Com and PHP experience help please
> Ryan
attached mail follows:
> I tried with FALSE same error. > > I also tried the following word example > > <? > $word = new COM("word.application") or die("Unable to instanciate Word"); > print "Loaded Word, version {$word->Version}\n"; > $word->Visible = 0; > $word->Documents->Add(); > $word->Selection->TypeText("Testing, testing... 1,2,3"); > $word->Documents[1]->SaveAs("Some.doc"); > $word->Quit(); > ?> > > I get the following error > > Loaded Word, version 9.0 > Warning: Invoke() failed: No description available in > c:\Inetpub\wwwroot/temp2.php on line 5 > > Warning: Invoke() failed: Exception occurred. in > c:\Inetpub\wwwroot/temp2.php on line 7 >
That means that you don't have the com component installed on your machine correctly...
> > > > > I have been trying the following example from the PHP developer's cookbook > > and it keeps giving me the following error. > > > Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5 > > <? file://line 1 > > $excel_handle = new COM("excel.application"); file://line2 > $excel_handle->>Visible = false; file://line3 > > $worksheet = $excel_handle->workbooks->add(); file://line4 > $worksheet->>Cells(1,1)->value = "Name"; file://line5
This should be:
$cell = $worksheet->Cells(1, 1); $cell->value = 1;
And it should work..
attached mail follows:
there was a really good .htaccess tutorial posted to the list a while back...anyone remember the address?
~kurth
attached mail follows:
This is a good one:
http://www.zend.com/zend/tut/authentication.php
James.
> there was a really good .htaccess tutorial posted to the list a while
> back...anyone remember the address?
>
> ~kurth
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi all. This is, what might turn out to be a stupid question.... But I'll ask it anyway ;)
Is there any way of automating tasks in php scripts, WITHOUT having them open? Ie, having some method or other to send out an email automatically, once a week, as a newsletter, based on data / criteria from a database?
Thanks for your patience, James.
attached mail follows:
"James, Yz" <liljim
btconnect.com> wrote:
> Is there any way of automating tasks in php scripts, WITHOUT having them
> open? Ie, having some method or other to send out an email automatically,
> once a week, as a newsletter, based on data / criteria from a database?
cron. See "man cron" from Linux/Unix commandline. Use it to schedule programs. If you have PHP installed as a CGI you can call a PHP file directly, otherwise you'll have to call it using its full URL using a program like wget or lynx.
-- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/
attached mail follows:
On Monday 05 February 2001 21:48, James, Yz wrote: > Hi all. This is, what might turn out to be a stupid question.... But > I'll ask it anyway ;) > > Is there any way of automating tasks in php scripts, WITHOUT having > them open? Ie, having some method or other to send out an email > automatically, once a week, as a newsletter, based on data / criteria > from a database?
Somehow this question comes up about once a day. Search the ML archives for "cron"
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)(A)bort (R)etry (P)retend this never happened ...
attached mail follows:
and then someone always asks why this isn't included as part of PHP and how dumping such a task out to cron is stupid and it should be incorporated into PHP... blah blah blah.
to preempt that. cron does it fine, low overhead, and the function of PHP is not in the realm of cron's function. if you don't like messing with cron every time you want to do something, have cron run a cron.php every minute and then just edit your cron.php to do what you want.
Dave
-----Original Message-----
From: Christian Reiniger [mailto:creinig
mayn.de]
Sent: Monday, February 05, 2001 4:16 PM
To: php-general
lists.php.net
Subject: Re: [PHP] Automating tasks in PHP?
On Monday 05 February 2001 21:48, James, Yz wrote: > Hi all. This is, what might turn out to be a stupid question.... But > I'll ask it anyway ;) > > Is there any way of automating tasks in php scripts, WITHOUT having > them open? Ie, having some method or other to send out an email > automatically, once a week, as a newsletter, based on data / criteria > from a database?
Somehow this question comes up about once a day. Search the ML archives for "cron"
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)(A)bort (R)etry (P)retend this never happened ...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
This isn't PHP related, but I hope it isn't too off topic for this list.
Does anyone here have an explanation guide to object oriented programming? I look at stuff like $this->something and haven't the foggiest what it means. Would a book on OOP be best?
- Kath, procedural programmer 4EVER
attached mail follows:
"Kath" <ranger
optonline.net> wrote:
> Does anyone here have an explanation guide to object oriented programming?
I look at stuff like $this->something and haven't the foggiest what it
means. Would a book on OOP be best?
I own one PHP book, Professional PHP Programming by WROX Publishing. Good for beginners and intermediate level PHP programmers. It covers OOP using PHP pretty well and does a pretty good job and has a few case studies that help you apply the concepts covered in the book. With the PHP online manual and this book I feel that any programmer should be able to get up to speed with PHP. There are tutorials online as well. Try zend.com, phpbuilder.com, weberdev.com and hotwired among others.
-- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/
attached mail follows:
Do I need to have anything special installed on the server (IIS) to call excel and word with COM.
Ryan
attached mail follows:
Does anyone know why I get this error when selecting an option in the box?
<script language=javascript> <!-- function getDocID(form) { var list = document.docIDchange.useCaseSelected; alert('list '+list); var docID = list.options[list.selectedIndex].value; alert('docID= '+ docID); } // --> </script>
<style type="text/css"> TH {Color: Blue} .red {color: red; font-weight: bold} .blue {color: blue; font-weight: bold} .navy {color: navy; font-weight: bold} </style> <form name="docIDchange" method="POST" action="<? echo $PHP_SELF; ?>"> <input type="HIDDEN" name="docID"> <input type="HIDDEN" name="useCaseSelected">
<?php db_connect(); if (!$conn) { print "Could Not Connect to Database".db_error(); exit; } $sql = "SELECT summary, bug_id, bug_useCase_id FROM bug Where bug_useCase_id <> '' ORDER BY summary"; $result=db_query($sql); $bug_id = db_result($result, "0", "bug_id"); $bug_useCase_id = db_result($result, "0", "bug_useCase_id"); $summary = db_result($result, "0", "summary"); if ($result) { $num_rows = db_numrows($result);
if ($num_rows > 0) {
print "<div align=center class=navy>"; print "<H2>SourceForge Admin Tool</H2>"; print "<H5>Change UseCase ID</H5>\n";
for ( $i = 0; $i < 10; $i++ ){ $row = db_fetch_array($result); $bug_id = $row['bug_id']; $bug_useCase_id = $row['bug_useCase_id']; $summary = $row['summary']; $summary = substr($summary,0,30);
$options[$i] .= $bug_id." - ".$bug_useCase_id." - ".$summary; $values[$i] .= $bug_id; } print "<SELECT NAME=useCaseSelected onChange=\"getDocID(this.options[this.selectedIndex].value)\" SIZE=5>\n"; for ( $j = 0; $j < 10; $j++ ){
$strOption = "<OPTION VALUE= \"$values[$j]\""; if ($j == 0) $strOption = $strOption." SELECTED"; print ">".$options[$j]."</OPTION>\n";
print $strOption; } print "</SELECT>\n";
print "</div>\n"; print "<p>\n"; } else { print "<div class=red>No rows retuned</div>"; exit; } } else print "Please check SQL Query ".$sql."<br>"; ?> </form>
attached mail follows:
Hello all,
I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193.
001 <?php
.....
181 ############## 182 # BEGIN CODE # 183 ############## 184 185 if ($goodtogo != "yes") { 186 sanitize_session(); 187 } 188 else { 189 if ($state == "main") { 190 showmainscreen(); 191 } 192 > 193 194 195 196 elseif ($state == "add") { 197 adduser($product,$username); 198 } 199 elseif ($state == "search") { 200 searchuser($username); 201 } 202 else { 203 doh(); 204 } 205 } 206 207 ############ 208 # END CODE # 209 ############ 210 ?>
Any help is greatly appreciated!
attached mail follows:
You missed a } in there. Inside of that else, you have an if, but you never close the else.
> 190 showmainscreen(); > 191 } > 192
should be
> 190 showmainscreen(); > 191 } > 192 }
----- Original Message -----
From: "Jackson, Michael" <Michael.Jackson
lightyearcom.com>
To: <php-general
lists.php.net>
Sent: Monday, February 05, 2001 4:23 PM
Subject: [PHP] Parse error on blank line...
> Hello all,
>
> I hope this doesn't turn out to be a stupid question, but we will
> see... I am getting parse errors on blank lines. Not commented, but
> totally blank. And seemingly no matter how I manipulate the text, it
turns
> out to always be on the same line. I'm using vim with syntax tags to help
> me check my basic syntax, and everything seems to be closed - I am at a
> total loss as to what could be wrong! Let me try to clarify: Take the
> following snippet of code - It errors out on line 193. I have no idea
why.
> I added blank lines to shift the code around - and if I eliminated all of
> the blank lines, I still error out on 193.
>
> 001 <?php
>
> .....
>
>
> 181 ##############
> 182 # BEGIN CODE #
> 183 ##############
> 184
> 185 if ($goodtogo != "yes") {
> 186 sanitize_session();
> 187 }
> 188 else {
> 189 if ($state == "main") {
> 190 showmainscreen();
> 191 }
> 192
> > 193
> 194
> 195
> 196 elseif ($state == "add") {
> 197 adduser($product,$username);
> 198 }
> 199 elseif ($state == "search") {
> 200 searchuser($username);
> 201 }
> 202 else {
> 203 doh();
> 204 }
> 205 }
> 206
> 207 ############
> 208 # END CODE #
> 209 ############
> 210 ?>
>
> Any help is greatly appreciated!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
argh, nm, I'm an idiot.
----- Original Message -----
From: "April" <april
ponymail.com>
To: "Jackson, Michael" <Michael.Jackson
lightyearcom.com>;
<php-general
lists.php.net>
Sent: Monday, February 05, 2001 4:31 PM
Subject: Re: [PHP] Parse error on blank line...
> You missed a } in there. Inside of that else, you have an if, but you
never
> close the else.
>
> > 190 showmainscreen();
> > 191 }
> > 192
>
> should be
>
> > 190 showmainscreen();
> > 191 }
> > 192 }
>
> ----- Original Message -----
> From: "Jackson, Michael" <Michael.Jackson
lightyearcom.com>
> To: <php-general
lists.php.net>
> Sent: Monday, February 05, 2001 4:23 PM
> Subject: [PHP] Parse error on blank line...
>
>
> > Hello all,
> >
> > I hope this doesn't turn out to be a stupid question, but we will
> > see... I am getting parse errors on blank lines. Not commented, but
> > totally blank. And seemingly no matter how I manipulate the text, it
> turns
> > out to always be on the same line. I'm using vim with syntax tags to
help
> > me check my basic syntax, and everything seems to be closed - I am at a
> > total loss as to what could be wrong! Let me try to clarify: Take the
> > following snippet of code - It errors out on line 193. I have no idea
> why.
> > I added blank lines to shift the code around - and if I eliminated all
of
> > the blank lines, I still error out on 193.
> >
> > 001 <?php
> >
> > .....
> >
> >
> > 181 ##############
> > 182 # BEGIN CODE #
> > 183 ##############
> > 184
> > 185 if ($goodtogo != "yes") {
> > 186 sanitize_session();
> > 187 }
> > 188 else {
> > 189 if ($state == "main") {
> > 190 showmainscreen();
> > 191 }
> > 192
> > > 193
> > 194
> > 195
> > 196 elseif ($state == "add") {
> > 197 adduser($product,$username);
> > 198 }
> > 199 elseif ($state == "search") {
> > 200 searchuser($username);
> > 201 }
> > 202 else {
> > 203 doh();
> > 204 }
> > 205 }
> > 206
> > 207 ############
> > 208 # END CODE #
> > 209 ############
> > 210 ?>
> >
> > Any help is greatly appreciated!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea.
johnny p.
> -----Original Message-----
> From: April [mailto:april
ponymail.com]
> Sent: Monday, February 05, 2001 4:31 PM
> To: Jackson, Michael; php-general
lists.php.net
> Subject: Re: [PHP] Parse error on blank line...
>
>
> You missed a } in there. Inside of that else, you have an
> if, but you never
> close the else.
>
> > 190 showmainscreen();
> > 191 }
> > 192
>
> should be
>
> > 190 showmainscreen();
> > 191 }
> > 192 }
>
> ----- Original Message -----
> From: "Jackson, Michael" <Michael.Jackson
lightyearcom.com>
> To: <php-general
lists.php.net>
> Sent: Monday, February 05, 2001 4:23 PM
> Subject: [PHP] Parse error on blank line...
>
>
> > Hello all,
> >
> > I hope this doesn't turn out to be a stupid question,
> but we will
> > see... I am getting parse errors on blank lines. Not
> commented, but
> > totally blank. And seemingly no matter how I manipulate
> the text, it
> turns
> > out to always be on the same line. I'm using vim with
> syntax tags to help
> > me check my basic syntax, and everything seems to be closed
> - I am at a
> > total loss as to what could be wrong! Let me try to
> clarify: Take the
> > following snippet of code - It errors out on line 193. I
> have no idea
> why.
> > I added blank lines to shift the code around - and if I
> eliminated all of
> > the blank lines, I still error out on 193.
> >
> > 001 <?php
> >
> > .....
> >
> >
> > 181 ##############
> > 182 # BEGIN CODE #
> > 183 ##############
> > 184
> > 185 if ($goodtogo != "yes") {
> > 186 sanitize_session();
> > 187 }
> > 188 else {
> > 189 if ($state == "main") {
> > 190 showmainscreen();
> > 191 }
> > 192
> > > 193
> > 194
> > 195
> > 196 elseif ($state == "add") {
> > 197 adduser($product,$username);
> > 198 }
> > 199 elseif ($state == "search") {
> > 200 searchuser($username);
> > 201 }
> > 202 else {
> > 203 doh();
> > 204 }
> > 205 }
> > 206
> > 207 ############
> > 208 # END CODE #
> > 209 ############
> > 210 ?>
> >
> > Any help is greatly appreciated!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
>
attached mail follows:
Even if I was missing a brace, doesn't it seem odd that it would always give me a syntax error on the same line? It's as if it's arbitrarily deciding to break there... If I add a new line after <?php, it still gives the exact same line number... And again, I can comment it out, and it will still give me an error on the same line number. Again, this is the same line NUMBER - It apparently doesn't matter what snippet of code exists there.
-----Original Message-----
From: johnny p. [mailto:johnny
gameloop.com]
Sent: Monday, February 05, 2001 05:38 PM
To: April; Jackson, Michael; php-general
lists.php.net
Subject: RE: [PHP] Parse error on blank line...
I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea.
johnny p.
> -----Original Message-----
> From: April [mailto:april
ponymail.com]
> Sent: Monday, February 05, 2001 4:31 PM
> To: Jackson, Michael; php-general
lists.php.net
> Subject: Re: [PHP] Parse error on blank line...
>
>
> You missed a } in there. Inside of that else, you have an
> if, but you never
> close the else.
>
> > 190 showmainscreen();
> > 191 }
> > 192
>
> should be
>
> > 190 showmainscreen();
> > 191 }
> > 192 }
>
> ----- Original Message -----
> From: "Jackson, Michael" <Michael.Jackson
lightyearcom.com>
> To: <php-general
lists.php.net>
> Sent: Monday, February 05, 2001 4:23 PM
> Subject: [PHP] Parse error on blank line...
>
>
> > Hello all,
> >
> > I hope this doesn't turn out to be a stupid question,
> but we will
> > see... I am getting parse errors on blank lines. Not
> commented, but
> > totally blank. And seemingly no matter how I manipulate
> the text, it
> turns
> > out to always be on the same line. I'm using vim with
> syntax tags to help
> > me check my basic syntax, and everything seems to be closed
> - I am at a
> > total loss as to what could be wrong! Let me try to
> clarify: Take the
> > following snippet of code - It errors out on line 193. I
> have no idea
> why.
> > I added blank lines to shift the code around - and if I
> eliminated all of
> > the blank lines, I still error out on 193.
> >
> > 001 <?php
> >
> > .....
> >
> >
> > 181 ##############
> > 182 # BEGIN CODE #
> > 183 ##############
> > 184
> > 185 if ($goodtogo != "yes") {
> > 186 sanitize_session();
> > 187 }
> > 188 else {
> > 189 if ($state == "main") {
> > 190 showmainscreen();
> > 191 }
> > 192
> > > 193
> > 194
> > 195
> > 196 elseif ($state == "add") {
> > 197 adduser($product,$username);
> > 198 }
> > 199 elseif ($state == "search") {
> > 200 searchuser($username);
> > 201 }
> > 202 else {
> > 203 doh();
> > 204 }
> > 205 }
> > 206
> > 207 ############
> > 208 # END CODE #
> > 209 ############
> > 210 ?>
> >
> > Any help is greatly appreciated!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
>
attached mail follows:
No, I have the same thing happen all the time. It happens after a combination of }'s and ;'s where either a } or a ; is missing. Seriously.
----- Original Message -----
From: "Jackson, Michael" <Michael.Jackson
lightyearcom.com>
To: "'johnny p.'" <johnny
gameloop.com>; "April" <april
ponymail.com>;
"Jackson, Michael" <Michael.Jackson
lightyearcom.com>;
<php-general
lists.php.net>
Sent: Monday, February 05, 2001 4:48 PM
Subject: RE: [PHP] Parse error on blank line...
> Even if I was missing a brace, doesn't it seem odd that it would
always
> give me a syntax error on the same line? It's as if it's arbitrarily
> deciding to break there... If I add a new line after <?php, it still
gives
> the exact same line number... And again, I can comment it out, and it
will
> still give me an error on the same line number. Again, this is the same
> line NUMBER - It apparently doesn't matter what snippet of code exists
> there.
>
> -----Original Message-----
> From: johnny p. [mailto:johnny
gameloop.com]
> Sent: Monday, February 05, 2001 05:38 PM
> To: April; Jackson, Michael; php-general
lists.php.net
> Subject: RE: [PHP] Parse error on blank line...
>
>
> I'm not sure where it is, but I agree that you are missing a curly brace
> somewhere. Take a break from your code for a bit, come back to it, and
> start matching braces. I suggest getting a coffee or some tea.
>
> johnny p.
>
> > -----Original Message-----
> > From: April [mailto:april
ponymail.com]
> > Sent: Monday, February 05, 2001 4:31 PM
> > To: Jackson, Michael; php-general
lists.php.net
> > Subject: Re: [PHP] Parse error on blank line...
> >
> >
> > You missed a } in there. Inside of that else, you have an
> > if, but you never
> > close the else.
> >
> > > 190 showmainscreen();
> > > 191 }
> > > 192
> >
> > should be
> >
> > > 190 showmainscreen();
> > > 191 }
> > > 192 }
> >
> > ----- Original Message -----
> > From: "Jackson, Michael" <Michael.Jackson
lightyearcom.com>
> > To: <php-general
lists.php.net>
> > Sent: Monday, February 05, 2001 4:23 PM
> > Subject: [PHP] Parse error on blank line...
> >
> >
> > > Hello all,
> > >
> > > I hope this doesn't turn out to be a stupid question,
> > but we will
> > > see... I am getting parse errors on blank lines. Not
> > commented, but
> > > totally blank. And seemingly no matter how I manipulate
> > the text, it
> > turns
> > > out to always be on the same line. I'm using vim with
> > syntax tags to help
> > > me check my basic syntax, and everything seems to be closed
> > - I am at a
> > > total loss as to what could be wrong! Let me try to
> > clarify: Take the
> > > following snippet of code - It errors out on line 193. I
> > have no idea
> > why.
> > > I added blank lines to shift the code around - and if I
> > eliminated all of
> > > the blank lines, I still error out on 193.
> > >
> > > 001 <?php
> > >
> > > .....
> > >
> > >
> > > 181 ##############
> > > 182 # BEGIN CODE #
> > > 183 ##############
> > > 184
> > > 185 if ($goodtogo != "yes") {
> > > 186 sanitize_session();
> > > 187 }
> > > 188 else {
> > > 189 if ($state == "main") {
> > > 190 showmainscreen();
> > > 191 }
> > > 192
> > > > 193
> > > 194
> > > 195
> > > 196 elseif ($state == "add") {
> > > 197 adduser($product,$username);
> > > 198 }
> > > 199 elseif ($state == "search") {
> > > 200 searchuser($username);
> > > 201 }
> > > 202 else {
> > > 203 doh();
> > > 204 }
> > > 205 }
> > > 206
> > > 207 ############
> > > 208 # END CODE #
> > > 209 ############
> > > 210 ?>
> > >
> > > Any help is greatly appreciated!
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail:
> > php-list-admin
lists.php.net
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin
lists.php.net
> >
> >
>
attached mail follows:
I have a form that is an extended version of this:
<form> <input type="text" name="email[1]"> <input type="text" name="email[2]"> <input type="text" name="email[3]"> </form>
Unfortunately, the email[1] part was generated using a variable in a loop. I have no idea how many of these fields there really will be each time this is done.
I then need to turn around and, while processing the form, extract the values for each field in another loop. Trying to do echo $email[$i] doesn't seem to work, though.
Is my entire logical approach wrong? Could it be something wrong with syntax? Is it not possible to use a variable as the inner part of an array like that? ooo, or best one to answer: does someone have a snippet of code doing what I want to do here, that I could learn from?
attached mail follows:
On Tue, 6 Feb 2001 08:57, April wrote: > I have a form that is an extended version of this: > > <form> > <input type="text" name="email[1]"> > <input type="text" name="email[2]"> > <input type="text" name="email[3]"> > </form> > > Unfortunately, the email[1] part was generated using a variable in a > loop. I have no idea how many of these fields there really will be each > time this is done. > > I then need to turn around and, while processing the form, extract the > values for each field in another loop. > Trying to do echo $email[$i] doesn't seem to work, though. > > Is my entire logical approach wrong? Could it be something wrong with > syntax? Is it not possible to use a variable as the inner part of an > array like that? ooo, or best one to answer: does someone have a > snippet of code doing what I want to do here, that I could learn from?
Have a look at the functions list and each - there are code snippets in the manual which should give you some ideas for getting the values and keys from an array. You might also be interested in count and sizeof for determining the number of elements in the array.
-- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
attached mail follows:
I am having a problem getting a php script to read a cookie that should be set.
I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. <!--#include virtual="script.php" --> Problem is, when I do this, the script does not set the cookie variables. If I just run the script the cookies are set, and read, correctly, but when I include the PHP script with the SSI call it does not read the cookie variables for some reason.
Does anyone know a work-around for this? And using a std php script is not an option, I need a way to get this to work using SSI.
Any help would be greatly appreciated.
Thanks in advance, Ben
attached mail follows:
Does anyone have a solution for importing data from a RDF-XML file into a MySQL database?
I've been racking my brain, as well as looking at tutorials and some xml parsers, but if someone has something like this it would save me tons of time.
Thanks!
attached mail follows:
Well, you're going to have to come up with a datamodel for storing the parsed data. You can parse RDF files with the XML extension, see the docs at http://www.zend.com/manual/ref.xml.php
There are some classes on phpclasses.upperdesign.com which will handle RSS files - you can probably look at these to get an idea of how to use the XML module to parse RDF.
Regards,
Sean Cazzell
attached mail follows:
You need to reset:
$option = '';
before each product.
So, inside the while(...mysql_fetch_row()) loop, but outside the while(...$colors) loop.
-- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Gerry <gerryspiralwire.com> To: Richard Lynch <richard
zend.com> Cc: <php-general
lists.php.net> Sent: Sunday, February 04, 2001 10:23 AM Subject: Re: [PHP] Select list with PHP
> This worked! > But, I get this color selection increment on each subsequent menu where > the colors from the row above mix with the ones below and so on. Assume > that the numbers are the actual colors: > > Select a color: > ---------------------------- > first menu1 next menu-> 1 next menu-> even longer > 2 2 > 3 3 > 4 4 > 5 5 > 1 > 2 > 3 > 4 > 5 > > mysql_connect(); > while ($row = mysql_fetch_array($sql_result)) { > echo"<tr><td>"; > echo $row["paint"]; > echo"</td><td>"; > echo $row["bucket"]; > echo"</td><td>"; > echo"<form action=\"http://www.\" method=\"POST\">"; > $Colors = $row["Color"]; > $options = explode(",", $Colors); > while (list(,$Color) = each($options)){ > $option .= "<OPTION>$Color</OPTION>\n"; > } > echo"<select name=\"Colors\">"; > echo "$option"; > echo"</select>"; > echo"</td></tr>"; > echo"</form> > > > It's usually a better idea to store this as a "relation": > > I'm afraid so. > > Thanks: > Gerry Figueroa > > ----------------- > Modern Confucious: > Man who run behind car get exhausted. >
attached mail follows:
Hi,
Is there a way to embed PHP code in phplib's template files? I need to run all hyperlinks through a function in order to maintain state and pass other variables from script to script. I figure this must be possible, but I'm new at using phplib, so I'm not all that clear on it...
Any ideas?
--- Derek Fong web://developer Zero-Knowledge Systems [http://www.zeroknowledge.com/]PGP Fingerprint >> 2D4F 89F0 EAC1 FBFB 97B5 0B94 FA05 C29E D23B 0A4E
attached mail follows:
We have a series of subscribed e-mails that go out to customers, you know "Forgot your password?" type thing. Theses are generated by a PHP process and as such carry PHP/Apache's process ID.
The problem is that some of our customers are now blocking mail from user 'nobody', regardless if the account exists or not. I can have PHP write the complete headers but that doesn't stop the 'from' header in Sendmail being written (the true user process). I have two choices as I see it.
1) Use 'masquerade_envelope' feature in Sendmail 2) Change the process name PHP/Apache is running under (ex: change the unprivledged user 'nobody' to 'fantasic-elastic')
Has anyone experienced this yet? Any suggestions as to which would be the best solution? I'm leaning towards changing the user of PHP/Apache simply because it doesn't cause a reliance on Sendmail.
Thanks,
DAve
-- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 davegrblc.com http://www.rblc.com
attached mail follows:
I'm currenly having a problem with a timestamp field I have on my message board...each message is given a timestamp and stored in a table...heres the basic form of the insert...
$time_added=date("Y m d H i s A");
$str = "INSERT INTO topic ( num_id, user, quote, subject, ip, message_icon, page, post_id, thread_page, forum_num, time_added) VALUES (\"$comment_id\", \"$user[0]\", \"$quote\", \"$subject\", \"$ip\", \"$message_icon\", 0, \"$new_post_id[0]\", \"$thread_page_num\", \"$f\", \"$time_added\")"; $result = mysql_query($str);
$time_added is a timestamp field in my MySQL table
this works fine...
But in the adminstrative tools im setting up, if i edit the post and resubmit the time is updated to the current time. Heres the admin code i use to update the post...t, transaction, is the unique field for each post so I use it to pull up the post..the body of the post is in a textarea (name=editpost) and i change it as needed and submit it which directs the script to the following block of code:
$editpost = addslashes($editpost); $insertion = "update topic set quote=\"$editpost\" where transaction=\"$t\""; $insertion_query = mysql_query($insertion);
The post is updated fine but the time is changed as I stated...Now I know I could pull the time_added field out and assign it to a separate variable and re-insert it when im updating but I'm curious as to why this would be happening...These are the only places where any modifications are made to the posts...on insertion and admin modification so I'm stumped as to what could be happening.
Any ideas or suggestion,
Regards, Chad Guilette
attached mail follows:
On Tue, 6 Feb 2001 10:03, Chad Guilette wrote: > I'm currenly having a problem with a timestamp field I have on my message > board...each message is given a timestamp and stored in a table...heres > the basic form of the insert... > > $time_added=date("Y m d H i s A"); > > $str = "INSERT INTO topic ( num_id, user, quote, subject, ip, > message_icon, page, post_id, thread_page, forum_num, time_added) VALUES > (\"$comment_id\", \"$user[0]\", \"$quote\", \"$subject\", \"$ip\", > \"$message_icon\", 0, \"$new_post_id[0]\", \"$thread_page_num\", \"$f\", > \"$time_added\")"; $result = mysql_query($str); > > $time_added is a timestamp field in my MySQL table
Here is the reason - please see the mysql docs about the behaviour of a timestamp field, particularly how it is automatically updated if, among other circumstances, "the column is not specified in an insert ... statement"
You may need a datetime type which doesn't auto-update.
> > this works fine... > > But in the adminstrative tools im setting up, if i edit the post and > resubmit the time is updated to the current time. Heres the admin code i > use to update the post...t, transaction, is the unique field for each > post so I use it to pull up the post..the body of the post is in a > textarea (name=editpost) and i change it as needed and submit it which > directs the script to the following block of code: > > $editpost = addslashes($editpost); > $insertion = "update topic set quote=\"$editpost\" where > transaction=\"$t\""; > $insertion_query = mysql_query($insertion); > > The post is updated fine but the time is changed as I stated...Now I know > I could pull the time_added field out and assign it to a separate > variable and re-insert it when im updating but I'm curious as to why this > would be happening...These are the only places where any modifications > are made to the posts...on insertion and admin modification so I'm > stumped as to what could be happening. > > Any ideas or suggestion, > > Regards, > Chad Guilette
-- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
attached mail follows:
I need to build a query that needs to find the previous or next record in a database using a form. The records are numbered using a field called 'sb_num'. This field is initially set using the form. Would something like this work Next: Select 'field1', 'field2' from table order by sb_num where $sb_num>=++sb_num limit 1
Previous Select 'field1', 'field2' from table order by sb_num desc where $sb_num<=--$sb_num limit 1
Luis
lrlebron
home.com
attached mail follows:
Hi all,
I'm basically really struggling with this query, so would appreciate any pointers on how I could do this. I've included my experimental code underneath, and need to make it work. The first query, which I know works, pulls info from a mysql table.
Now for each of my diary entry, I want people to be able to add comments. All comments go into another table which records what section that comment came from (which is diary), and the id (which it takes from the id number of the diary entry).
Now what I want to do is have another query which asks the second table the number of comments per each section id, for that section, (and I think QUERY2 does this fine). But I need the answers to integrate with the information pulled from first query. How can I intergrate the results from 2 queries into one basically!
CODE *************************** $query1 = " SELECT entry FROM diary WHERE month='$month' ORDER BY id desc"; $result1 = mysql_query($query1);
$query2 = "SELECT count(*) AS replies FROM sexsurvey_boys WHERE section='diary' GROUP BY sectionid ORDER BY sectionid desc"; $result2 = mysql_query($query2);
if ($result1) { echo "<table border=0 cellspacing=0 cellpadding=2 width=90% align=center>"; while ($r = mysql_fetch_array($result)) { extract($r); $entry = nl2br($entry); echo " <tr bgcolor=#ffffff><td colspan=2>$entry<br></td></tr> <tr bgcolor=#ffffff> <td>» <a href=\"javascript:popupwin('popupwindow.php?section=diary§ionid=$id',200,530)\">comment on this diary entry</a></td> <td align=right>read comments, (0) so far.</td></tr> "; } } else { echo "Whoops!"; } mysql_free_result($result1); *********************
TIA! Sunny
__________________________________________________ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
attached mail follows:
"Sandeep Hundal" <sandeep_wde
yahoo.com> wrote:
> Now what I want to do is have another query which asks the second
> table the number of comments per each section id, for that section,
> (and I think QUERY2 does this fine). But I need the answers to
> integrate with the information pulled from first query. How can I
> intergrate the results from 2 queries into one basically!
> $query1 = " SELECT entry FROM diary WHERE month='$month' ORDER BY id > desc"; > $result1 = mysql_query($query1); > > $query2 = "SELECT count(*) AS replies FROM sexsurvey_boys WHERE > section='diary' GROUP BY sectionid ORDER BY sectionid desc"; > $result2 = mysql_query($query2);
There's no common fields b/w the two queries so it's not clear how you want to merge the two queries. If you wanted all results from one table and matching results from a second table based on a common field in both tables I'd suggest a LEFT JOIN (plenty of documentation on mysql.com and rest of internet). Looks like this probably won't help in your case so you might want to look at temporary tables, which will allow you to save the results from one or both queries into a table and then run a query using the temporary tables. Or you may be able to organize your PHP code to run the second query after each row of the first query is returned and integrate the results within PHP, but you could end up running a ton of queries that way.
-- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/
attached mail follows:
If I have a text file with all my sql statements (from like say mysqldump) what's the easiest way of passing them to mysql? I'm on RedHat6.2 with mysql 3.22.32
Thanks, -Jonathan
attached mail follows:
> If I have a text file with all my sql statements (from like say mysqldump) > what's the easiest way of passing them to mysql? I'm on RedHat6.2 with mysql > 3.22.32 > > Thanks, > -Jonathan
I'm not sure about the easiest way, but definitely an easy way would be to simply do:
cat filename | mysql your_database -u user -p
jason
attached mail follows:
On Tue, 6 Feb 2001 11:49, Jonathan Sharp wrote: > If I have a text file with all my sql statements (from like say > mysqldump) what's the easiest way of passing them to mysql? I'm on > RedHat6.2 with mysql 3.22.32 > > Thanks, > -Jonathan
Assuming you want to recreate tables from the dump and assuming you have created the necessary database, you can simply do this on the command line
mysql database < your_mysqldump_file
or you can nominate the file in the data import part of phpMyAdmin
-- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
attached mail follows:
From: "Zeev Suraski" <zeev
zend.com>
Sent: Monday, February 05, 2001 4:32 PM
> This is a known limitation in the initial release of the encoder. The > license file must be stored in C:\Program Files\Zend, even if your standard > Program Files directory is in E:.
Thanks, that was about the only combination that I didn't try. Now why didn't I think of that... ;-)
Anyway it works now - like a charm :)
- Carsten
attached mail follows:
Currently i have two files post.php3 - http://www.bbhacks.com/board/post.phps and viewthread.php3 - http://www.bbhacks.com/board/viewthread.phps
what im trying to do is make it so signatures are dynamic. I think im close but i also think since im fairly new i have some things wrong as well.
Basically in a nutshell... i made a new row in post signature int(1) i replaced the normal code of if ($signature == yes) { $message .= blah } with if ($signature == yes) { $memsig = "1"; }
and in post i have if ($post[signature] == 1) $sql = "SELECT * FROM members WHERE username='UserName'"; $query = mysql_db_query($database, $sql) or die(geterrdesc($sql)); $msig = mysql_fetch_array($query); $msig[signature] = $sig; $pagetext = $pagetext . "<BR>____________<BR>" . censor(bbcodeparse($sig));
can u find any problems with this code at all? the two problems im having are... 1. it puts a 1 in the db reguardless of choice. 2. when it is set to one, it shows _____________ but the signature is blank. Ive even tried to echo it out and its blank, and as far as i know its right thanks in advance.
attached mail follows:
Hi,
I'm wondering if there is an easy way to code a generic cloner at top level of object inheritance tree so that all descendents can follow? Or by nature the clone() function needs be implemented at final class def.? Thanks a lot!
Chien-pin
attached mail follows:
Who are you and why are you sending me this?
*-----Original Message-----
*From: Winnie [mailto:winframe
iname.com]
*Sent: Monday, February 05, 2001 9:47 AM
*To: php-general
lists.php.net
*Subject: [PHP] How to save something in a Java Applet as an IMAGE file?
*
*
*hi,
*
*how can i do this? i have a java applet on my site which allows users to
*create their own drawings. i want to provide a "Email this to me" option,
*which will save the applet drawing and email it to the user. is there any
*way i can achieve this?
*
*thanks!
*winnie
*
*
*---
*Outgoing mail is certified Virus Free.
*Checked by AVG anti-virus system (http://www.grisoft.com).
*Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01
*
*
*
*--
*PHP General Mailing List (http://www.php.net/)
*To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
*For additional commands, e-mail: php-general-help
lists.php.net
*To contact the list administrators, e-mail: php-list-admin
lists.php.net
*
*
attached mail follows:
I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and never got anywhere, so I used apache and it works fine.
I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated, but no luck.
I would like to use some of the functionality of IIS/NT5.0
Any ideas????
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]