I've searcded PHPBuilder.com, zend.com, hotscripts.com, and php.net...
can't find anything
> -Original Message-
> From: _lallous [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 2:31 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Tracking shipments UPS, FEDEX, etc...
has anybody written any routines or functions they'd care to share for
parsing the tracking information out of UPS, FEDEX, or other shipping
carriers tracking pages?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
I couldn't help but frown at this message... This is typical of this and
hundreds of other lists... instead of learning the language, people just
jump in, try to write code, and then when something doesn't work, it's the
language's fault... It absolutely amazes me that such a huge number of
peop
r. They control the setup and
> > configuration of the machines... since it's a shared server I doubt I'll
> > convince them to set the timezone to my location, thus throwing everyone
> > else on the same server out of whack...
> >
> > I can use the p
; -Original Message-
> From: Don Read [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 8:39 PM
> To: Joe Sheble (Wizaerd)
> Cc: General PHP List
> Subject: RE: [PHP] local time v.s. server time
>
>
>
> On 25-Aug-2001 Joe Sheble \(Wizaerd\) wrote:
> &
My website is hosted with a provider, and there is a three hour difference
in timezones, so when saving date and times to the database, they reflect
the server time and not my own local time. The clincher is I know I could
do some time math and just substract 3 hours, but I live in Arizona, so we
ading??
> -Original Message-
> From: Tom Carter [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 19, 2001 2:19 AM
> To: Andrew Libby; Joe Sheble (Wizaerd)
> Cc: General PHP List
> Subject: Re: [PHP] class variables and methods
>
>
> There was a long discussion on t
I've been doing some reading up on OOP in PHP, and looking at some of the
classes available on the web, and I've got what is probably a stupid
question. I've seen this many many times..
class someclass {
var $somevar = "someval";
function set( $key, $val ) {
$thi
I've been using PHP on Linux for about 2 years now, and have absolutely
loved it. However, I've recently accepted a full time position developing
icky ASP pages, and still use PHP on my own sites. I was wondering about
using PHP on WIndows and IIS 5.0. Could somebody using the Windows version
o
I know this would probably be better placed on the mySQL mailing list, but
alas I do not subscribe to it and am hesitant to do so to ask one question.
Enough PHP users use mySQL that perhaps the answer could be found here.
In searching through a text field in a mySQL database, I would like to
s
I know this would probably be better placed on the mySQL mailing list, but
alas I do not subscribe to it and am hesitant to do so to ask one question.
Enough PHP users use mySQL that perhaps the answer could be found here.
In searching through a text field in a mySQL database, I would like to
sea
And how exactly is this the fault of PHP? It's the browser doing the
actual upload, all PHP does is receive the file after the browser has
uploaded it, sending the name to the script so it knows where it is
At 04:25 PM 5/2/01 -0400, Jason Lam wrote:
>I am wondering if there are any plans
You have a browsecap.ini file and it is in the correct location?
At 11:04 AM 4/30/01 -0700, elias wrote:
>hello.
>i'm trying to detect what browser version is there...i'm using get_browser()
>as it was documented:
>
>
>
>$t = get_browser();
>
>var_dump($t);
>
>and all i can get like output is:
>b
Alias the count()
$query = "select count(fld_gender) s sumField from tbl_survey";
$result = mysql_query( $query, $dbConnection );
$aRow = mysql_fetch_array( $result );
print( $aRow["sumField"] );
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
ht
egads... it distracts me to no end to see an if-else block broken up that
way... to me seeing
if( some expression ) {
some action
} else {
some other action
}
is the most normal thing in the world.
Same goes for the { at the end of the expression, such as
for( ... ) {
}
whil
I use ImageMagik all the time for thumbnail creations... this doesn't
resize the image, it creates a new image, a thumbnail... but the principle
is the same
$cWidth = 175;
$picture_src = "fullSize/somepic.jpg";
$thumb_dest = "fthumbNail/somepic.jpg";
$aImageInfo = getimagesize( $picture_
exec( "ls -1 help*.*", $arFiles );
foreach( $arFiles as $cFile ) {
print( $cFile );
}
At 08:44 AM 4/19/01 -0400, Matthew Luchak wrote:
>$path='/root/helpfiles/';
>$dir_handle = opendir($path);
>
> while ($file = readdir($dir_handle)) {
>if ((ereg("help",$file)){
>INCLUDE "$path$fil
I am using the following function to send out emails via PHP:
function SendEMail( $to, $subject, $body ) {
$additionalHeaders = "MIME-Version: 1.0\n";
$additionalHeaders .= "Content-type: text/html;
charset=\"iso-8859-1\"\n";
$additionalHeaders .= "Content-Transfe
> > Please read again what I wrote
>
> OK.
>
> > In a mysql_connect() it is possible to specify a path to the socket
> > which should be used for communicating with MySQL.
>
> Yes. [string hostname [:port] [:/path/to/socket]
It's not a question. It is a statement prefecaing the real question
In your query you have compid specified twice. If this field is named the
same in two seperate tables, preface your fieldnames with the table names...
>$sql="SELECT fname, lname, users.compid, status, dept, room, bldg, phone,
>ticket_num, tickets.compid, date_rpt, request_type, hardware, model
Something I almost always do when pulling dates from a mySQL table is
format the date column in the query itself using the mySQL function
DATE_FORMAT()...
At 01:13 PM 4/6/01 +0100, Matt Davis wrote:
>Hi I am trying to format a date extracted from my DB. I have run my query
>and then have used
ccommended
methods. But in your special browser, they must be reveresed because...
well... er I can't think of any good reason to reverse these in your
special browser...
At 10:10 AM 4/5/01 -0400, Scott Fletcher wrote:
>Well, mine does!!!!!
>
>Scott
>
>""Joe Sheb
This isn't quite accurate. WHen a form's method is set to "GET" (which BTW
is the form's default method) the variables and their values are passed
along the URL. If your form's method is set to "POST" then nothing should
get passed along on the URL. If you see all your data in the URL, you'r
I'm not 100% certain about this, but I believe you want to look at using a
LEFT OUTER JOIN
At 11:37 AM 4/4/01 -0400, bill wrote:
>If I want to find a list of items in one table whose id does not appear
>in another table, can that be done in one query?
>
>I can only figure it out if I use two que
I wouldn't expect a programmer to walk in off the street and try to do
graphic design without having any concept of graphic design. I wouldn't
expect a mechanic to walk into the kitchen and expect to build a
souffle. I wouldn't expect a gardner to walk in and perform brain
surgery. And I wo
Typically I would never respond to this type of thread discussion, but it's
one that gives me a great amount of frustration from time to time. I think
this level of frustration stems from the fact that a lot of these 'newbie'
questions are even more basic than a PHP newbie should be asking. T
thanx, I'll be looking these over vigarously...
At 05:11 PM 3/27/01 +, Philip Olson wrote:
>Check out this post :
>
> http://marc.theaimsgroup.com/?l=php-general&m=98555149708325
>
>The first two tutorials should help. Btw, no reconfigurations are
>required.
>
>Regards,
>
>Philip
>
>On Tue
in the onCLick event of the checkbox call a javascript function. In that
function use a window.open() method to open aother browser window, using the
open() methods various properties to control how that browser window looks
and feels. For the URL for that browser window, make it a PHP script
pa
I'm using an .htaccess file to auto_append and auto_prepend files within a
specific directory, and it works great. Unfortunaltely if I create a new
sub-directory that doesn't have it's own .htaccess file, it too tries to
use the auto_append and auto_prepend values of the .htaccess file from th
virtual (PHP 3, PHP 4 )
Perform an Apache sub-request
int virtual (string filename)
Virtual() is an Apache-specific function which is equivalent to in mod_include. It performs an
Apache sub-request. It is useful for including CGI scripts or .shtml files,
or anything else that you would parse thr
excuse my ignorance here, but is this a configurable options? Anytime I
use $PHP_SELF, it strictly the directory and filename..
for example say I have a forum running at
www.somedomain.com/forum/index?Message=12
my $PHP_SELF strictly gives me /forum/index.php. I know this for a fact
because
I've found http://www.jtlnet.com to be very good and especially responsive...
At 09:09 AM 3/19/01 +, Matt Williams wrote:
> > *PHP4
> > *MySQL
> > *Telnet access
> > *Decent Support
> > *Preferably a Cobalt server (or one with a VERY good Web-based
> > administrator, most other types of Web
the PHP equivalent is isset()
if( !isset( $url_Page ))
At 03:09 AM 3/19/01 -0500, Jack Dempsey wrote:
>What exactly does that do chris?
>If you're trying to check and see if there's a file on the server, then you
>could do something with readdir, is_file, etc...if you want to post what
>that act
e management feels this is
acceptable because there are very few (VERY few) people accessing the
intranet this way.
>"Joe Sheble (Wizaerd)" wrote:
>
> > Currently in-house our intranet is made up of Windows NT, IIS, and
> > ColdFusion. We've also settled on MS IE
Currently in-house our intranet is made up of Windows NT, IIS, and
ColdFusion. We've also settled on MS IE as our standard browser, and use
advanced authentication for logging into the intranet. This provides
employees with one click access to the intranet without having to manually
and phys
I'd start by adding the mysql_error() function in your die() statement...
$result = mysql_query($sql,$connection) or die ("Couldn't get results: " .
mysql_error());
it might give more information to help you find the problem...
At 10:15 AM 3/8/01 -0800, Nicole Lallande wrote:
>Greetings,
>
>I
";
while (false!==($file = readdir($handle))) {
// new code here
$cExt = explode( ".", $file );
// and here
if ($file != "." && $file != ".." && ( strtolower( $cExt[1] ) == "jpg" ) {
echo "";
echo $file;
e
You could use the mySQL function DATE_FORMAT() in your query string..
SELECT DATE_FORMAT( DateAdded, '%m/%d/%Y' ) as d_Added FROM myDB
At 12:52 PM 1/8/01 -0500, stas wrote:
>Hello,
>
>How can I format a date stored in the database in a Date field. It's in this
>format:
>
>-mm-dd
>
>I under
Is it in-efficient to use shuffle()? I have a simple 6 element array with 6
strings (URLs to images) and I'm using shuffle() to display all of them in
random order upon each page load. The images take a long time (of course is
relative, it's mere seconds) but when I remove the call to shuffle, t
Is there a practical limit one should make on a php file to be included?
I'm putting all my global variable declarations and function defintitions
into one file to be included across the site. I had thought about splitting
them different files based on functionality, but then I thought it would b
Is there a practical limit one should make on a php file to be included?
I'm putting all my global variable declarations and function defintitions
into one file to be included across the site. I had thought about splitting
them different files based on functionality, but then I thought it would b
Other than the fact you cannot overwrite them (which helps with
carelessness), is there any real benefit to declaring a CONSTANT over just
defining a variable? In typical compiled programs, I believe constants or
macros don't load into the symbol table, thus reducing memory requirements
for t
Even though the WC3 hasn't fully finalized the spec for SVG, it's still a
viable option for doing some dynamic graphics work using the Adobe
plugin. Has anybody been messing around with generating dynamic SVG code
with PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
Actually this won't work since the actual query never runs
try:
$sql = "select * from table where bla bla bla";
$rResults = mysql_query( $sql, $dbConnection );
if( mysql_num_rows($rResults) == 0 ) {
do this;
} else {
do this;
}
At 11:52 AM 2/20/01 -0500, Brian V Bonini wr
by checking the return value of mysql_num_rows()
At 04:32 PM 2/20/01 +, Matt Davis wrote:
>If my SQL returns no results then i want to redirect to a page saying no
>results etc but if results are found then I want it to continue on down the
>script how would i do this.
>
>Matt.
>
>
>--
>PHP G
Your question encompasses two parts... the subject says these variables
are storing incomplete values and later in the email you state mySQL isn't
maintaining the formatting of your data.
The first part is possible because your mySQL database field may not be
declared big enough to actually
Another solutions is:
$script_name = getenv("PATH_TRANSLATED");
$dir_name = dirname($script_name);
// $arFiles will be an array of filenames
exec( "ls -1 $dirname", $arFiles )
foreach( $arFiles as $cFile ) {
print( $cFile );
}
Jo
m
> Pacifier Online - http://www.pacifier.com
>
>
> -Original Message-
> From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 4:16 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] input type=file
>
>
> to put it
to put it simply, you can't...
but you could put an input type of text with a link or a button next to it
manually, and then on the onClick of either this button or link open a
secondary window running a PHP script that reads a particular directory
structure with full navigation support. Then wh
I do lots and lots of count()'s in PHP and have never had any problems...
of course, I do it a bit differently than you did..
// I always have these in a top level include
$UserName = "noneYa";
$Password = "yeahRight";
$myDatabase = "uhhuh";
$dbConn = mysql_connect( "localhost", $UserName, $Pas
you're looping through the all database records, assigning the values to
variables, but then you never output the variables until after you exit
your while() loop. This is incorrect. Time to read up on database
handling in PHP...
// psuedo-code
$queryResults = mysql_query( $query, $db );
wh
what exactly do you mean by it doesn't work...
print( "some test" );
it's always worked for me...
At 09:31 AM 2/16/01 -0600, Nguyen, David M wrote:
>I want to make my text BOLD using either or but it
>did not work with PHP. Can someone please advise why not or if there is
>another way to do
it's be a bit more helpful if we can see the code you're using to display
your results...
At 02:15 PM 2/16/01 +, Matt Davis wrote:
>I have a php script which runs a query and then outputs the results in to
>html. The html should repeat itself depending on the number of results. i.e
>to produ
add a DESC to your order by clause... fairly simple SQL syntax, could be
picked up from a myriad of SQL references and manuals
$sql = "select * from table_name WHERE TO_DAYS(NOW()) - TO_DAYS(date) <= 21
order by date DESC";
At 12:14 PM 2/15/01 -0500, Malouin Design Graphique wrote:
>Hello,
>
try using mysql_query( $qQuery, $dbConnection );
At 10:32 AM 2/15/01 -0600, Zhu George-CZZ010 wrote:
>I am using MySQL 3.22.32 and PHP 4.01PL2, but it seems that
>mysql_db_query($db, $myQuery) is not quite stable, actually, in my code,
>it is like
>
>mysql_db_query($db, $myQuery) or die "Someth
Well I don't know about anyone else's experience, but I've been using JTL
Networks (http://www.jtlnet.com) for almost 6 months. Granted, that's not a
lot of time, but I've been fairly impressed with them. Reasonable rates, a
great support staff, and a lot of flexibility...
Joseph E. Sheble
a.k.
At 03:11 PM 2/13/01 -0500, you wrote:
>> I find the ability to write something once (say a mysql_connect();
>> statement) and be able to run it on any page just with $db->connect(); is
>> pretty cool.
>>
>> While that may not seem cool, if you some day change a a PHP statement that
>> exists
I've been using PHP for over a year now and have been successfully running
three different websites developed with PHP, but I've never done anything
with classes or objects. Even when returning data from a mySQL database, I
use mysql_fetch_array() instead of mysql_fetch_object().
What am I mi
oops, that function declaration should look like:
function println( $cTextToPrint ) {
print( $cTextToPrint . chr(13) );
}
At 07:40 AM 1/31/01 -0700, Joe Sheble (Wizaerd) wrote:
>Write yourself a function that handles it yourself and include it in every
>page... something s
Write yourself a function that handles it yourself and include it in every
page... something such as:
function println( $cTextToPrint ) {
print( $cTextToPrint . "" );
}
then in your pages just use println() everywhere...
At 08:29 AM 1/31/01 -0600, Mark wrote:
>I'd like my html output
Either I missed the answer on the mailing list, or it was accidentally
skipped, so I'll re-ask...
I have a bit of text ( a TEXT field in mySQL ) and there may or may not be
URLs in this text. (These URLs are defined as anything starting with
http://, mailto:, or www.). Some of these URLs may
I have some text that may or may not contain valid URLs (anything starting
with an http:// or a mailto:). Some of these URLs may or may not be
contained within a valid A HREF tag. Could somebody help me out with a
regex that would find all the URLs that are not already contained in an A
HREF tag
I have some text that may or may not contain valid URLs (anything starting
with an http:// or a mailto:). Some of these URLs may or may not be
contained within a valid A HREF tag. Could somebody help me out with a
regex that would find all the URLs that are not already contained in an A
HREF tag
// loops through the entire recordset
while( $qrResults = mysql_fetch_array( $rQuery )) {
print( $qrResults["SomeField"]
}
// reset the recordpointer to the first record
mysql_data_seek( $rQuery, 0 );
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP,
I don't believe this is a PHP function, but rather a function of the browser
if using the
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=
> -Original Message-
> From: Tim Meader [m
===
> -----Original Message-
> From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 28, 2001 12:44 PM
> To: General PHP List
> Subject: confused about eval()
>
>
> I have searched the archives, php.net and zend.com, and cannot
>
I have searched the archives, php.net and zend.com, and cannot seem to come
up with an answer as to why this isn't woking...
I have the following code snippet stored in a database, and I'm trying to
eval it with this line of code:
$cVar = addslashes( $qrNews[$cContentField . "Text"] );
eval( ""
Is it possible that the name field isn't lon enough to contain the full
value so is being truncated whereas the description field is long enough...
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
your function declarations must appear before you actually call them.
> code
> ...
> function pf() { echo "profile"; }
>
> function pal_edit() { echo "pal"; }
> switch ($action) {
> case "pf":
> profile();
> break;
>
> case "pal":
>pal_edit
or you download the PDF manual, and search it as well...
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=
> -Original Message-
> From: Hrishi [mailto:[EMAIL PROTECTED]]
> Sent: Wedne
70 matches
Mail list logo