* Thus wrote Matthew Sims:
>
> I just signed up with a new hosting site. So first thing I did was check
> what phpinfo() had to say.
>
> I see that register_globals is turned on. Now I always use the $_GET and
> $_POST vars but will this still affect me?
As long as you dont use third party softw
Yes the session variables are set with $SESSION[''}.
The way it works is the variable gets set on the
follwing pages:
So, example on page 1:
I have this user input field:
On the following page (page 2):
$_SESSION['f1a'] = $_POST['ListingName'];
And all the pages follow the same method. Inputs
Without seeing the code:
Try putting session_start() at the VERY beginning. Also try having the
action go to the page itself ($PHP_SELF or putting in the path). Is the
session variables being set using $SESSION['']?
Respectfully,
Ligaya Turmelle
Stuart Felenstein wrote:
Having some odd behavio
* Thus wrote Stephen Craton:
> I've been working on a script for a while now and it works perfectly on my
> local machine. I'm using a couple of classes, mainly my database and users
> classes.
>
> After logging in, I assign a session variable to the user's row in the
> database: $_SESSION['user']
* Thus wrote Justin French:
> Hi,
>
> What's the quickest way to alias a user function?
>
> I have a function which uses english spelling (eg categorise instead of
> categorize), and I want to alias the function with an "Americanized"
> spelling.
>
> I'd rather that the alias categorize() did
* Thus wrote Nick Wilson:
> Hello all,
>
> I was wondering if anyone might have suggestions or useful links on
> protecting commercial php scripts.
One thing that is always overlooked besides trying to obscure the
code so only reverse engineering is possible, is to include a
license in the sourc
* Thus wrote Aaron Gould:
> I just compiled PHP with an extension for testing purposes
> (mnoGoSearch). After all was said and done, the CLI version sees the
> mnogosearch extension just fine ("php -m"), but the Apache module
> doesn't see it at all (nothing "mnogosearch" related at all in "PHP
Hi,
Here is a small but working script which emulate post. You can post any
type of data as a form field.
http://www.zend.com/codex.php?id=77&single=1
But as many other users have suggested, I think SOAP is the best thing
to try.
Visit
http://sourceforge.net/projects/nusoap/
Zareef Ahmed
--
I've been working on a script for a while now and it works perfectly on my
local machine. I'm using a couple of classes, mainly my database and users
classes.
After logging in, I assign a session variable to the user's row in the
database: $_SESSION['user'] = $db->row;
This works fine locally, bu
Hi,
What's the quickest way to alias a user function?
I have a function which uses english spelling (eg categorise instead of
categorize), and I want to alias the function with an "Americanized"
spelling.
I'd rather that the alias categorize() did not have to be altered in
any way to "keep up"
* Thus wrote Robert Cummings:
> On Tue, 2004-10-26 at 10:14, Curt Zirzow wrote:
> > >
> > Actually it gets easier..
> >
> > cd ext/custommodule/
> > phpize
> > ./configure --with-custommodule
> > make
> >
> > Now you'll have a custommodule.so available.
>
> Aaah cool. When did that become avail
You can write your program in c++, checkout this pecl extension:
http://pecl.php.net/rar
You might want to join the pecl mailing list, there are more
developer eyes there that can answer questions about these things.
* Thus wrote Pierre Ancelot:
>
>
> in fact, i would code it in c++ but the
in fact, i would code it in c++ but the used compiler is gcc... i tried to
change the value CC in makefile but the lib obtained is invalid and is not
working with php any idea on this ?
Sorry to bother again :)
On Tuesday 26 October 2004 16:14, Curt Zirzow wrote:
> * Thus wrote Robert Cu
I use md5 all the time and OS X is my web development staging
environment! I write and test all my scripts on OS X and then send off
to the server. I don't use crypt, but I have never seen any problems
going between the two. apache, php, mysql, rsync, ssh, scp, everything
*nixy plus a nice inte
David Robley wrote:
It seems that mysql_escape_string and mysql_real_escape_string do
undesirable things to EOL markers - data from textareas escaped with either
of those functions is entered, and retrieved with, the characters /r/n
instead of a true line break.
This snippet of code demonstrates th
Hello,
On 10/26/2004 06:22 AM, Wiesiek wrote:
So.. If domain was not exist (like (2)), then exim4 generate error message
and send [EMAIL PROTECTED] (like (4)).
Is some way to change it? I never set in any config these address.
I try to set in mail header Return-Patch:, but it seems to no work :(
Y
Having some odd behaviour.
First , let me mention this is a multi page form using
session variables. (This might be important)
So I am doing a page by page validation, and have
tried putting the code before session_start or after.
Either way my session variables are getting lost.
Now in order t
Hello,
I looking to get the data out of this test.xml file but dont
know how to get the data out because of the "bo:" namespaces.
If I remove all "bo:" from the xml then it works fine...
Is anyone can tell me how to do it?
UserAuthRequest->UserLoginName . "\n";
?>
test.xml:
http://ACORD.org
> Check the documentation for preg_match()...it can't be used that way. It returns
> false or the number of matches, but not the matching text itself. To get the
> matches you have to supply the third parameter (matches). Plus you'll probably
> want to use preg_match_all() unless you only want
Alex Hogan wrote:
>> I just tried this out and the first regex is actually working for me
>> on php 4.3.8 (cli). Can you post some code?
>
> At this point all I'm trying to do is print the array with the
> addresses.
>
> $file=readfile('mypathto/myfile.html');
> $patrn
Kevin Grigorenko wrote:
> "Paul Fierro" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> According to this post, you do not need to use flock() if you open a
>> file in append mode:
>>
>> http://marc.theaimsgroup.com/?l=php-general&m=105165806915109&w=2
>
> That's exactly what I was
> I just tried this out and the first regex is actually working for me on php 4.3.8
> (cli). Can you post some code?
At this point all I'm trying to do is print the array with the addresses.
$file=readfile('mypathto/myfile.html');
$patrn =(\w[-._\w]*\w(?http:/
"Paul Fierro" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 10/24/2004 5:11 PM, Kevin Grigorenko <[EMAIL PROTECTED]> wrote:
>
> > I am appending to a file one line of text on every page hit, so there
could
> > be many occurrences of this append simultaneously. I am not opening
Alex Hogan wrote:
> Hi All,
>
> I am trying to identify an email address in a page but I don't want to
> return the email if it's [EMAIL PROTECTED]
>
> Here's what I have;
> (\w[-._\w]*\w(?
> It returns nothing, however when I take out the lookbehind section;
> ([EMAIL PROTECTED],3})
> it works fin
Hi All,
I am trying to identify an email address in a page but I don't want to
return the email if it's [EMAIL PROTECTED]
Here's what I have;
(\w[-._\w]*\w(?http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
On 10/26/2004 08:44 AM, Nick Wilson wrote:
I was wondering if anyone might have suggestions or useful links on
protecting commercial php scripts.
I am about to design a system that would be pretty valuable in a very
niche market and would not wish the script to be passed on to others
once do
On Tue, 2004-10-26 at 14:21, Francisco M. Marzoa wrote:
> Greg Beaver wrote:
>
> > Sort of :)
> >
> > In PHP5, this will work.
>
> [...]
>
> Very nice, thanks a lot :-)
>
> >
> > However, you won't have access to private or protected data members.
>
> Damn! that's exactly what I want! :-(
>
>
Greg Beaver wrote:
Sort of :)
In PHP5, this will work.
[...]
Very nice, thanks a lot :-)
However, you won't have access to private or protected data members.
Damn! that's exactly what I want! :-(
It is always better to rigidly define your methods, and extend the
class as someone else suggested.
Th
Francisco M. Marzoa Alonso wrote:
I've seen that's possible to add members to objects dinamically, in
example:
class MyClass {
private $a;
}
$MyObject = new MyClass ();
$MyObject->b = 1;
Now $MyObject has a public member called 'b' that has a value of '1'.
The question is, is it possible to ad
* Francisco M. Marzoa Alonso <[EMAIL PROTECTED]>:
> I've seen that's possible to add members to objects dinamically, in example:
>
> class MyClass {
> private $a;
> }
>
> $MyObject = new MyClass ();
> $MyObject->b = 1;
>
> Now $MyObject has a public member called 'b' that has a value of '1'.
>
Instead of:
Try this:
//unregister the sessions
$_SESSION['validlogin']=""; $_SESSION['username']="";
$_SESSION['password']="";
//destroy the sessions array
$_SESSION = array();
//destroy the session
session_destroy();
Greetings
Reinhart Viane
--
PHP General Mailing List (http:
"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jeremy Weir wrote:
>> The quesion is: how would one make an abstract method that can be
>> compatible with all extending classes that define the method using
>> different class type hints?
>>
>> The php block below is h
> Hi,
> Any idea why it is taking the first array as blank and giving me an array
> count of 3 instead of 2?
> $final="http://something.com/cgi-bin/atx/out.cgi?s=63&c=1&l=gals&u=http://bl
> ah.something.com/bs3/index1.htm";
> $final2=explode("http://",$final);
> $res=count($final2);
> echo "".$res
Hello Nick,
Tuesday, October 26, 2004, 12:44:37 PM, you wrote:
NW> I was wondering if anyone might have suggestions or useful links on
NW> protecting commercial php scripts.
Source Guardian works well enough for me and doesn't require that you
have an extension compiled into PHP (like Zend Encod
On Tue, 26 Oct 2004 18:13:10 +0200, Francisco M. Marzoa Alonso
<[EMAIL PROTECTED]> wrote:
> I've seen that's possible to add members to objects dinamically, in example:
>
> The question is, is it possible to add methods in the same way?
Why not just extend the class and add the new functions ther
very good question, why didn't it works the way it was described in the tut ?
On Tuesday 26 October 2004 17:07, Robert Cummings wrote:
> On Tue, 2004-10-26 at 10:14, Curt Zirzow wrote:
> > * Thus wrote Robert Cummings:
> > > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> > > > in fact i got
It works !! thanks to you and robert, i use the phpize method, it's an
excellent thing that generates all needed, no i use it in a specific folder,
no need to haev the whole source around :)
THANKS !!
On Tuesday 26 October 2004 16:14, Curt Zirzow wrote:
> * Thus wrote Robert Cummings:
> > On
I've seen that's possible to add members to objects dinamically, in example:
class MyClass {
private $a;
}
$MyObject = new MyClass ();
$MyObject->b = 1;
Now $MyObject has a public member called 'b' that has a value of '1'.
The question is, is it possible to add methods in the same way?
I meant s
[EMAIL PROTECTED] wrote:
I have installed Apache 2.0.52 and PHP 5.0.2 on windows XP. I have configured directories and everything works until I unmark any of extensions. After this, during Apache server starting, I am reciving the
warning :
PHP Startup: Unable to load dynamic library
"D:/MyWWWsr
On Tue, 2004-10-26 at 10:14, Curt Zirzow wrote:
> * Thus wrote Robert Cummings:
> > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> > >
> > > in fact i got it in the ./configure --help :
> > >
> > > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i spider
> > > --enabl
no worries, i was in bed too :P
trying, thanks :)
On Tuesday 26 October 2004 14:01, Robert Cummings wrote:
> On Tue, 2004-10-26 at 00:58, Pierre Ancelot wrote:
> > humm, thank you, finaly someone that did something of that kind :)
> >
> > well, i want it as a dynamic extension that i could redist
i used turck mmcache you can googlize for it, it works very well, encrypts the
code, store most used files in shared memory... in other words, it also
opitimise... that's what i preconise
On Tuesday 26 October 2004 13:44, Nick Wilson wrote:
> Hello all,
>
> I was wondering if anyone might hav
On Tue, 26 Oct 2004 18:54:45 +0530, Akshay <[EMAIL PROTECTED]> wrote:
> how to get bios info in PHP
> Is there any command?
Maybe something like:
php -r "system('dmesg');"
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http:
Joey wrote:
Hi everyone,
I changed the setting in my php.ini to allow an upload file size bigger then
the defaul 2MB chaning the setting shown below:
; Maximum allowed size for uploaded files.
;upload_max_filesize = 2M
upload_max_filesize = 5M
http://www.radinks.com/upload/config.php shows all t
Nunners wrote:
I'm having some problems with using HTTP Auth in PHP5 - how do I check
whether the old $PHP_AUTH_USER exists?
It's part of the $_SERVER super global.
$_SERVER['PHP_AUTH_USER']
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://w
* Thus wrote Robert Cummings:
> On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> >
> > in fact i got it in the ./configure --help :
> >
> > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i spider
> > --enable-spider Enable spider support
>...
>
> That said,
Joey wrote:
Hi everyone,
I changed the setting in my php.ini to allow an upload file size bigger then
the defaul 2MB chaning the setting shown below:
; Maximum allowed size for uploaded files.
;upload_max_filesize = 2M
upload_max_filesize = 5M
However when I go to phpinfo, or of course try to
On Tue, 26 Oct 2004 09:37:06 -0400, Joey <[EMAIL PROTECTED]> wrote:
> I changed the setting in my php.ini to allow an upload file size bigger then
> the defaul 2MB chaning the setting shown below:
>
> ; Maximum allowed size for uploaded files.
> ;upload_max_filesize = 2M
> upload_max_filesize = 5M
Shaun wrote:
Hi,
I am creating an online timesheet application. Most parts are done, however
I have a problem displaying a list of unapproved timesheets.
Here is my timesheet table:
mysql> DESCRIBE Timesheets;
+---+-+--+-+++
| Field
hi all,
how to get bios info in PHP
Is there any command?
Suggest me.
akshay
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm having some problems with using HTTP Auth in PHP5 - how do I check
whether the old $PHP_AUTH_USER exists?
Cheers
Nunners
> Ahh, if you *have* to push the data (which you obviously do) and the
> authentication site has no other authentication methods then you have
> to POST the file with PHP. It can be done, there are many classes for
> it, I can't recommend any specific class, but I'm sure someone else
> here coul
Hey,
Thanks, I have also gotten rid of the blank one like this:
if($final2[0]==""){unset($final2[0]);}
-Ryan
On 10/26/2004 3:36:45 PM, Brent Baisley ([EMAIL PROTECTED]) wrote:
> The result is correct. You are splitting the string based on "http://";.
>
> There are two instances of it, so there
Hi everyone,
I changed the setting in my php.ini to allow an upload file size bigger then
the defaul 2MB chaning the setting shown below:
; Maximum allowed size for uploaded files.
;upload_max_filesize = 2M
upload_max_filesize = 5M
However when I go to phpinfo, or of course try to upload a f
The result is correct. You are splitting the string based on "http://";.
There are two instances of it, so there are 3 resulting elements. Since
there is not text before the first instance, your first array element
is empty. If there was text before the first instance, you would expect
3 re
Louie Miranda wrote:
Hi,
i got tired testing free php scripts that does count current online
users and i could not find the best one yet.
maybe someone can help me.
im looking for a current counter for online users, php script that
does count even if its inside a proxy with one ip.
i can't find one
Louie Miranda wrote:
Hi,
i got tired testing free php scripts that does count current online
users and i could not find the best one yet.
what is the yard stick
--
Raditha Dissanayake.
http://www.radinks.com/sftp/
Double Shameless Plus follows:
marc serra wrote:
Hi,
I'm designing a web site and i need to let users upload large files
like 10M or more.
You need to tweak your php installation to be able to handle such large
files http://www.radinks.com/upload/config.php will help you do that.
I got some solu
Tring Tring .
Just to ring please help me.
I am giving to out print_r($ret) then it returns 1 at
exec(' snmpget -v 2c -c public 10.103.16.14 sysUpTime.0',$ret);
--Nikhil
-Original Message-
From: Mulley, Nikhil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 12:41 PM
Hi,
I am creating an online timesheet application. Most parts are done, however
I have a problem displaying a list of unapproved timesheets.
Here is my timesheet table:
mysql> DESCRIBE Timesheets;
+---+-+--+-+++
| Field
Hi,
I'm designing a web site and i need to let users upload large files like
10M or more.
I got some solution that are using common file transfert in PHP or using
FTP transfert in PHP.
The problem is that if someone upload a big file he will not have any
indication about the upload status. Is t
Hi,
Any idea why it is taking the first array as blank and giving me an array
count of 3 instead of 2?
http://something.com/cgi-bin/atx/out.cgi?s=63&c=1&l=gals&u=http://bl
ah.something.com/bs3/index1.htm";
$final2=explode("http://",$final);
$res=count($final2);
echo "".$res;
print_r($final2);
?>
T
Hello Greg,
Thanks for reply, I did try
ini_set ( "session.auto_start", "1"); and it set the session.auto_start to
On on my configuration, however the rest of the users on that server had
auto_start off.
This didn't solve the problem, should I try to access .htaccess? I presume
it will affect all t
Victor
Yes, Chris is correct. Maybe you can POST your file via cURL to the
remote script expecting to receive your file from the authentication
site. Definitely check PEAR. There is also some info at php.net about
new SOAP capabilites built-in to PHP 5. Unfortunately I have only used
cURL t
Nick Wilson wrote:
* and then Francisco M. Marzoa Alonso declared
I was wondering if anyone might have suggestions or useful links on
protecting commercial php scripts.
I am about to design a system that would be pretty valuable in a very
niche market and would not wish the script to be pass
H
Setup a CRON job using SCP or cURL. You can use SOAP or create your own
similar system. I have never used SOAP but use the same principles.
Example: Company X needs some strange format of data (text file, CSV or
whatever) delivered to them SECURELY at 5am EST. The company cannot
a
* and then Francisco M. Marzoa Alonso declared
> >I was wondering if anyone might have suggestions or useful links on
> >protecting commercial php scripts.
> >
> >I am about to design a system that would be pretty valuable in a very
> >niche market and would not wish the script to be passed on
On Mon, 25 Oct 2004 15:33:59 +0300, Ville Mattila
<[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I have a few e-mail templates in a file that should be parsed. A
> template can include also some "module codes" that should be replaced by
> a return value of a certain function. For example, if the templ
Nick Wilson wrote:
Hello all,
I was wondering if anyone might have suggestions or useful links on
protecting commercial php scripts.
I am about to design a system that would be pretty valuable in a very
niche market and would not wish the script to be passed on to others
once downloaded.
Suggesti
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 26 October 2004 12:01, John Holmes wrote:
> Sugimoto wrote:
> > Bad query: You have an error in your SQL syntax near 'and Tit like
> > and Aut like and Auty like ' at line 4
> [s
This one time, at band camp, Nick Wilson <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I was wondering if anyone might have suggestions or useful links on
> protecting commercial php scripts.
>
> I am about to design a system that would be pretty valuable in a very
> niche market and would not wi
I found this one very usefull:
http://shiflett.org/php-security.pdf
You should anyway start at:
http://php.net/security/
good luck,
Dirk
Am Dienstag, 26. Oktober 2004 13:44 schrieb Nick Wilson:
> Hello all,
>
> I was wondering if anyone might have suggestions or useful links on
> protecting com
On Tue, 2004-10-26 at 00:58, Pierre Ancelot wrote:
> humm, thank you, finaly someone that did something of that kind :)
>
> well, i want it as a dynamic extension that i could redistribute and which
> wouldn't necessits recompilation, just adding it in php.in
>
> does what you told still would
Hello all,
I was wondering if anyone might have suggestions or useful links on
protecting commercial php scripts.
I am about to design a system that would be pretty valuable in a very
niche market and would not wish the script to be passed on to others
once downloaded.
Suggestions, discussion a
Sugimoto wrote:
Bad query: You have an error in your SQL syntax near 'and Tit like and Aut
like and Auty like ' at line 4
[snip]
foreach ($_GET as $value) {
if (empty($value)) $value = "%";
You have an issue here. You're looping through $_GET and attempting to
set a default value (which is
It seems that mysql_escape_string and mysql_real_escape_string do
undesirable things to EOL markers - data from textareas escaped with either
of those functions is entered, and retrieved with, the characters /r/n
instead of a true line break.
This snippet of code demonstrates the problem:
\n";
$w
Hi
I try to send mail (like http://www.php.net/mail) and it works fine.
I define my own headers.
But my question is about "wrong mail delivery".
I use exim4.34.
When I send mail via PHP script, then I see in my logs:
2004-10-26 11:04:36 1CMNFs-00046O-T9 <= [EMAIL PROTECTED] U=www-data
P=local S
I have installed Apache 2.0.52 and PHP 5.0.2 on windows XP. I have configured
directories and everything works until I unmark any of extensions. After this, during
Apache server starting, I am reciving the
warning :
PHP Startup: Unable to load dynamic library
"D:/MyWWWsrv/php/ext/php_mysql.dll
Hi,
i got tired testing free php scripts that does count current online
users and i could not find the best one yet.
maybe someone can help me.
im looking for a current counter for online users, php script that
does count even if its inside a proxy with one ip.
i can't find one.
--
Louie Mira
Hi All,
I want to use system command to perform snmp queries on a remote machine and the
problem is that I want to store the output /result in an Array , so that I can later
use it for parsing purposes.I know I could use exec and passthru statements
actually,But I am unable to store the result
80 matches
Mail list logo