[PHP] Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
I am almost ready with my learning project in PHP/MySQL.
I can register new product in stock.
Add and increase the number and weight.
I can move products between different storehouses
I can also transfer products from store and onto a truck document but
that's it and here I need some advice.

I like to register new products and the amount in number (for example 4)
and weight in kg.

I like to write it in this way:
Dynamite - package 4 - Weight 200 kg
Lunt - Package 10


[PHP] hmmm

2006-02-10 Thread Jochem Maas

Oracle buying Zend helps the general population?:

http://www.theregister.co.uk/2006/02/10/oracle_opens_source_acquisition/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Hmmm

2005-02-27 Thread Jason Bennett
I just installed a new MYSQL version 4.1 (from 4.0) and now none of my
PHP scripts work anymore.  They are all complaining about attempting to
login as root.  Normally, I referance a class like:

 

class DB

{

  function DB()

  {

$this-host = 127.0.0.1:3306;

$this-db = mydatabase;

$this-user = reader;

$this-pass = read123;

$this-link = mysql_connect($this-host, $this-user, $this-pass);

mysql_select_db($this-db);

 

  }

}

 

 

Now it seems it just doesn't want to work anymore.  They all worked
great on the old MySQL.

 

Does anyone have any ideas what I might have missed?

 

Thanks!

 

J.

 



Re: [PHP] Hmmm

2005-02-27 Thread John Nichel
Jason Bennett wrote:
I just installed a new MYSQL version 4.1 (from 4.0) and now none of my
PHP scripts work anymore.  They are all complaining about attempting to
login as root.
snip
I'm going to guess that you didn't setup MySQL 4.1 to accept 'old-style' 
passwords.

--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Hmmm

2005-02-27 Thread Jason Bennett
Oooo.. good one.  I used the RPM install for MySQL.. can you point me in
the right direction for doing this?

Thanks!!

J.

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 27, 2005 9:40 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Hmmm

Jason Bennett wrote:
 I just installed a new MYSQL version 4.1 (from 4.0) and now none of my
 PHP scripts work anymore.  They are all complaining about attempting
to
 login as root.
snip

I'm going to guess that you didn't setup MySQL 4.1 to accept 'old-style'

passwords.

-- 
By-Tor.com
...it's all about the Rush
http://www.by-tor.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hmmm

2005-02-27 Thread John Nichel
Jason Bennett wrote:
Oooo.. good one.  I used the RPM install for MySQL.. can you point me in
the right direction for doing this?
Thanks!!
J.
Google is your friend...
http://www.google.com/search?q=mysql+4.1+accept+old+password
--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Philarmon
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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Joshua Moore-Oliva
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 something, store it in the 
database and then when someone comes to that page check the cookie value 
against what you stored in the database..  that's the only way to really 
enforce that someone came from a previous page of yours.

The http_referrer stuff is really built in just for statistics not security.

Josh.

On March 19, 2003 05:28 pm, Philarmon wrote:
 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Abdul-wahid Paterson
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 great !
 :)

Perhaps you could generate a cookie when they fist enter your site and
then check that that cookie is valid when retrieving the content. If
then they don't have the cookie set you would know that they have linked
to the page directly rather than from following a link on your site.

The cookie would have to be some sort of random identifier that you also
stored on the web server somewhere so that you could validate the cookie
was authentic.

Regards,

AW


-- 
Abdul-Wahid Paterson

Lintrix Networking  Communications ltd.
Web: http://www.lintrix.net/
Tel: +44 7801 070621
Email/Jabber: [EMAIL PROTECTED]

Web-Hosting  |  Development  |  Security  |  Consultancy  |  Domains



signature.asc
Description: This is a digitally signed message part


Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Philarmon
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



[PHP] Hmmm? PHP+PostgreSQL

2001-10-24 Thread Alexey Prohorenko

I've installed PostgreSQL into /usr/local/pgsql, then I tried
to include into my PHP support for PostgreSQL and made next:
(I had pre-compiled support for mySQL before that)

make clean
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning 
--enable-track-vars --with-pgsql --with-mysql
make
make install

(I have mySQL, too)
Compilation process was great, no errors. 
Nevertheless, next little PHP script:

html
head
titletesting needed functions of current-gtlg with PHP+PostgreSQL/title
/head
body bgcolor=white
?php
$conn = pg_connect (host=localhost port=5432 dbname=test user=postgres);
?
/body
/html

still says:
Fatal error: Call to undefined function: pg_connect() in 
/usr/local/apache/htdocs/pg-php/index.php on line 7

What I did wrong, guys?

Will be looking forward your answer,
please, CC: to [EMAIL PROTECTED]

Thanks.

-- 
green
[http://www.extrasy.net] 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Hmmm?

2001-08-01 Thread Kyle Smith

Whenever i get a php script off a website why is it that most of the main parts in the 
script have a space from the left border. eg

?php
echospazzz;
?



-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





RE: [PHP] Hmmm?

2001-08-01 Thread Lawrence . Sheed

I presume you mean code layout
Its there to make code easier to read.

eg some silly code

for ($x=1;$x100;$x++) {
while ($i50) {
print $i;
}
}


This is more legible than

for ($x=1;$x100;$x++) {
while ($i50) {
print $i;
}
}

Indentation makes it easier to spot where your code constructs - if ,switch,
while etc start and end.

Hope that explains it a little.  Do a search for code layout in google, and
read up on it, and check out a few examples. There are a number of coding
styles, find one that you like, and be consistent.  Remember to also comment
your code, as well as making it presentable.  If you look back at old code
in a few years time you'll be grateful you did.

Cheers,

Lawrence.
-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent: August 1, 2001 11:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Hmmm?


Whenever i get a php script off a website why is it that most of the main
parts in the script have a space from the left border. eg

?php
echospazzz;
?



-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Hmmm... What's problems?

2001-03-15 Thread Al

I'm using manual online on php.net  and use example of File uploader.
If i changed TEXT file All right!
If i changed Binary file php script answer Error!
in sources code PHP using Binary method...
And temporary subject $source_file is empty!
if i insert in PHP { echo "source: $source_file"; } and PHP say "Source:
none" And "Ftp upload has failed!"
Whats problem?
I don't understand...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]