* Thus wrote Yann Larrivee:
For shure a beginner will benefit from this has it is problably give him
a salary increase compared to the guy that is not certified (we all know
that php developper are under paid) So this part is good.
It will also eliminate some people out of the market for shure
On Friday 27 August 2004 09:00, Gunter Sammet wrote:
Yes. All my local stuff does work like a charm. I'm working with osCommerce
shopping cart and all my local installs work just fine. And as I said, when
I compare it with a local install, the files don't show anything unusual.
Based on the
On Friday 27 August 2004 12:40, Curt Zirzow wrote:
* Thus wrote John Nichel:
John Holmes wrote:
Curt Zirzow wrote:
Top posting is like this.
How about middle posting?
Please don't top post.
Hehe.. thats pretty good :) Lets see if someone can decipher this
top post to a context
Again I point out that this certification starts to make PHP valid in the
commercial world. I completely agree with everyone that certs usually aren't
worth the paper they are printed on when it comes to technical expertise but
to a PHB or client who doesn't know any better except buzz words, a
John W. Holmes wrote:
To detect them:
if(preg_match('/[^0-9a-zA-Z]/',$string))
{ echo 'bad characters present'; }
else
{ echo 'string okay'; }
or (faster):
if (!ctype_alnum($string)){
echo 'bad characters present';
} else {
echo 'string okay';
}
Aaron
--
PHP General Mailing List
Jason Wong wrote:
On Friday 27 August 2004 01:28, Lester Caine wrote:
[yada yada]
Loading Mozilla on the problem machines gives a clean page with the
correct pop-up's so I simply don't know what to try next. When this sort
of thing was happening during development it was usually tracked to
faulty
Miles Thompson wrote:
Most likely this is a consequence of Windows XP SP2, one of its side
effects is blocking of popups in IE.
Strange, like smokers becoming non-smokers.
No SP2 stuff added - and unlikely to be added
This problem is affecting a couple of W2k machines as well
Check Sunbelt
Hi, I have a jump box that sends the following value to the page.
option value=?PHP echo 'giftprint.php?passid='.$passid.'sort=WHERE
thankyou=\'Not Sent\' ORDER BY cash ASC';?Show
Thank You Notes quot;Not Sentquot;/option
Then, the below query is run:
$query = SELECT
On Friday 27 August 2004 15:31, Ryan Schefke wrote:
First of all:
Using unsanitised data from forms and links is a VERY bad thing.
option value=?PHP echo 'giftprint.php?passid='.$passid.'sort=WHERE
thankyou=\'Not Sent\' ORDER BY cash ASC';?Show
Thank You Notes quot;Not
A copy of php manual I downloaded a year back
has the following about the behaviour of
number_format function
?php
$number = 1234.56;
// english notation (default)
$english_format_number =
number_format($number);
// 1,234.56
?
The latest on-line version is changed as
below
?php
$number =
On Fri, 27 Aug 2004 14:06:56 +0530, Ma SivaKumar [EMAIL PROTECTED] wrote:
The latest on-line version is changed as
below
?php
$number = 1234.56;
// english notation (default)
$english_format_number =
number_format($number);
// 1,234
What is the best way to format numbers to put
only
Andre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello
Someone now how to paste values for one pop-up. And this pop-up is one
frame
I am doing like this to open pop-up
echoa href=\#\ class=\textblack\
But don't work that's is my problem,
And I think this don't work because the pop-up window is a frame
Help??
-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 26 de Agosto de 2004 23:18
To: [EMAIL PROTECTED]
Subject: [PHP] Re: paste values for one
Andre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
But don't work that's is my problem,
And I think this don't work because the pop-up window is a frame
Help??
Have you seen my other post from two minutes ago?
You mean your popup contains a frameset? Then post your frameset code
Hello folks!
I have an ini file that looks like this:
index.rent=Rent
index.faq=FAQ
index.contact=Contact
index.links=Links
then I want to read this file:
$english_messages = parse_ini_file('conf/english.ini');
print_r($english_messages);
What I see is:
Array ( [index.rent] = Rent )
And that's
Yes and don't work.
The code of the frameset
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
frameset rows=*,80 frameborder=NO border=0 framespacing=0
frame src=imprimir_factura.php name=mainFrame
frame src=bot.php
Hi!
Is there a ready to use PHP function for including ONLY if the file exists?
I tried it like this:
[main.php]
include_once(lib.php);
later
includeIf(somefile.php);
[lib.php]
function includeIf($filename)
{
if (!file_exists($filename))
{
Lester Caine wrote:
Miles Thompson wrote:
Most likely this is a consequence of Windows XP SP2, one of its side
effects is blocking of popups in IE.
Strange, like smokers becoming non-smokers.
No SP2 stuff added - and unlikely to be added
This problem is affecting a couple of W2k machines as well
you sure the cookie is being set? try this
header(Location: http://; . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. '/b.php?'.SID);
I had tried this before - no result. The cookie is set in the \temp dir
where it is intended. And that's
Hi,
Looking at your code, I noticed that either you're missing the closing double
quote to close off the Location expression, or you're ending it early with a
double quote at http://;.
Shouldn't it read:
header(Location: http://' . $_SERVER['HTTP_HOST']
^
Andre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Yes and don't work.
The code of the frameset
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
frameset rows=*,80 frameborder=NO border=0 framespacing=0
frame
On Fri, 27 Aug 2004 12:16:32 +0200, Jay [EMAIL PROTECTED] wrote:
Hi!
Is there a ready to use PHP function for including ONLY if the file exists?
I tried it like this:
[main.php]
include_once(lib.php);
.later
includeIf(somefile.php);
[lib.php]
function includeIf($filename)
{
On Fri, 27 Aug 2004 12:54:14 +0300, Vladimir [EMAIL PROTECTED] wrote:
Hello folks!
I have an ini file that looks like this:
index.rent=Rent
index.faq=FAQ
index.contact=Contact
index.links=Links
then I want to read this file:
$english_messages = parse_ini_file('conf/english.ini');
Thank work.
Regards, André Caridade
-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 27 de Agosto de 2004 13:42
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: paste values for one pop-up. And this pop-up is one
frame
Andre [EMAIL PROTECTED] wrote in
Jay wrote:
Hi!
Is there a ready to use PHP function for including ONLY if the file exists?
I tried it like this:
[main.php]
include_once(lib.php);
later
includeIf(somefile.php);
[lib.php]
function includeIf($filename)
{
if (!file_exists($filename))
{
include_once($filename);
To get the pid id:
?php
exec(cat [path to pid file], $pid); echo $pid[0];
?
raditha dissanayake wrote:
Mário Gamito wrote:
Hi,
I need to kill (squid) -D
pidof (squid) -D gives an error :(
man pidof
we have nowed moved to off topic territory.
--
Raditha Dissanayake.
Hmm... there are no practice exams posted...
I just saw that: http://www.phparch.com/cert/
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: Dan Joseph [EMAIL PROTECTED]
I just saw that: http://www.phparch.com/cert/
Hmm... there are no practice exams posted...
See here: http://www.phparch.com/discuss/index.php/t/710/235/
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Know what helps me get php jobs? A resume that details almost 6 years
of php programming.
That's what most employers want. Certifications are a lot of times
looked at as watered down, and over-issued. A lot of companies also use
them as training pieces with their internal staff,
[snip]
...certification stuff...
[/snip]
I am certified.
So they tell me. And Nichel too. Probably Holmes. Defiinitely Wong,
maybe wight.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dan Joseph wrote:
Hi,
Know what helps me get php jobs? A resume that details almost 6 years
of php programming.
That's what most employers want. Certifications are a lot of times
looked at as watered down, and over-issued. A lot of companies also use
them as training pieces with their
John Holmes wrote:
From: Dan Joseph [EMAIL PROTECTED]
I just saw that: http://www.phparch.com/cert/
Hmm... there are no practice exams posted...
See here: http://www.phparch.com/discuss/index.php/t/710/235/
---John Holmes...
Cool...I was wondering why we haven't seen him around lately.
From: Jay Blanchard [EMAIL PROTECTED]
Probably Holmes.
Not officially. Might look into it, though, but this is really just a hobby
for me. :)
I think that if you've been on the list for over a year, you should be
certified automatically. heh...
---John Holmes...
--
PHP General Mailing List
Jay Blanchard wrote:
[snip]
...certification stuff...
[/snip]
I am certified.
So they tell me. And Nichel too. Probably Holmes. Defiinitely Wong,
maybe wight.
I don't think *THAT* 'cert' will help us in the job market. ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP
[snip]
Probably Holmes.
Not officially. Might look into it, though, but this is really just a
hobby
for me. :)
I think that if you've been on the list for over a year, you should be
certified automatically. heh...
[/snip]
I can see it now
If you have replied 'RTFM more than once a week,
Local/master both still show off. I tried using the .htaccess trick, and
that did not work either. I have tried now to use the extract($_COOKIE) and
extract($_POST) option in the scripts to get around this for now, which
seems to be working, but I need to consequently do a lot of testing now to
Here's the problem...
After a deletion, when the question list page is reloaded, the browser uses
the cached version of the page and the question which was just deleted is
still displayed. If you refresh the page, the question disappears. So, I
know that the deletion is working. I just
John Holmes wrote:
From: Jay Blanchard [EMAIL PROTECTED]
Probably Holmes.
Not officially. Might look into it, though, but this is really just a
hobby for me. :)
I think that if you've been on the list for over a year, you should be
certified automatically. heh...
---John Holmes...
WooHooI
Thanks for the info. I checked the file and it does not have much in it. I
am working if I am not enabling this in php.ini correctly. I see
[Security, Performance] list after the example. To enable, I just copied
the example line, removed the [Security, Performance] stuff from the line,
and
On Fri, 27 Aug 2004 14:06:56 +0530, Ma SivaKumar [EMAIL PROTECTED] wrote:
A copy of php manual I downloaded a year back
has the following about the behaviour of
number_format function
?php
$number = 1234.56;
// english notation (default)
$english_format_number =
number_format($number);
Does the PHP script have to be already running to communicate send a HTTP Post
varibale to it (from a DHTML client browser)? Or can it initiate the HTTP Post fron
the client that activates the PHP script?
I know this must seems simple but I'm having troble receiving these varible from my
you can use md5() which will create an encrypted string that cannot be
encrypted, or you can use something like base64_encode() which has the
inverse base64_decode, that way you have an encrypted string in the database
but if for example a user loses their password, instead of setting a new
one,
Justin Patrin wrote:
number_format($number, 2);
Does not work. Desired results:
1000 should return 1,000
1000.5 should return 1,000.5
1000.25 should return 1,000.25
so on.
Actual results:
1000= 1,000.00
1000.5 = 1,000.50
1000.25 = 1,000.25
--
PHP General Mailing List (http://www.php.net/)
To
i found this a bit confusing, why were you putting $$ infront of a variable
instead of just $?
--
--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
From: [EMAIL PROTECTED]
Does the PHP script have to be already running to
communicate send a HTTP Post varibale to it (from a
DHTML client browser)? Or can it initiate the HTTP
Post fron the client that activates the PHP script?
Just like any other web page, the POST request causes the web server
Jasper Howard wrote:
you can use md5() which will create an encrypted string
that's not entirely true, all it will do is compute the md5-hash of that
string. Which is *always* a 32-character hexadecimal number (though
before PHP5.0.0 it was returned in a different way). The big difference
hi,
I extended ArrayObject (SPL) to a new class. Let's call it
ExtObjectArray. ExtArrayObject is quiet tiny, only with some simple
functions. One is called getData() and serves some string data. Now I've
overloaded the class using __toString() ...
public function __toString() {
good to know
--
--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
--
M. Sokolewicz [EMAIL PROTECTED] wrote in message
news:[EMAIL
m'kay ... already got it. The routine was disabled due some internal
problems. It should be reintroduced in PHP 5.1. *wait*
http://www.rb21.com/news/index.php/m/115763/0/#msg_115763
Stefan wrote:
hi,
I extended ArrayObject (SPL) to a new class. Let's call it
ExtObjectArray. ExtArrayObject is
Hello all. I just finished placing a new server in production and
PHP is not working. I am getting undefined variable messages when
trying to submit php based forms. Register Globals is on in
php.ini, but it still does not work. I have even tried copying a
known-good php.ini from another
I've created a download script that works quite nicely. The only issue with
it is that when I download a file where the file name is like filename
v1.0.2.1.exe there is some extra characters added into the name when it is
downloaded. So that file will be filename v1[1].0.2.1.exe. I am
What PHP version had the API number 20001222 ?
Thanks
Cole
--
This message has been scanned for viruses and
dangerous content by MailScanner on mail.ashcraftfamily.net, and is believed
to be clean.
Please report any deviance from this condition immediately to the AFN
Administrator at [EMAIL
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Friday 27 August 2004 09:00, Gunter Sammet wrote:
Yes. All my local stuff does work like a charm. I'm working with
osCommerce
shopping cart and all my local installs work just fine. And as I said,
when
I compare it
I am
wondering if this is my headers that are doing this, but I
really dont know.
I think its an IE or Windows behavior and what causes it is the multiple
dots in the filename. I resorted to naming our downloads
filename-v1_0_2_1.exe
-Original Message-
From: Aaron Todd
Ave,
Hey thanks a lot. I'm reading up on those.
I appreciate this.
Thanks.
On 8/26/04 10:07 PM, David Bevan [EMAIL PROTECTED] wrote:
On Thu, 2004-08-26 at 13:49, PHP Junkie wrote:
Ave,
Jay..
Firstly thanks a lot for the tips. I appreciate that and in fact I do try to
go methodically
Ave,
Thanks a ton... And this is exactly what I figured I need to do. Someone
else also wrote in something similar which prompted me to go in this
direction. It's working out now by creating an additional table that maps
the users records through ID and holds information on who is allowed
When I created a download script a couple weeks ago I used
readfile($filename) instead of fread() and didn't get anything like what
you're getting.
[snippet]
header(Content-type: $type);
header('Content-Disposition: attachment; filename='.$file_name.'');
readfile($dfile);
[/snippet]
NOTE:
PHP 4.0.6-6.2mdk
On Friday 27 August 2004 02:45 pm, Cole S. Ashcraft wrote:
What PHP version had the API number 20001222 ?
Thanks
Cole
--
This message has been scanned for viruses and
dangerous content by MailScanner on mail.ashcraftfamily.net, and is
believed to be clean.
Please
Thanks!
Andre Dubuc wrote:
PHP 4.0.6-6.2mdk
On Friday 27 August 2004 02:45 pm, Cole S. Ashcraft wrote:
What PHP version had the API number 20001222 ?
Thanks
Cole
--
This message has been scanned for viruses and
dangerous content by MailScanner on mail.ashcraftfamily.net, and is
believed to be
Is it possible to run a command on the system using the system() or
exec() commands run as a specific user if I have the username and
password?
i.e.
[EMAIL PROTECTED]su userNo1
[EMAIL PROTECTED]/home/server/executeScript
all in a php system() or exec() call..
Thanks!
-Paul
Were you trying to download any files in the format filename v1.0.2.0.exe
I just tried using readfile and got the same results.
Aaron
Jasper Howard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
When I created a download script a couple weeks ago I used
readfile($filename) instead
yeah, but images with filenames something like this - cool_image
v2.5.443.jpg
--
--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
Dears,I have 3 files.
k.php :
?
session_start();
$S_userk=$HTTP_POST_VARS['u'];
$S_pass=$HTTP_POST_VARS['p'];
//echo $S_pass;
session_register('S_userk');
session_register('S_passk');
include 'http://1.1.1.1/membership/login.php?g=0';
?
login.php:
define(HOST,localhost);
Hi,
I'm trying to design a new validation method for an xml parsing package
that will be ported to PHP5. I've gotten schemaValidate() to work
successfully, but the error messages are nearly useless.
If an extra element is found inside another, I get a message like:
Element channel content
that was a bit confusing, but it looks like you call session_start() more
than once in a script. You only need to call it once, and you need to call
it before any headers get sent, at the top of the script is a good place. If
you're scripts are already setup like that just ignore me. Oh, also, if
I have deleted session_start() at login.php
Thus i have 1 session_start()
But i receive them yet.
Yours,Mohsen
--- Jasper Howard [EMAIL PROTECTED] wrote:
that was a bit confusing, but it looks like you call
session_start() more
than once in a script. You only need to call it
once, and you
Hello,
I am sure this has been asked more then a few times but ... I have a web site
where almost every page is dynamically
created. So if at some point in the site if you hit your browsers back button a popup
window occurs and asks if you want
to resubmit the data. Upon clicking yes
is this php script at the top of the page, there is nothing before it?
--
--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
--
On Fri, 2004-08-27 at 16:20, Michael Gale wrote:
Hello,
I am sure this has been asked more then a few times but ...
So why not search the archives then? :)
I have a web site where almost every page is dynamically
created. So if at some point in the site if you hit your browsers
Hello,
I am sure this has been asked more then a few times but ... I have a web
site where almost every page is dynamically
created. So if at some point in the site if you hit your browsers back
button a popup window occurs and asks if you want
to resubmit the data. Upon clicking yes
Sample Code:
//
?PHP // version 4.3.6
function testFunction($foo) {
return $foo==TEST;
}
function wrapper($foofunc, $foovar) {
return eval(return $foofunc($foovar););
}
echo wrapper(testFunction, TEST);
?
//
This code
On Fri, 27 Aug 2004 18:48:16 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
Justin Patrin wrote:
number_format($number, 2);
Does not work. Desired results:
1000 should return 1,000
1000.5 should return 1,000.5
1000.25 should return 1,000.25
so on.
Actual results:
1000=
I struggled with this one as well and the solution is quite simple;
1. Every PHP module that is reached via the action field in a form where
the method is POST (most of mine are) never outputs any html except a http
redirect (it will edit values, update the database, save session data, then
does
1 way is here.You can use object OOP.
--- bskolb [EMAIL PROTECTED] wrote:
Sample Code:
//
?PHP // version 4.3.6
function testFunction($foo) {
return $foo==TEST;
}
function wrapper($foofunc, $foovar) {
return eval(return $foofunc($foovar););
Thanks for the quick reply, I wasn't aware that passing a variable for the
object would work.
New code:
class testClass {
function testFunction($foo) {
return $foo==TEST;
}
}
$testObj = new testClass;
$testFunc = testFunction;
echo $testObj-$testFunc(TEST);
-Original Message-
From: bskolb [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Dynamic Function with return?
Sample Code:
//
?PHP // version 4.3.6
function testFunction($foo) {
return
Dears,When i run rm -rf /tmp/sess_* ,It are meaning
that i clean every session.
When i want to my program,I receive following warning
:
Warning: Unknown(): Your script possibly relies on a
session side-effect which existed until PHP 4.2.3.
Please be advised that the session extension does not
Afzal Hussain ) wrote:
Sir,
I am afzal hussain from bangladesh. Acually i am getting some problem using session in
php. This is the sample code that i have written,
session_start();
//$vbl=This variable is registered;
//session_register('vbl');
$_SESSION['vb1'] = This variable is registered;
1.You must call session_start before making a HTML for
client.
2.Please use if (!session_is_registered('vb1'))
session_register('vb1');
--- S. Kang [EMAIL PROTECTED] wrote:
Afzal Hussain ) wrote:
Sir,
I am afzal hussain from bangladesh. Acually i am
getting
Hi all,
I'm Gene Candelaria and I'm a PHP and MySQL newbie.
I have a feeling a lot of you have seen this before. I'm teaching myself
PHP/MySQL trying to setup a guestbook. I'm running latest versions of
Apache, PHP and MySql on my WIN2k machine. I have them working, except, I
get the messages:
is it possible to add a custom icon to a text file on the server
side..and then download the completed file to the user's desktop
would you put some type of AddType into the htacccess folder to do this
?
like AddType image/x-icon .ico
can php do something like this ?
many thanks
g
* Thus wrote John Nichel:
John Holmes wrote:
From: Jay Blanchard [EMAIL PROTECTED]
Probably Holmes.
Not officially. Might look into it, though, but this is really just a
hobby for me. :)
I think that if you've been on the list for over a year, you should be
certified
82 matches
Mail list logo