I put together the following function to give me a password consisting of random
letters and numbers. It should be fairly clear as to how you'd need to tweak it to
just give you the characters you'd need interspersed with spaces.
Hope this helps - I also hope anybody else is fairly gentle with
Does anybody knows why I get call to undefined function for mysql_connect
when running PHP through command shell. but it works fine when accessing the
script through web browser.
Foong
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I am looking for a PHP-Nuke/Slashdot -type of php-based application, which
can run on an Interbase database. On drawback I currently have with the
others is that it does not seem to have a listserv type of interface, with
subscription/unsubscription requests/archives/digests/etc.
Does
On Wednesday 19 March 2003 16:34, Foong wrote:
Does anybody knows why I get call to undefined function for mysql_connect
when running PHP through command shell. but it works fine when accessing
the script through web browser.
Most likely your php binary (CLI, not module) was not compiled with
Hi
I have a problem whith the mail() function.
I have used this function several times, but to day it don't work..
I use it like this:
mail( $to, $subjekt, $body, $from );
and i got this warning:
Warning: Failed to Connect in \\HQ-ADMIN\mail.php on line 237
Fred
--
PHP
At 02:51 19.03.2003, John W. Holmes said:
[snip]
$abytes = explode('.', $ip); // explode the IP string
$ip = 0;
foreach ($abytes as $byte) $ip = ($ip 8) + $byte;
This will give you the valid numeric equivalent of the IP address.
Isn't that
Hello guys,
we have a strange problem with apache and php. apache 1.3.27 and php 4.23 is
running on a solaris-machine with 2 ipadresses. apache serves request at
both interfaces.
Everything works fine, but every 6 days at one ip-address the clients get no
response from apache. Apache logs this
At 04:38 19.03.2003, -{ Rene Brehmer }- said:
[snip]
I'm totally lost here ... what does that mean???
Reminds me of assembler, except that assembler is more like:
0001 jnp e002 e003 0005
0002 jmp e002 e003 0008
And so on (not sure if that's fully correct
Hi
Any functions to remove'from a longstring?
Fred
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Any functions to remove'from a longstring?
?php
$myLongString = ..'..'.'.;
$myLongString = str_replace(', , $myLongString);
?
et voila! Simple huh ;)
For more info, check out: http://www.php.net/str_replace
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software Systems
You seem to be missing your last bracket for the while loop that you started
to state the end of the block.
Ben C. [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have a subscription service and am trying to not allow the buyer to
proceed purchasing another subscription if one of
Hello,
I want have a Apache/PHP/MySQL configuration running on Win2000 (SP3). In my
website I have a file-upload page where uses can upload a file. The max size
of the upload has to be set in the mysql.ini file but I am not able to do
this.
I use winMySQLAdmin v1.4. When I add in the tab 'my.ini
php-general Digest 19 Mar 2003 11:12:59 - Issue 1947
Topics (messages 140213 through 140271):
Re: Using PHP to get a word count of a MSword doc
140213 by: Pete James
140236 by: -{ Rene Brehmer }-
140237 by: -{ Rene Brehmer }-
php and javascript
140214 by:
Hi,
It is not a good idea to seed the random number generator inside the for
loop. It should only be seeded once during the execution of a script.
Your function could be susceptible to time attacks as it may not be
difficult to guess the seeding pattern and hence guess what random
numbers were
-{ Rene Brehmer }- wrote:
But all *nix share the same issue: You need to build the files yourself,
from the same source files. So the config is the same nomatter what.
I'm working with RH 8.0 out of the box and it only needed a few minor tweaks
to get php going with everything else (MySQL,
Any functions to remove'from a longstring?
Care to say why you need to do this? You may be doing a workaround
instead of a solution...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing
I have a subscription service and am trying to not allow the buyer to
proceed purchasing another subscription if one of their subscriptions
is
over 29 days past due in their payment. I am trying to query each
invoice
and checking to see if it is past due more than 29 days, if it is I
want a
$lastDate is a unix time stamp in mySql ... how can i list ONLY the
users
who have not logged in for 60days?
SELECT name FROM table WHERE FROM_UNIXTIME(lastDate) CURDATE() -
INTERVAL 60 DAY
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today.
BTW,
This is one of the functions I use you might find it helpful in trimming
down your function.
function gen_password($length = 8) {
$chars =
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;
for($i = 0; $i $length; $i++) {
$x = rand(0, strlen($chars) -1);
Hi,
I have a date stored in a table in my MySQL Database using a DATE type for
the column.
How can i compare the date in the table to today
e.g.
$today = mysql_result($result, $i, Booking_Date);
if($today = *HELP*){
echo you are booked today;
}else{
echo you are free today;
}
thanks
I don't know about the tool, but maximum file upload is set in php.ini -
upload_max_filesize, post_max_size must be higher. Restart apache afterwards
Marc Bakker wrote:
Hello,
I want have a Apache/PHP/MySQL configuration running on Win2000 (SP3). In my
website I have a file-upload page where
I'm having problems while opening a ssh session thru proc_open(), anyone
knows why i can see the remote terminal prompt while reading the stdout?
It just doesn't appear!
Piero
It occurred to me by intuition, and music was the driving force behind
that intuition. My discovery was the result of
WinMySQLAdmin has been discontinued, it is replaces by MyCC, also available
from the mysql web site.
Mike Hillyer
-Original Message-
From: Marc Bakker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 4:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL qusetion
Hello,
I want
Hi,
function gen_password($length = 8) {
$chars =
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;
[snip]
Just as a tip - if you want to save hassle for yourself and your users,
remove the following characters from that string:
- 1 (number one)
- l (lower-case letter L)
-
Shaun,
It should be: date(Y-m-d). MySQL stores the dates as -mm-dd, and that function
returns the current date on the format you need.
Check the date() function on the php manual.
--
Un gran saludo/Big regards...
Arturo Barajas, IT/Systems PPG MX (SJDR)
(427) 271-9918, x448
thank you so much... I got the function working
On Tue, 2003-03-18 at 17:52, Jim Lucas wrote:
you are trying to include a variable inside a single quoted string.
change the echo line to this.
echo script language='javascript' window.location = '$thepage'
/script;
Jim
- Original
The problem is that ssh (and various others, like passwd) command does
not use the standard input/output functions, but there is a workaround
program for this, but I don't remember its name.
Piero B. Contezini wrote:
I'm having problems while opening a ssh session thru proc_open(), anyone
Brad Wright wrote:
Erik,
thanks, are you able to pint me to some good reference sources on
tokenizer's... i have never come across them before
I have been scouring the web, and am coming up a decided blank. :)
The only tokenizers I have used are the StringTokenizer and
StreamTokenizer classes
a while ago we upgraded the php installations on our servers. for a quick fix
we set register_globals to on for code compatibility. Since then we have been
cleaning up code to eliminate this. We likely still have some virtual hosts who
are using these globals though, so while we are wanting
On Tue, 18 Mar 2003 22:13:13 -0500, John W. Holmes wrote about RE: [PHP]
Posting Query Results to an HTML form what the universal translator
turned into this:
No, there's no PHP function, but there is an HTML trick that you can
use: putting quotes around your values!
input type=text name=name
Hello,
I'm using PHP/Apache and iODBC on a Linux-box to access a database on a
Win2K-box. Everything works fine, but I wondered if there exists an
PEAR abstraction-layer over iODBC (so I could use DB::function() -
calls). Or does the unixODBC- Driver Manager (or any other driver
manager)
I think I already tried to post once, so sorry if this is a duplicate, but I
don't see my first attempt. I am trying to do what should be a relatively
simple and basic task. I've got a php script/page that has a switch/case
selection statement in it. Obviously, depending on what value a
Hi,
I am putting together a website for a customer who insists on using IIS
running on Windows XP and I'm running into some problems. It appears that no
matter what PHP script I run, I'm getting tons of errors saying this
variable or that variable is undefined. I have global variables turned on
You have register_globals set to off (read up on register globals in
php.net).
your code should read
$HTTP_POST_VARS['action'] or $_POST['action'] (depending on PHP version)
INSTEAD of just $action.
so to test an if::
if ($HTTP_POST_VARS['action']==1) {
/*
Code for if action is equal to 1
*/
}
SELECT *, SUM(units) subtotal FROM table GROUP BY date
- do you mean this?
Mike Smith wrote:
I'm trying to present a simple SELECT statement GROUPED by date.
Ex.
WOUNITSOEMCOMMENTSDATE
123 10MeNotes03/18/2003
456 5
That's actually a GET request, so $_GET['action'], instead of $_POST.
On Wed, 2003-03-19 at 11:18, Bobby Patel wrote:
You have register_globals set to off (read up on register globals in
php.net).
your code should read
$HTTP_POST_VARS['action'] or $_POST['action'] (depending on
oops, miscounted a postion of the md5 parentheses :-0
Jason k Larson wrote:
First of all, the example you gave is only using one argument to the MD5
function.
Secondly, if you *want* to seed/salt the MD5 with a key you can use:
http://www.php.net/manual/en/ref.mhash.php
--
Jason k Larson
aka:
Do you have any idea where I can find more info about it?
Piero
-Mensagem original-
De: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 19 de março de 2003 12:02
Para: Piero B. Contezini
Cc: [EMAIL PROTECTED]
Assunto: Re: [PHP] Proc_open() problems
The problem is
I don't see anywhere on that page where it shows using a seed. It shows
**selecting a hash algorithm**, but no salt. Maybe that's the second
argument that you're looking at.
Jason k Larson wrote:
First of all, the example you gave is only using one argument to the MD5
function.
Secondly, if
The error reporting level setting is set higher on the Windows box than on
your Linux box. See info in the manual about changing, or define all those
variables.
HTH
--
Lowell Allen
From: Beauford.2002 [EMAIL PROTECTED]
Date: Wed, 19 Mar 2003 11:11:42 -0500
To: PHP General [EMAIL PROTECTED]
search freshmeat.net
Piero B. Contezini wrote:
Do you have any idea where I can find more info about it?
Piero
-Mensagem original-
De: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 19 de março de 2003 12:02
Para: Piero B. Contezini
Cc: [EMAIL PROTECTED]
Assunto:
Here is my query (MSSQL 2000):
SELECT [rushqty], [wooem], [rushglschk], [rushglsdate], [rushmtlchk],
[rushmtldate],
[rushpartschk], [rushpartsdate], [category],
CONVERT(nvarchar,[rushdate],101) AS 'rushdate',
CONVERT(nvarchar,[rushship],101) AS 'rushship', [wo], [rushcomm]
FROM [tblworush]
Umm, add:
SUM([rushqty]) AS 'rushsub'
To your select, wouldn't that work?
On Wed, 2003-03-19 at 11:19, Mike Smith wrote:
Here is my query (MSSQL 2000):
SELECT [rushqty], [wooem], [rushglschk], [rushglsdate], [rushmtlchk],
[rushmtldate],
[rushpartschk], [rushpartsdate],
Just found it:
http://expect.nist.gov/
Piero B. Contezini wrote:
Do you have any idea where I can find more info about it?
Piero
-Mensagem original-
De: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 19 de março de 2003 12:02
Para: Piero B. Contezini
Cc: [EMAIL
These are some of the errors I am getting
Notice: Undefined index: login in
C:\Inetpub\wwwroot\..\login\checklogin.php on line 74
and 75, and other similar errors.
Line 74 is: $login = $HTTP_SESSION_VARS['login'];
Line 75 is: $password = $HTTP_SESSION_VARS['password'];
Another one
hi,
using date(dS); how can i can increase the days so that it shows
19th 20th 21st
I have tried
while ($i 2){
$day++;
echo' td'.$day.'/td';
$i++;
}
but i get:
19th 19ti 19tj
thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
I think you want to use:
php_value register_globals Off
I have this setup in VirtualHost's and in .htaccess files. The
difference between php_value and php_admin_value is that php_admin_value
can not be overridden in a .htaccess file or VirtualHost. So if you want
to enforce some settings
This query:
***denotes new
SELECT ***SUM([rushqty]) AS 'rushsub'***, [rushqty], [wooem], [rushglschk],
[rushglsdate], [rushmtlchk], [rushmtldate],
[rushpartschk], [rushpartsdate], [category],
CONVERT(nvarchar,[rushdate],101) AS 'rushdate',
CONVERT(nvarchar,[rushship],101) AS 'rushship', [wo],
Try:
$ts = time();
$i = 0;
while( $i 2 ) {
$day = date(dS, $ts + $i * 86400);
print(td$day/td);
$i++;
}
On Wed, 19 Mar 2003, shaun wrote:
hi,
using date(dS); how can i can increase the days so that it shows
19th 20th 21st
I have tried
while ($i 2){
$day++;
I saw that, Joshua,I am on that list. Amazing that it came up just after
I posted to the PHP list.
The reason I posted it here is that I still probably need someway to
initiate an SSH/SSL connection from PHP, and I doubt it autoswitches
when connecting to a database.
Joshua Moore-Oliva
No, there's no PHP function, but there is an HTML trick that you can
use: putting quotes around your values!
input type=text name=name value=value
That's not a trick, that's actually required with HTML 4 and up. And
XML...
Umm.. yeah, got that. I was being sarcastic. ;)
---John
I am putting together a website for a customer who insists on using IIS
running on Windows XP and I'm running into some problems. It appears that
no
matter what PHP script I run, I'm getting tons of errors saying this
variable or that variable is undefined. I have global variables turned on
in
These are some of the errors I am getting
Notice: Undefined index: login in
C:\Inetpub\wwwroot\..\login\checklogin.php on line 74
and 75, and other similar errors.
Line 74 is: $login = $HTTP_SESSION_VARS['login'];
Line 75 is: $password = $HTTP_SESSION_VARS['password'];
I have a date stored in a table in my MySQL Database using a DATE type
for
the column.
How can i compare the date in the table to today
... WHERE your_date = CURDATE() ...
e.g.
$today = mysql_result($result, $i, Booking_Date);
if($today = *HELP*){
or...
if($today == date('Y-m-d'))
Was reading this and it sounds really cool. I do work as a consultant
to designers and thought this may be a good way to improve work flow? I
have read mixed thoughts on this, but was wondering what this list
thought? Anyone using it? Real world?
http://www.zend.com/zend/tut/tutorial-cezar.php
Hello,
I'd like to uncompress to the Hard disk a zip file send by the browser.
At this time I do this:
function uncompresszip($zipfile) {
copy($zipfile, dirname($_SERVER['PATH_TRANSLATED'])./zip/zipfile.zip) ;
}
But I do not understand how to uncompress the zip file, I tried for exemple:
On Wed, 19 Mar 2003, Michael Egan wrote:
|I put together the following function to give me a password consisting
|of random letters and numbers. It should be fairly clear as to how
|you'd need to tweak it to just give you the characters you'd need
|interspersed with spaces.
|
|Hope this helps -
Was reading this and it sounds really cool. I do work as a consultant
to designers and thought this may be a good way to improve work flow?
I
have read mixed thoughts on this, but was wondering what this list
thought? Anyone using it? Real world?
Once you get used to the syntax, it is great.
readgzfile is for *.gz files.
Either use zip file functions (rarely supported) or PclZip
(http://www.phpconcept.net/pclzip/index.en.php)
Vincent M. wrote:
Hello,
I'd like to uncompress to the Hard disk a zip file send by the browser.
At this time I do this:
function uncompresszip($zipfile) {
I get this error.
Unknown column 'B' in 'where clause'
From this code.
$sql = SELECT * FROM store;
$result = mysql_query($sql) or die(mysql_error());
$store = mysql_fetch_array($result);
$count = mysql_num_rows($result);
$id = $store['id'];
$name = $store['name'];
$address = $store['address'];
Put single quotes around the strings in your sql statementS:
$sql2 = SELECT id FROM store_name WHERE name = '.$name[$i].';
^ ^
if this does not help, print out the query strings.
Daniel McCullough wrote:
I get this error.
Unknown
Marek Kilimajer wrote:
readgzfile is for *.gz files.
Either use zip file functions (rarely supported) or PclZip
(http://www.phpconcept.net/pclzip/index.en.php)
No, it works with .zip files too, I just don't know how to manage it :-(
--
PHP General Mailing List (http://www.php.net/)
To
I have it running on Windows XP using Apache and Linux using Apache with
perfect results - It does not work on IIS, which tells me this is a IIS
problem, not a coding problem or an error reporting problem -
register_globals are on on all three platforms.
Thanks
- Original Message -
Further note that it is not just this script, but many PHP scripts that I
run on IIS - they all work perfectly on Apache (on Windows and Linux)..
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Beauford.2002' [EMAIL PROTECTED]; 'PHP General'
[EMAIL PROTECTED]
Sent:
Is it possible to connect to 2 different databases??
2 different dtabase typs I mean
postgresql and Mysql
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hello all.
this code creates dynamic breadcrumbs, ie: home site nav community
I am having a bit of a time trying to make it so it doesn't hyperlink the
current page thats being viewed, any help is appreciated.
?
$LocationMappings = array(
view.php = site map,
company
yes -- i connect to oracle and mysql simultaneously ..
On Wed, 2003-03-19 at 15:21, Iwan van Kanten wrote:
Is it possible to connect to 2 different databases??
2 different dtabase typs I mean
postgresql and Mysql
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Beauford.2002 wrote:
Further note that it is not just this script, but many PHP scripts that I
run on IIS - they all work perfectly on Apache (on Windows and Linux)..
As well as configuration differences it could be different versions of
php. Modern ones expect $_SERVER for example. I might like
mhash (PHP 3= 3.0.9, PHP 4 )
mhash -- Compute hash
Description:
string mhash ( int hash, string data [, string key])
^ salt/seed/key - whatever you want to
call it
--
Jason k Larson
Dennis Gearon wrote:
I don't see anywhere on that page where it
yes, as long as you have them compiled and configured into php.
I have used up to 4 database type for a given application: mysql, pgsql,
oracle, and sybase...
That is the beauty of PHP...
--
Ray
On Wed, 2003-03-19 at 16:21, Iwan van Kanten wrote:
Is it possible to connect to 2 different
Further note that it is not just this script, but many PHP scripts that I
run on IIS - they all work perfectly on Apache (on Windows and Linux)..
HOW DOES IT NOT WORK!?
---John Holmes...
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Beauford.2002' [EMAIL
well, the problem with that is most of my files are called 'index.php'
cheers,
- Sebastian
- Original Message -
From: Diego Fulgueira [EMAIL PROTECTED]
| Sebastian wrote:
| hello all.
|
| this code creates dynamic breadcrumbs, ie: home site nav community
|
| I am having a bit of
What page is that on?
BTW, I figured out I could just prepend a long, complex string to
whatever I am hashing and it will 'seed' it before it gets to my stuff.
Jason k Larson wrote:
mhash (PHP 3= 3.0.9, PHP 4 )
mhash -- Compute hash
Description:
string mhash ( int hash, string data [, string
Hi,
I'm trying to do a:
$var = $array_name[$var2][0];
where $var2 is an integer. I've got this array from a database and I
want to use a variable in the array... what's the exact syntax of this?
-Michael
--
Michael Smith [EMAIL PROTECTED]
Custom87.net
--
PHP General Mailing List
$var = $array_name[$var2][0];
where $var2 is an integer. I've got this array from a database and I
want to use a variable in the array... what's the exact syntax of this?
That is the correct syntax. Use print_r() on $array_name to see what it
contains.
---John Holmes...
--
PHP General
You could use the exec() or shell_exec() and just do it via command line
method...
-Original Message-
From: Vincent M. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 12:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Zip Way of life.
Hello,
I'd like to uncompress to
Exactly the syntax you used.
Michael Smith wrote:
Hi,
I'm trying to do a:
$var = $array_name[$var2][0];
where $var2 is an integer. I've got this array from a database and I
want to use a variable in the array... what's the exact syntax of this?
-Michael
--
The above message is encrypted
Hi all,
I have a form where users will be adding publication dates for uploaded
files. I want to store the date in mySQL as date('U') format. If the
date is entered as mm/dd/ - will the date function know this or is
there some way of 'telling' php how the date to be converted is
Charles Kline [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Was reading this and it sounds really cool. I do work as a consultant
to designers and thought this may be a good way to improve work flow? I
have read mixed thoughts on this, but was wondering what this list
thought?
- Original Message -
From: Charles Kline [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 2:17 PM
Subject: [PHP] date question
Hi all,
I have a form where users will be adding publication dates for uploaded
files. I want to store the date in mySQL as date('U')
I have a database driven music web site that allows the admin to create
photo galleries. The photos and captions are entered using a form which
allows the admin to upload a small and large photo. The number of photos is
requested in a form that calls this entry form. The code looks like this:
So noone has any ideas at all ? Surely not ?
If my question's too vague, please let me know and I'll try to expand on
it...
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting linux server's
Hi !
Im a completely PHP newbie, so please spare me :)
Is there any way to figure out from which page a script was called ?
I want that the PHP script check it and will be executed only if the request
came from my domain (so nobody could execute it by typing its name in the
browser or something
Hi,
when retrieving a date from MySQL in n/MM/DD, how can I present this to
the user of a site in readable format i.e. 19th March 2003?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
YOu can check the HTTP_REFERRER... but really though, that's no security.
Anyone can use Curl to simulate a request that looks like it comes from your
domain.
All security measures needs to happen on the server, not from what the users
web browser gives you.
Josh.
On March 19, 2003 05:13
Vincent, et al --
...and then Vincent M. said...
%
% Marek Kilimajer wrote:
% readgzfile is for *.gz files.
...
% No, it works with .zip files too, I just don't know how to manage it :-(
You mentioned wanting the files (note the plural) in the zip file.
AFAIK gunzip can unzip an archive
Ok, thanks for the info, Josh !
All security measures needs to happen on the server, not from what the
users
web browser gives you.
And how to do something like that on the server ? Is there a tutorial
somewhere about this or something ? A few words about that would be great !
:)
Philarmon
David T-G wrote:
Vincent, et al --
...and then Vincent M. said...
%
% Marek Kilimajer wrote:
% readgzfile is for *.gz files.
...
% No, it works with .zip files too, I just don't know how to manage it :-(
You mentioned wanting the files (note the plural) in the zip file.
AFAIK gunzip can unzip
Daevid Vincent wrote:
You could use the exec() or shell_exec() and just do it via command line
method...
Yes but gunzip does not work when there are more than one file in the
zip file and unzip is not installed by default on Unix servers. :-(
--
PHP General Mailing List (http://www.php.net/)
Nono, I'm saying that you can never be 100% sure where someone came from,
since they are responsible for storing that data, and they can modify before
sending it back to you.
If you really want to make sure someone came from another page before the
current page, create a uniq ID and md5 it or
Hi,
On Wed, 2003-03-19 at 22:28, Philarmon wrote:
All security measures needs to happen on the server, not from what the
users
web browser gives you.
And how to do something like that on the server ? Is there a tutorial
somewhere about this or something ? A few words about that would be
Hmmm, the PHP script is not a webpage but just a script which is called from
a flash movie, so i guess i cant check cookies with that :(
But thanks anyway !
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anybody in this mailing list from Indonesia?
Thanks, God Bless You All
best regards,
Ludi
Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan hadiah masing-masing Rp
250.000 tunai
I'm having some problems with imagerotate() - e.g. it won't work.
I've tried many different ways to get it to work, but I have yet to see it
do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working
properly because I can do other image-manipulation with it without error.
Plus, I
How can I put out a Zero Fill for numbers
The result should be
$something=26;
echo $something;
e.g.
026
I didn't found a solution with number format. Is there any other way?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sprintf/printf(%7d, $num)
-Original Message-
From: Harry.de [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 10:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Zero Fill - Number Format
How can I put out a Zero Fill for numbers
The result should be
$something=26;
echo $something;
Jason Wong wrote:
On Wednesday 19 March 2003 16:34, Foong wrote:
Does anybody knows why I get call to undefined function for mysql_connect
when running PHP through command shell. but it works fine when accessing
the script through web browser.
Most likely your php binary (CLI, not
This is what I did for a dynamic zero-fill for renaming batches of files:
// Get Zero Padding For New Image Names
$zero_padding = strlen(count($image_array));
foreach($image_array as $temp){
$n++;
$n_length = strlen($n);
for($i = 0; $i ($zero_padding - $n_length); $i++){
This one time, at band camp,
Harry.de [EMAIL PROTECTED] wrote:
How can I put out a Zero Fill for numbers
The result should be
$something=26;
print str_pad($something, 7, 0, STR_PAD_LEFT);
Kevin
__
(_ \
_) )
Smarty is very wonderful. If both the coder and the designer work
together, layout and code logic can be completely separate.
I am doing a form for entering in about 25 fields. As long as the
template the designer comes up with has:
The required form variables,
and template
1 - 100 of 145 matches
Mail list logo