Please someone help me on this?
--
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: [EMAIL PROTECTED]
-Original Message-
From: Gonyou, Austin
Sent: Wednesday, July 25, 2001 12:50 PM
To: Gonyou, Austin; 'Chris Cocuzzo'; [EMAIL PROTECTED]
Subject:
Ok this is the big question, in-depth could someone tell me what PHP could be used for
other than aking databases (which i canT do)
Thanks
-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
I am using the script include below to read the content
of a file and output it.
When I load this script with the adress of a plain html
file it outputs everything like expected, except there are
some extra characters spread over the file. They come in little
string like '40d' or '1000' and
It can be used for (nearly) anything, it seems.
Sure, making dynamic web sites is cool... not necessarily database driven,
but perhaps driven by user input.
I'm currently using PHP as my primary shell scripting language... I have a
collection of scripts that manipulate directories full of
Is there anyway to prevent session variables from being overwritten by a get string?
I'm wanting to use sessions for security/login, but I'm finding that I can bypass this
very easily. For example, I want to hide menu items based on security level, so I use
something like this:
if
to do what?
There's tons of sample scripts out there on
www.weberdev.com
www.zend.com
www.devshed.com
if you just want to go absorb knowledge
Lara
- Original Message -
From: Kyle Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 9:40 PM
Subject: [PHP] PHP
I want to replace a string like this 1B335-2G with this B335. So for all the
strings I want to remove the first character and the last three characters.
I'm not sure which replace function to use or how to go about it. Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To
Also,
px.sklar.com
www.phpbuilder.com
www.hotscripts.com/PHP
Anyone else?
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: Lara J. Fabans [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 3:46 PM
Subject:
Is there anyway to prevent session variables from being
overwritten by a get string?
PHP will do this automatically *if* you initialize your session variables to
*anything* as soon as you register them. For example,
session_register(sess_auth);
$sess_auth = ;
If you do this, then session
Those scripts do stuff. Some of us have submitted code to those places.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: Kyle Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 11:57 PM
Subject: Re:
since you know exactly which 4 characters you want to keep you can use a
simple string trimming routine.
$newstring = substr($string,1,5);
No need for complicated regular expressions!
- seb
-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 21:47
To: PHP
IMHO
$query = SELECT shoodID FROM shoots WHERE location=\$location\;
and even
$query = SELECT shoodID FROM shoots WHERE location='$location';
sometimes cause SQL Syntax Error,
because the variable $location may contain quote characters (')()...
since i experienced the same thing i've been
Here's an obvious one:
1. Go to http://www.php.net (or one of its mirrors)
2. Click Show Source in the bottom right-hand side of any of the pages on
the site.
J
Tyler Longren wrote:
Also,
px.sklar.com
www.phpbuilder.com
www.hotscripts.com/PHP
Anyone else?
Tyler Longren
Captain
$newstring = substr($string,1,4);
FOUR, not FIVE. Doh.
-Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 22:03
To: [EMAIL PROTECTED]; PHP
Subject: RE: [PHP] Regular Expression Question
since you know exactly which 4 characters you want to keep you can
Aren't the trims just for white space?
Jeff Oien
since you know exactly which 4 characters you want to keep you can use a
simple string trimming routine. I forget the name of the function in php
but it's there and it'll be something like
trimstring($string,1,5);
or something like that.
Anyone know if we in the US can use guys like these?
http://www.globalsign.net/digital_certificate/hypersign/index.cfm
that's 197 usd (plus some amount of vat?) for a **128** bit certificate.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I hope my later message clarifys what I mean.
- seb
-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 22:05
To: PHP
Subject: RE: [PHP] Regular Expression Question
Aren't the trims just for white space?
Jeff Oien
since you know exactly which 4
OK let's say in variable $search I have the string color (without the
quote marks).
now I want to be able to refer to the variable $color in my code.
How in gods name do I do this. I guess somehow I have to combine a $ with
the contents of £search or something...?
- seb
-Original
Hello Kyle,
The difference between echo and print is that print returns a boolean value,
so you can check if blah blah was successfully printed.
more info about this:
www.php.net/print
www.php.net/echo
Best regards,
Johannes Schill
- Original Message -
From: Kyle Smith [EMAIL
Well,
I finally got some time on this and found that is_file() and is_dir() will
NOT traverse drectories very well. So, you must chdir(), then execute
is_file() is_dir() as needed.
--
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: [EMAIL PROTECTED]
[EMAIL PROTECTED] (Kyle Smith) wrote:
What is the difference between using
?php
print blah blah
?
and
?php
echo blah blah
?
print is a simple function that outputs what it's got in, where as
echo more or less is the same but can take more paremeters, look at
their manual
[EMAIL PROTECTED] (Johannes Schill) wrote:
Hello Kyle,
The difference between echo and print is that print returns a boolean value,
so you can check if blah blah was successfully printed.
hmm isen't it always succesfull printed or did I miss something?
--
Henrik Hansen
--
PHP
Thanks! I changed my code to the following and it plugged that hole. :)
if (!$PHPSESSID) {
$sess_auth = ;
session_register('sess_auth');
}
- Original Message -
From: Sascha Schumann [EMAIL
So sprach »Rasmus Lerdorf« am 2001-07-24 um 16:42:12 -0700 :
Add --with-kerbeors to your PHP configure flags
Done. I ran:
./configure --enable-bcmath --enable-exif --enable-ftp
--enable-dba=shared --enable-dbx --enable-magic-quotes
--enable-safe-mode --enable-sysvshm --enable-sysvsem
Hello,
simple question:
$sock = fsockopen($server_ip, $server_port, $errno, $errstr, 30);
while(!feof($sock)) echo fgets($sock,4096);
fclose($sock);
why does the while() makes an infinite loop, like if FEOF was never found ?
thanks
Arnauld Dravet
[EMAIL PROTECTED]
I'm looking for opinions on using Linked Lists vs Arrays in PHP.
As a little background:
I'm developing a calendar that works with LDAP.
I've got the following classes defined.
Event and Calendar
Calendar has methods
displayMonthView($timestamp)
displayWeekView($timestamp)
That's like saying What's C++ good for?
Well, not quite... Ha ha... I get a bit carried away... But it's close
enough.
PHP does what you want it to do... Database-driven sites are covered
frequently on this list because PHP's database support is extensive and
very easy to use.
You
http://www.php.net/manual/en/function.substr.php
string substr (string string, int start [, int length])
Substr returns the portion of string specified by the start and length
parameters.
If start is positive, the returned string will start at the start'th
position in string, counting from
Not if there are syntax errors like misplaced quotes (, ').
Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: Henrik Hansen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 3:54 PM
Subject: Re: [PHP] Big difference?
[EMAIL PROTECTED] (Johannes Schill)
Hello everyone,
This is slightly off topic, but I'm sure you guys are the best group to
answer this.
I have a client who needs a wireless website, that interacts with PHP and
MySQL. In addition to that, the client wants to be able to track the
geographical location, of the user--who
I must confess I think this can't be done with PHP because of it being
server-side but hell you seem like a friendly and helpful enough bunch of
guys anyway so I thought I'd ask you knowledgable ones.
So what should I be using? Javascript? I want the size of the window, not
the screen
Er, surely you need a device with built in GPS recievers? WHich certainly
won't be every PDA and mobile phone out there...
- seb
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: 26 July 2001 00:22
To: [EMAIL PROTECTED]
Subject: [PHP] OT--PHP, MySQL, WML and GPS
So sprach »Alexander 'Digital Projects' Skwar« am 2001-07-26 um 00:10:00 +0200 :
Same result. Cannot load /usr/local/apache/libexec/libphp4.so into
server: /usr/local/apache/libexec/libphp4.so: undefined symbol:
krb5_defkeyname
Hrmpf, I just installed the latest krb5: krb5-libs-1.2.2-4.
True, that's because mySQl doesn't understand it without the signle quotes,
or any descent database for that matter.
BC
-Original Message-
From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
Sent: woensdag 25 juli 2001 22:12
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Why doesn't this simple query
Ok - this is a long shot.
I'm supporting a PHP3/Apache/Oracle system that has some issues related to
the upcoming Sep 3 2001 event when the UNIX timestamp changes from 9 digits
to 10. I'd like to run some tests involving a system date after Sep 3 on
our Solaris server that houses all of our
I have seen this question alot recently. Maybe it is time for an FAQ. Maybe
somebody
else would like to have an attempt at wording this better:
Q: (7.15?) I want to use the header function to do something like a
redirect, but I keep
getting messages about the headers having already
Hello everyone,
I am very new to PHP (only 2 days now!), and I am having a problem with
MySQL.
This is probably simple.
Ok, I insert a new row into a database that has an AUTO_INCREMENT key
defined.
How to get the value of the AUTO_INCREMENT field of the row I just inserted?
My database
On Thu, 26 Jul 2001 09:47, Dana Holt wrote:
Hello everyone,
I am very new to PHP (only 2 days now!), and I am having a problem with
MySQL.
This is probably simple.
Ok, I insert a new row into a database that has an AUTO_INCREMENT key
defined.
How to get the value of the AUTO_INCREMENT
I was reading through the PHP manual and got to the section on constructors.
snip
class A {
function A() {
echo I am the constructor of A.br\n;
}
function B() {
echo I am a regular function named B in class A.br\n;
echo I am not a constructor in A.br\n;
}
}
class B extends
I'm thinking of writing some web aps to interface with a progress database
created with Association Plus. I'm wondering if anyone has done this and if
it was hard. I'm not certain how to go about understanding this whole ODBC
thing ...
Susan
--
[EMAIL PROTECTED]
http://futurebird.diaryland.com
On Wed, 25 Jul 2001 22:06, venomous wrote:
This is the code just a normal imagecreate function
?php
file://draw1.php
Header(Content-type: image/jpeg);
$image = ImageCreate(200,150);
$gray = ImageColorAllocate($image,204,204,204);
$blue = ImageColorAllocate($image,0,0,255);
What's the method for populating any number of html
form option.../option tags with query results?
I've seen lots of php-embedded examples for CHECKBOX,
RADIO and even SELECT, but I can't seem to figure out
how to create a simple drop-down menu. HELP!!!
- Original Message -
From: El Gerva
To: [EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 2:46 PM
Subject: Installing PHP in WinNT and Apache 1.3
Hi everyone...
I'm really a newbie in PHP. I've got Perl running in Apache, and i want to install PHP
4 (binary) too.
These are the
What's the method for populating any number of html
form option.../option tags with query results?
I've seen lots of php-embedded examples for CHECKBOX,
RADIO and even SELECT, but I can't seem to figure out
how to create a simple drop-down menu. HELP!!!
Wouldn't it just be:
select
I use the following
Looks a bit unwieldy to call, but does everything I need.
eg, say I have a table called foo with ID, Name
print OptionCreate (ID,returnID, foo order by Name, ,Name);
will create me a drop down
print OptionCreate (ID,returnID, foo order by Name, 1,Name);
will create me
Funny you should ask - just done it myself:
?php
$table=shoots;
require (connect.php4);
$result=MYSQL_QUERY( SELECT eventName FROM $table);
$num_rows = mysql_num_rows($result);
for ($i=0;$i$num_rows;$i++)
{
echo option;
On Thu, 26 Jul 2001 06:54, Seb Frost wrote:
OK let's say in variable $search I have the string color (without the
quote marks).
now I want to be able to refer to the variable $color in my code.
How in gods name do I do this. I guess somehow I have to combine a $
with the contents of
Whoops meant to delete the old message. Doh. Variable variables eh? A
topic I've always wondered about and never found in a manual for any of the
languages I've used before. Will go and have a look now, cheers.
- seb
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
On Thu, 26 Jul 2001 05:49, David OBrien wrote:
I'm having a heck of a time getting something to work like it should
I have a script which reads a list of words one per line
I want it to display the length of the word a tab then the word. No
matter how I code it it still only shows the word
I use Quanta. Sorry, don't have a link at the moment. Try on freshmeat.net
or sourceforge
- k
On Tuesday 24 July 2001 11:27 pm, Chip wrote:
Joseph Blythe wrote:
Try PHP Coder Pro! http://www.phpide.de
Too bad it's a winblows-only app. :-(
Chip
Regards,
Joseph.
Henrik Hansen wrote:
The difference between echo and print is that print returns a
boolean value, so you can check if blah blah was successfully
printed.
hmm isen't it always succesfull printed or did I miss something?
IIRC print will return false if the connection is aborted (by the
I'm of the opinion you cannot do this totally in PHP.
You are going to need some client side, and some server side software -
server side can be php of course.
Client side ie (gps/wap device)- One possibility - write a wap browser that
interfaces with your gps device and returns co-ords in
Brian, Bill and Gunther - Thank you, and others, for answers to this
question. I think the FAQ entry is a good idea, perhaps with a
special note to Perl programmers. I'm used to something like:
print Location:www.site.com;
in Perl, which doesn't seem too strict about other data coming
how about
$location = addslashes($location);
$query = select shoodID from shoots where location = '$location';
or
$query = select shoodID from shoots where location = '.
addslashes($location) .';
Both are \'clean\' :)
-Original Message-
From: Moriyoshi Koizumi [mailto:[EMAIL
AFAIK, there are no web servers out there that will allow you to pass a
single file through two separate parsing engines (i.e. PHP and CF)
Apache won't and I don't believe IIS will do it either.
So, from a web server standpoint, the server will either send a web page
through the PHP parsing
Almost, but not quite. You also need to prepend a Header before any output
your data to tell the browser its content type.
Eg
?php
Header(Content-type: image/jpg);
...rest of output code
?
-Original Message-
From: Mark Roedel [mailto:[EMAIL PROTECTED]]
Sent: July 26, 2001 12:02 AM
This may be off. but in IIS asp pages are handled by asp.dll and php pages
by some php dll... maybe it be possible to write another dll that passes the
the request and script to asp.dll first and then simulates the browser by
grabbing all output sent back by the asp.dll and then passes it to the
I'm trying to get the following (broken up only for readability and
cademaintainability) to actually run in the background, returning the
browser to the user immediately and not waiting for lynx to exit. I'm
obviously going it wrong, but how? Any suggestions?
$cmd1 = /usr/bin/lynx
yes,
both of yours make the same result too, and are clean :-)
and i wonder what the best way is, to put queries into php code...
there's a more complicated sample,
$a=addslashes($a);
$b=addslashes($b);
$c=addslashes($c);
if( $another_table ) { $another_table=','.$another_table; }
$query =
In article 079201c1151f$ec6472e0$650a@cicse,
[EMAIL PROTECTED] (Clayton Dukes) wrote:
Can someone tell me why this doesn't work?
$home street = ereg replace ( , + , $home street);
The input is 123 happy trail
I need the output to be 123+happy+trail
Using an ereg here is overkill.
Its however you prefer it (or whatever is easier to type usually).
sprintf is usable, depends on if you have a c or perl background, and its
second nature.
For me, I use editplus on windows which gives color coding
(www.editplus.com), if I do
$query = select abc,def,ghi from table1,table2.
If I have php installed as an executable outside the web tree I can't seem
to get php scripts, called as a cgi, to work correctly. When run from the
command line this script
-
#!/usr/local/bin/php
htmlbody
?php
echo hello world\n;
?
/body/html
-
I am trying to install php as DSO on a redhat7 install of Apache. I can
not seam to figure this out. I can not find apxs on the server anywhere.
But in the httpd.conf file in the LoadModule area there is a section
like this. How can I install php without reinstalling Apache that is
not
Susan,
OpenLink has Progress ODBC drivers available. The Multi-Tier Drivers
are available for many versions of Progress.
The Product Availability link will walk you through the selection
process for the components specific to your OS.
Regarding ODBC - for PHP to use an ODBC driver, you have
Thanks for the reply, Lawrence. The embedded C option sounds tempting.
Question:
Is it necessary to have a customized browser? I know that most WAP
browsers (like the UP.SDK browser) pass certain parameters to the
server. Like, phone numbers, software version, and other values.
Any
On Wed, 25 Jul 2001 07:30:03 -0600, [EMAIL PROTECTED] (Nelson
Goforth) wrote:
I just want to open another page, sending some parameters, at a point
in a script - without the user clicking on anything (I can do this in
a form - I want to do it WITHOUT the form).
Like:if($test) {
Probably necessary to have a customised browser or other solution - i
haven't seen any that explicitly interface to a gps device for lat/long
co-ords.
You cannot triangulate position using wap - the phone company does it by
triangulating the position of the cellphone
(Very simplified
To emulate a post you'll have to do something similar to the following
header POST /index.php3 HTTP/1.1;
header Host: $host;
header Content-type: application/x-www-form-urlencoded ;
header Content-length: . strlen ($data);
header Connection: close\n\n; //may only need one, can't remember if
I wonder if there is any further info available on this? I have
encountered the same problem, for the apparent same reasons, on a Linux
2.0.29 kernel Slackware system.
Compile error is, for php 4.0.6
filestat.c: In function `php_if_diskfreespace':
filestat.c:157: storage size of `buf' isn't
Hello !
I want to install perl under apache in windows, please send me some
information
how can i install, where I find perl software, where I find some perl
editor...
Thanks fo all
roman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
What would be the actual code for this however in
PHP4? I'm new to the language, but know moderate
amounts of PERL, so I'm really struggling with how
I can assign a file's contents into an array and
delete a line, then write the edited version back
to the file. Also, the line now contains more
this would seem to be a php list, maybe you should look on a perl list for
a complete response, hmm?
Activestate make a reasonable perl interpreter for windows, have a look at
activestate.com for more details.
also try google and search for perl windows apache, maybe you can try
reading some
Hello,
I have some problems sending a form via POST. When I submit the form, I get
the error of 'Page Not Found'.
This happens in some Internet Explorer (all are v5.5, I think). The action
form is ok (FORM action=http://www.domain.com/formprocess.html;
method=post). It happens randomly.
I've
Hello:
Session:
I am using sessions for user authentication in one of our sites. Are there
any ways to restrict the same user from logging in from two different
machines. That is, once if the user is logged in, and if somebody tries to
log-in using the same userid and password it should be
Hello Sheni
when a user logs into a site, the information that the php server
gets is about the machine and not about a particular person, so you have
to associate information with that particular person, what i mean is give
your users passwords and maintain a database of those logged in
On Thu, 26 Jul 2001 15:24, Steven Michaels wrote:
- Original Message -
From: Don Read [EMAIL PROTECTED]
To: Steven Michaels [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 1:11 PM
Subject: RE: [PHP] Perl Splice Equivalent
On 25-Jul-2001 Steven Michaels
101 - 176 of 176 matches
Mail list logo