[PHP] array in email

2001-12-29 Thread Jordan

I've searched the archive but can't seem to find anything on the mail()
function of PHP.  I've got the whole function working in a simplistic manner
but I can't do one thing.  How is it possible to print arrays inside the
body of the message.  I can't seem to run a loop or anything and all I have
are session variables to use.  Thanks in advance for the help.

-Jordan



-- 
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] Re: array in email

2001-12-30 Thread Jordan

Thanks George...that did the trick...sometimes I want to smack myself for
not seeing the obvious.  Thanks for the help.

-Jordan


George Nicolae <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> the mail function looks like : mail($to,$subject,$body) ("in a simplistic
> manner")
> you can use
>
> $to="[EMAIL PROTECTED]";
> $subject="test";
> for ($i=0;i $body.=a[i];
>
> file://and then, of course
> mail($to,$subject,$body);
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___
> X-Playin - Professional Web Design
> www.x-playin.f2s.com
>
>
>
> "Jordan" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I've searched the archive but can't seem to find anything on the mail()
> > function of PHP.  I've got the whole function working in a simplistic
> manner
> > but I can't do one thing.  How is it possible to print arrays inside the
> > body of the message.  I can't seem to run a loop or anything and all I
> have
> > are session variables to use.  Thanks in advance for the help.
> >
> > -Jordan
> >
> >
>
>



-- 
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] Session Array Problems - Please Help

2002-03-06 Thread Jordan

I'm having issues registering and then updating a value for specific items
in an array.  I've read through the manual and MARC but I can't seem to find
the right answer.  Here's what I'm trying to do...

Basic Backgroung:  This is a "view cart" page.  Depending on products that
they have selected I pull information from a MySQL database to give details
about their product.  To do so I have set up a loop (duh) and on each pass
of the loop I add information to the session array.  Here's the code...it
will make more sense...

First...I clean the arrays so that I don't have conflicting data...this is
done first thing on the page after session_start();

session_start();
session_register('subtotal');
session_unregister('kitem');
session_unregister('kquan');
session_unregister('kscale');
session_unregister('kdetail');
session_unregister('kdriver');
session_unregister('ksponsor');
session_unregister('kcompany');
session_unregister('kprice');


Then comes the loop which adds data to the now empty arrays...

for ($index = 0; $index < $indexLimit; $index++)



//connect and query MySQL database

   include ("connect.php");

   $result = mysql_query("SELECT * FROM ar
   LEFT JOIN company on ar.company_id=company.company_id
   LEFT JOIN scale on ar.scale_id=scale.scale_id
   WHERE ar.item_number = '".$i[$index]."'\n");




  //sort through results
   if ($myrow = mysql_fetch_array($result))
   {
  do
   {

if ($quan != 0 && $quan != "" && $quan != "0")
 {

 //the following vars will be used on the order form as hidden
fields.

 $kitem[$index] = $myrow[item_number];
 $kquan[$index] = $quan;
 $kscale[$index] = $myrow[size];
 $kdetail[$index] = $myrow[details];
 $kdriver[$index] = $myrow[driver_name];
 $ksponsor[$index] = $myrow[sponsor];
 $kcompany[$index] = $myrow[value];
 $kprice [$index] = $myrow[price];

 }
}
while($myrow = mysql_fetch_array($result));
}

And then finally I reset my session variables (arrays) like this...

session_register('kitem');
session_register('kquan');
session_register('kscale');
session_register('kdetail');
session_register('kdriver');
session_register('ksponsor');
session_register('kcompany');
session_register('kprice');

I get mixed and varied results...usually the items show up twice or don't
show up at all.  Please help if you can see anything that is being done
wrong.  Thanks...

-Jordan



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




Re: [PHP] return

2002-03-31 Thread Jordan

Eric,

Isnt there really no need for the 'return' though?

$test ($var)
{
addslashes($var)
}

$foo = "He's dreaming";
$foo = test($foo);
print($foo);
//should also print He\'s dreaming

Am I incorrect in thinking this?

-Jordan K. Martin
http://www.newimagedesign.com


Eric Coleman <[EMAIL PROTECTED]> wrote in message
018e01c1d93d$cd404be0$0201a8c0@zaireweb">news:018e01c1d93d$cd404be0$0201a8c0@zaireweb...
> But to answer your question
>
> The purpose of return, is to "return" a value..
>
> function test($var)
> {
>  return addslashes($var);
> }
>
> $foo = "Yes, I'am Very Awsome";
> $foo = test($foo);
> echo($foo);
> // echo's, Yes I\'am Very Awsome
>
> Understand?
>
> - Original Message -
> From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> To: "Gary" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, March 31, 2002 11:43 PM
> Subject: Re: [PHP] return
>
>
> > Nope, that code makes no sense.  $_POST is an array containing the POST
> > variables.  You make a copy of that array an put it in $foo thereby
> > overwriting the passed in $foo.  Then you return $$foo which actually
ends
> > up returning a variable named $Array.  It does not look like you have a
> > $Array variable in scope, and it is surely not what the misguided coder
> > behind this code was trying to achieve.  In short, this is completely
> > bogus.
> >
> > -Rasmus
> >
> > On Sun, 31 Mar 2002, Gary wrote:
> >
> > > Can someone explain to me the reason for using return.
> > >
> > > function _getValue($foo)
> > > {
> > > $foo = $_POST;
> > > return ${$foo};
> > > }
> > >
> > > TIA
> > > Gary
> > >
> > >
> > > --
> > > 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
> >
> >
> >
>



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




[PHP] problems with looping array

2001-12-03 Thread Jordan

here's the situation.  I'm making a shopping cart, when an item is added
it's item number is added into an array.  I then want this array's items to
be compared agains the database.  Unfortunately I haven't been able to use a
variable in the query string of MySQL.  something along the lines of




where $item is the array of item numbers and $index is an auto incrementing
number that increments at the end of the loop.  Please help if you know of
anyway to use this variable.  Also, I can post my whole script if needed...I
just didn't want unneeded info posted.  Thanks in advance.

-Jordan



-- 
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] Re: problems with looping array

2001-12-03 Thread Jordan

I tried but nothing different happened.  I'm still playing though and I'll
see if I can make it work.  I'm new to all of this...so we'll see how it
goes.  Thanks for your help.

-jordan


Fred <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Strings in your sql query must be quoted.  Try this instead:
>
> >$result = mysql_query("SELECT * FROM ar
> >LEFT JOIN company on ar.company_id=company.company_id
> >LEFT JOIN scale on ar.scale_id=scale.scale_id
> >WHERE item_number = \"$item[$index]\")";
>
> Fred
>
> Jordan <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > here's the situation.  I'm making a shopping cart, when an item is added
> > it's item number is added into an array.  I then want this array's items
> to
> > be compared agains the database.  Unfortunately I haven't been able to
use
> a
> > variable in the query string of MySQL.  something along the lines of
> >
> >
> >  >
> >include ('connect.php');
> >
> >$result = mysql_query("SELECT * FROM ar
> >LEFT JOIN company on ar.company_id=company.company_id
> >LEFT JOIN scale on ar.scale_id=scale.scale_id
> >WHERE item_number =" . $item[$index]);
> >
> > ?>
> >
> > where $item is the array of item numbers and $index is an auto
> incrementing
> > number that increments at the end of the loop.  Please help if you know
of
> > anyway to use this variable.  Also, I can post my whole script if
> needed...I
> > just didn't want unneeded info posted.  Thanks in advance.
> >
> > -Jordan
> >
> >
>
>



-- 
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] question on incrementing

2001-12-05 Thread Jordan

I'm trying to increment a variable but either clicking on link or button but
I don't want to reload the page.  Is there any possible way to pull this
off?

Thanks,
-Jordan



-- 
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] looping and incrementing

2001-12-05 Thread Jordan

I guess I didn't state my question very well in my previous post "question
on incrementing."  This is the situation.  I'm building a shopping cart...
Right now I'm passing a variable "$itemnumber" from the catalog page to the
cart page.  $itemnumber is an array and every time a product is added to the
cart, the itemnumber is tacked on to this array.  I'm then making a loop for
the array, referencing each unique value in $itemnumber to an item number in
a MySQL database.  Then I call the information from the table in MySQL where
$itemnumber == $query[itemnumber].  I hope you understand all of that

anyway, this is what I'm looking to do.  I need a way to increment a
variable $quantity.  If that means reloading that's ok...but I just can't
seem to come up with a way to add to a quantity without effecting my
quantity values for all of the other item numbers in the array.

any help would be majorly appreciate.

-Jordan



-- 
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] multi-dimensional array

2001-12-05 Thread Jordan

Is there any way to pass a multi-dimenstional through a url.  something like
/cart.exe?item[1][1]=3

just curious.

-Jordan



-- 
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] JavaScript and PHP

2001-12-09 Thread Jordan

Hey all,

Just a quick question...how would you pass a PHP variable to a JavaScript
function?

-Jordan



-- 
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] session

2001-12-11 Thread Jordan

is there anyway to drag session variables to another server or are they
server specific?  If you can't drag a session can you do an include for a
page on a different server giving it's URL?  Just curious.

-Jordan



-- 
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] including outside pages

2001-12-13 Thread Jordan

hello all,

Two questions

1) Is it possible to pass a session to another server?  I'm creating a
secure order form for a shopping cart but the ssl service of my provider is
on a different server.  Is there anyway to carry a users session over to
this box?

2) If it is not possible to carry a session...is there anyway I could
include this page on the ssl server into my main server from my host?  If I
could do an include I could continue the session and use it's stored
variables.

Thank you for the help.

-Jordan



-- 
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]




Re: [PHP] Good PHP book?

2008-12-16 Thread jordan
> Ashley Sheridan a écrit :
>> On Sun, 2008-12-14 at 16:33 -0600, jeffery harris wrote:
>>> Hi guys/gals. I'm a first time user. Does anyone know of a good php
>>> book?
>>>
>>>
>>>
>> I tend to trust O'Reilly books a lot for all things programming,
>> although I learnt largely with 'PHP, Apache, MySQL Web Development' from
>> WROX.
>>
>>
>> Ash
>> www.ashleysheridan.co.uk
>>
> Yes, I am agree with Ashley. This book must be read. But first, you
> should read the whole php documentations as Tim said (available on HTML
> offline). There is everything in it.
>
> Good luck !
>
> Zeuf
>
I learned from PHP For Dummies.
> --
> 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



[PHP] Dynamic menu

2010-07-19 Thread jordan

Hello All,

I am new in this group and first whant to say hello to all.
Need me menu who have different link if user is login or logout, 
something like dynamic menu. Somebody can tall me how can i use and 
create this menu.


Thansk

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



Re: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread Jordan

On 7/27/2010 12:38 PM, Andre Polykanine wrote:

Hello viraj,

As for classes, it's suggested to start a class name with a capital:
class MyBestClass {
...
}

As for functions and class methods, there are lots of people who name
them like this:

function the_greatest_function_in_the_world () {
...
}

Maybe it's readable and great, but I have a little problem: I'm using
a screenreader, so the word "underscore" (and its Russian equivalent)
is too long for me. So I prefer

function TheGreatestFunctionInTheWorld () {
...
}

However, just discussed it with my wife. She prefers the same method
as me, though she doesn't use any screenreading software for
developing.


Hello All

First thanks for all suggestions, I find some document from 2003 year 
and plane to use this standard everybody who what can see on next link

http://www.dagbladet.no/development/phpcodingstandard/

Best Regards
Jovanov Jordan

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



[PHP] php or juvascript convert IETF format to ISO08601

2011-03-14 Thread Jordan

Hello Evrybody,

Can i convert IETF format (ex: "Wed, 18 Oct 2009 13:00:00 EST") in 
ISO8601 format (ex: "2009-11-05T13:15:30Z")


Does somebody know some php scripte or similar?

Thanks...

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



[PHP] Authentication programming

2003-01-14 Thread Jordan Elver
Hi,
I'm about to start a new project which will require a login system. The system 
should allow for different types of access on a per page basis. I'm going to 
achieve the login system using sessions, which I have done before.

My problem is that I don't want to have to do much login checking on the 
actual pages within the system. I would like it to be included and handled 
oustide of the main application.



So, you set the permission for the individual page. I would also like to do 
this as a class, which I am not experienced in. I haven't found any very 
elegent solutions to this. Could anyone point out some urls or anything to 
show me in the right direction?

Cheers,
Jord
-- 
Jordan Elver
There's no 'I' in 'team'. But then there's no 'I' in 'useless smug colleague', 
either. And there's four in 'platitude-quoting idiot'. Go figure. -- David 
Brent (The Office)


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




Re: [PHP] Authentication programming

2003-01-15 Thread Jordan Elver
Hi Justin,

Thanks for that link, looks pretty interesting. I'll take a closer read later.

Cheers,
Jord
-- 
Jordan Elver
Eagles may soar high, but weasels don't get sucked into jet engines. -- David 
Brent (The Office)


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




[PHP] OOP

2003-01-15 Thread Jordan Elver
Hi,
I've been doing a little OOP lately and have a few questions.
I want to build an application, there a re lots of elements to the 
application: Authentication, Database, Presentation, Error Handling etc.

Now, I want to code this cleanly and make it reusable. So, a class for each of 
these elements would be a good idea? Say I have an Authentication class. It 
has to run on it own. Should I build database, error methods into each of my 
classes? That seems to defeat the point in the first place?

At the moment I seem to struggling with how to do somthing right and well, 
rather than the actual code :)

Thanks for any advice you can give,
Jord
-- 
Jordan Elver
You don't have to be mad to work here! In fact we ask you to complete a 
medical questionnaire to ensure that you are not. -- David Brent (The Office)


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




Re: [PHP] OOP

2003-01-15 Thread Jordan Elver
> I'd recommend you make a separate database class and error class that each
> of your other classes access. That would make it the most modular and
> re-usable.
>
> ---John Holmes...

I was hoping someone would say that :)
How could I code that though. I've only just started with OOP and don't 
understand how I can inherit methods to classes? Is it a good idea to create 
a new object within each class which, for example, needs to do database stuff 
or should I inherit the methods?

I haven't found any clear examples of this kind of OOP, only the real basics 
(which I still need help with by the way :) ).

Thanks for your help,
Jord
-- 
Jordan Elver
Is your work done? Are all pigs fed, watered and ready to fly? -- David 
Brent (The Office)


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




Re: [PHP] OOP

2003-01-16 Thread Jordan Elver
Thanks Greg,
I know a bit of PHP but the OOP is a bit harder to understand I think :)
I'll check out the PEAR classes.

Cheers,
Jordan

On Thursday 16 Jan 2003 12:25 am, Greg Beaver wrote:
> Hi Jordan,
>
> If you are doing this to learn PHP, that is great, keep plugging.  If you
> want to see working examples of the things you've described, there are a
> number of scripts out there, both in pear (pear.php.net) and at other
> repositories like phpbuilder.com and phpclasses.org.  You would benefit
> from examining how other authors have solved the same problems even if you
> are simply trying to learn php
>
> Take care,
> Greg

-- 
Jordan Elver
Statistics are like a lamp-post to a drunken man - more for leaning on than 
illumination. -- David Brent (The Office)


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




Re: [PHP] OOP

2003-01-16 Thread Jordan Elver
Thanks John,

> Inheriting would probably be the most modular.

I thought this would be the way to go. Ill need to read up on this.

> > I haven't found any clear examples of this kind of OOP, only the real
> > basics
> > (which I still need help with by the way :) ).
>
> Use google. Do some more studying before you try to tackle this, or look
> on phpclasses.org for some examples.
>
> ---John W. Holmes...
>
> PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> today. http://www.phparch.com/

Nice work on php archittect by the way :)
Thanks again,
Jordan
-- 
Jordan Elver
The office is like an army, and I'm the field general. You're my footsoldiers 
and customer quality is the WAR!!! -- David Brent (The Office)


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




[PHP] More OOP

2003-01-16 Thread Jordan Elver
Hi guys,
After your previous advice. I have been looking at some more OOP for my 
application. Is this the sort of way a proper OOP application should be 
constructed?

I want to use smarty as my template language as well, how could I integrate 
that?

";

// get connections details
list($host, $username, $password, $type) = $details;

// connect to the database
if($connection = mysql_connect($host, $username, $password)) {

$this->raise_error();
}
}
}

class Login extends Database {

function Login() {

echo "Hello, I'm the Login class";

// connect to the database
$this->connect();
}
}

$c = new Database;
$c->connect();

Any pointers would be great :)

Cheers,
Jord
-- 
Jordan Elver
You don't have to be mad to work here, but you do have to be on time, well 
presented, a team player, customer service focused and sober!! -- David Brent 
(The Office)


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




[PHP] Repeating Templates

2003-02-24 Thread Jordan Elver

Hi,
I checked the archives for this but couldn't find a simple answer.
I'm working on my own templating class. Mainly as a learning experience, but 
also because I only want something really simple.

I sort of know how to do simple variable substitution. I have something along 
the lines of this below. 

$name = 'Bob';

$page = new Template;
$page->assign('NAME', $name);
$page->display();

Which assigns the variable to a template variable like {NAME}.
So, that's fine. What I don't know how to do is repeat bits of templates. Say, 
from a db query or something. How can I repeat the rows for all the data?
Any tutorials or advice would be appreciated. Hope my question is clear :)

TIA,
Jordan
--
Jordan Elver



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



Re: [PHP] PHP graphs

2003-02-27 Thread Jordan Elver
> Secondly, I'd like to trace a basic X/Y graph with data provided from a DB,
> any PHP help?

JPGraph is good.

-- 
Jordan Elver
Put the key of despair into the lock of apathy. Turn the knob of mediocrity 
slowly and open the gates of despondency - welcome to a day in the average 
office. -- David Brent (The Office)


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



[PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
Hi,
I've been creating some graphs using jpgraph and they work really well when I 
view them directly i.e. directly through the script. My problem comes as soon 
as I try to display them using the  tag within another page. When I do:



I can't get it to display. It just shows the broken image icon.

Any ideas whaty may be causing that?

TIA,
Jord
-- 
Jordan Elver
The office is like an army, and I'm the field general. You're my footsoldiers 
and customer quality is the WAR!!! -- David Brent (The Office)


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



Re: [PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
> I assume you are sending something similar to the following before the
> actual pic?
>
> header("content-type: image/png");

Jpgraph does that for you I think. As I said before, the script works when you 
access it directly, but not when it's through an img tag.
-- 
Jordan Elver
There may be no 'I' in team, but there's a 'ME' if you look hard enough. -- 
David Brent (The Office)


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



Re: [PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
> I can see what headers are sent.  What is the url of the image?

I checked using curl -I and found that the correct headers are being sent. I 
found out it was because I didn't have a certain library I needed included 
within the graph script.

Thanks for your help anyway,
Cheers,
Jord
-- 
Jordan Elver
If work was so good, the rich would have kept more of it for themselves. -- 
David Brent (The Office)


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



[PHP] mssql_query

2002-08-19 Thread Jordan Lee

I'm running PHP 4.1.1 on Win2K server with SQL 2K and my connect and select
db statements are fine, but when I use the mssql_query() statement, PHP just
hangs.

I have no idea on whats going on and I've checked the forums, php's site,
and I do have the MSSQL connectivity installed on the server.  The server
PHP runs on is server A (which has the connectivity) and the actual SQL
server is on server B.  I'm running PHP in the CGI mode, just because these
are production servers and I don't know if the API version will knock out
our current usage of ASP.

HELP! PLEASE!  This is driving me nuts!

please send back to email address and this one [EMAIL PROTECTED]

I'll be travelling and I want to be able check up on the status of your
replies.

Thanks,

Jordan,
CMS

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




Re: [PHP] Creating local vars from HTTP Post Array

2003-10-17 Thread Nick JORDAN
> Rather than manually changing each var -

> $foo   to$_POST['foo']

> (there are simply too many)

Why not simply use Find and Replace in a text editor, if you only need to 
change one form?

Nick

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



Re: [PHP] there has to be a better way...

2003-10-22 Thread Nick JORDAN
"jsWalter" <[EMAIL PROTECTED]> wrote on 22/10/2003 09:10:44:

> I need to read (write comes later) from a config file that we used to 
handle
> manually.

> There must be a better way to do this.

Check out the parse_ini_file() function.

Nick

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



RE: [PHP] Session Help (transparent sid's)

2001-01-12 Thread Pickup, Jordan

I got past this horrible mess by breaking the code.

PHP seems to look for  structures so if you break it up:
print("");
or 
print("");
or
$s .= " Hello,
> 
> Can someone please help?
> 
> My ISP has recompiled php with the transparent sid support and now when i
try to access a certain page for the first time (ie. no cookie yet set) then
php is making a right mess of my javascript and html (adding speech marks
and question marks in unwanted places) !
> 
> Is there a way to override this behaviour in the ini file, or even in the
code?
> 
> One of my customers sites is down because of this, and i can find nothing
through searching 8(
> 
> Thanks guys,
> 
> Jamie Burns.
> 



RE: [PHP] I give - Whats wrong

2001-01-24 Thread Pickup, Jordan

Could it be the lack of $?

It should be 
$retrn =. "$VariableName\=$VariableValue";

I do that all the time. The syntax is so close to javascript that when I'm
typing I often leave out the dollar sign. Especially when I have php and
javascript in the same file.


On Wednesday, January 24, 2001 4:35 PM, Karl J. Stubsjoen
[SMTP:[EMAIL PROTECTED]] wrote:
> I've tried and tried to figure out what is wrong with this function, but I
> can't.  Could you please have a look.  This function reconstructs the
> querystring values passed in the querystring:
> 
> function PassOnGetVars() {
>  global $HTTP_GET_VARS;
> #initialize retrn value
> $retrn = "?";
> 
> #loop through each Get Var
>  reset ($HTTP_GET_VARS);
>  while (list($VariableName, $VariableValue) = each ($HTTP_GET_VARS))
>  {
>   retrn =. "$VariableName\=$VariableValue";
>   retrn =. "&";
>  }
> 
> #return the value
>  return($retrn);
> }
> 
> I've tried both versions of =. and .= (struggling to remember which is
> correct.  But this isn't the error, I get the same error regardles of the
.=
> The error I get is line 60 (which is)
> 
>   retrn .= "$VariableName=$VariableValue";
> 
> Thanks!  Karl
> 
> 
> -- 
> 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] DB Abstraction

2001-03-11 Thread Jordan Elver

Hi,
I thought it was about time I started using a db abstraction class. Problem 
is, there are so many out there that I don't which one to start using?

I've heard of ADODB (I think).

Anyone have any suggestions?

Cheers,

Jord


-- 
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] Getting path of script

2001-03-13 Thread Jordan Elver

Hi,
I want to get the path of a script. I know about 
HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like: 

/phpcode/misc/phpinfo.php

But I want to strip off the file name and just have the directory path, like:

/phpcode/misc/

Any ideas?

Jord

-- 
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]





Re: [PHP] Getting path of script

2001-03-13 Thread Jordan Elver

Hi,
Thanks for all the suggestions.

I worked out a fix in the meantime:

$path = strstr(strrev($SCRIPT_FILENAME), '/');
echo strrev($path);

Cheers,
Jord

On Tuesday 13 March 2001 12:35, you wrote:
> check out,
> dirname() // Returns directory name component of path
>
> py
>
> - Original Message -
> From: Hardy Merrill <[EMAIL PROTECTED]>
> To: Jordan Elver <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 13, 2001 5:21 PM
> Subject: Re: [PHP] Getting path of script
>
> > How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"]
> > like this:
> >
> >echo "Starting with SCRIPT_NAME=[" . $HTTP_SERVER_VARS["SCRIPT_NAME"]
> > .
>
> "]";
>
> >if (preg_match("/(\S+)\/\S+$/", $HTTP_SERVER_VARS["SCRIPT_NAME"],
>
> $matches)) {
>
> >   echo "Found $matches[1]";
> >}
> >
> > HTH.
> >
> > --
> > Hardy Merrill
> > Mission Critical Linux, Inc.
> > http://www.missioncriticallinux.com
> >
> > Jordan Elver [[EMAIL PROTECTED]] wrote:
> > > Hi,
> > > I want to get the path of a script. I know about
> > > HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like:
> > >
> > > /phpcode/misc/phpinfo.php
> > >
> > > But I want to strip off the file name and just have the directory path,
>
> like:
> > > /phpcode/misc/
> > >
> > > Any ideas?
> > >
> > > Jord
> > >
> > > --
> > > 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 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 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] Re: [PHP-DB] Sessions in Functions

2001-03-16 Thread Jordan Elver

Hi,
Yep I do. I just figured out that it was because I had session_start() inside 
another function ;-)

Thanks anyway,

Jord

On Friday 16 March 2001 10:43, you wrote:

> > Did you declare $LOGGED_IN as a global variable in your function?
>
> e.g.
>
>   global $LOGGED_IN;
>
>
>   _
>
> ~ Richard Allsebrook ~
> Applications Developer and Webmaster
> Easysoft Limited, Thorp Arch Grange, Thorp Arch, Wetherby, LS23 7BA, UK
> http://www.easysoft.com   -
> http://www.cinema.com 
> "A computer lets you make more mistakes faster than any invention in
> human history - with the possible exceptions of handguns and tequila."
>
>   _
>
>
>
>
>
> -Original Message-
> From: jjelver [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 16, 2001 10:41 AM
> To: php-db
> Cc: jjelver
> Subject: FW: [PHP-DB] Sessions in Functions
>
>
> Hi,
> I have some code which I decided to make into a function. Some of the
> code
> updates a session var which holds the current time. It now does not
> work.
>
>   // update session variable with new time
> session_register("LOGGED_IN['time']");
> $LOGGED_IN['time'] = mktime();
>
> Are there issues that I should be aware of when I use sessions like
> this?
>
> Thanks,
>
> Jord


Content-Type: application/rtf; charset="ISO-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: base64
Content-Description: 



Content-Type: application/ms-tnef; charset="ISO-8859-1"; name="Attachment: 2"
Content-Transfer-Encoding: base64
Content-Description: 


-- 
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] Login System with access levels

2001-03-16 Thread Jordan Elver

Hi,
I've got a db with a username and password in it. I can let people log in, 
like SELECT * FROM table WHERE username = username AND password = password.

But how can I add an access level column so that I can have different levels 
of security. So admin's can read everything, but users can only read certain  
sections. 

How could I add to my db and structure a query? 

Any ideas would be good, 

Cheers,

Jord

-- 
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]




Re: [PHP] Login System with access levels

2001-03-17 Thread Jordan Elver

Thanks for all your help. I've settled for an enum field for the time being. 
I'm going to try something more complex at a later stage.

Thanks again,

Cheers,
Jord

-- 
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] Selected Radio Buttons

2001-04-14 Thread Jordan Elver

Hi,
I think I'm being stupid. Why won't this code work. The $article_active 
variable is showing y when I echo it?


if($article_active == 'y') {
echo"Yes";
} else {
echo"Yes";
}

if($article_active == 'n') {
echo"No";
} else {
echo"No";
}


Thanks,

Jord

-- 
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]




Re: [PHP] Selected Radio Buttons

2001-04-14 Thread Jordan Elver

Hi,
The $article_active comes from a session and I want be able to select the 
radio button (which ever one, yes or no) when the user comes back to the page.

I think thats a bit clearer :-)

Jord

On Saturday 14 April 2001 15:12, you wrote:
> I'm not sure I understand. In the first loop you are seing if
> $article_active equals y. And no where in the code do you set
> $article_active to anything else.
>
> Why would you think $article_active would be anything but "y" or "n"?
>
>
> --
> Plutarck
> Should be working on something...
> but forgot what it was.
>
>
> "Jordan Elver" <[EMAIL PROTECTED]> wrote in message
> 01041415474000.10298@localhost">news:01041415474000.10298@localhost...
>
> > Hi,
> > I think I'm being stupid. Why won't this code work. The $article_active
> > variable is showing y when I echo it?
> >
> >
> > if($article_active == 'y') {
> > echo"Yes";
> > } else {
> > echo"Yes";
> > }
> >
> > if($article_active == 'n') {
> > echo"No";
> > } else {
> > echo"No";
> > }
> >
> >
> > Thanks,
> >
> > Jord
> >
> > --
> > 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 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] Site Structure

2001-04-23 Thread Jordan Elver

Hi,
I have a site structure like:

-> root
---> includes
---> admin
---> images

I'm using headers and footers and they are in the includes directory. My 
pages in the root directory include the files like:

include('includes/header.inc');

Thats woprks fine, but i want to be able ti use the same headers and footers 
in the admin directory but, of course, the paths are going to be wrong.

How can i get around this?

Any ideas,

Jord

-- 
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]




Re: [PHP] Site Structure

2001-04-23 Thread Jordan Elver

Hi,
Thanks for the reply. I can do that but then the images will not be in the 
correct location?

Jordan

On Monday 23 April 2001 15:58, you wrote:
> give the include() function a complete path:
>
> include '/apache/htdocs/include/yourfile.inc.php';
>
>
> -- Ben Cairns - Head Of Technical Operations
> intasept.COM
> Tel: 01332 365333
> Fax: 01332 346010
> E-Mail: [EMAIL PROTECTED]
> Web: http://www.intasept.com
>
> "MAKING sense of
> the INFORMATION
> TECHNOLOGY age
> @ WORK.."

-- 
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] DOCUMENT_ROOT

2001-04-24 Thread Jordan Elver

Hi,
Has any got any idea why $DOCUMENT_ROOT returns /usr/local/htdocs on my home 
machine but it should return /usr/local/htdocs/sitename or where ever I put 
it, but on my production machine it return what it should like 
/usr/local/sitename or whatever?

I'm trying to use it to help include files in different directories (see my 
previous post, site structure). Got any ideas about this?

Cheers,

Jord

-- 
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]




Re: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Jordan Elver

Thanks for the reply,
I'm not using virtual hosts on my local machine but I am on the production 
machine. What should DOCUMENT_ROOT return? I though it returns the directory 
of the current script. So if I had a site in 
/usr/local/apache/htdocs/cha/script.php then I would expect DOCUMENT_ROOT to 
return /usr/local/apache/htdocs/cha/, is that right?

Is it posible to setup a virtual host on localhost?

Cheers,

Jord

On Wednesday 25 April 2001 01:05, you wrote:
> If you are using Apache virtual host, it will set virtual host's document
> root. Is this what you want?
>
> Regards,
> --
> Yasuo Ohgaki
>
>
> "Jordan Elver" <[EMAIL PROTECTED]> wrote in message
> 01042417535900.00987@localhost">news:01042417535900.00987@localhost...
>
> > Hi,
> > Has any got any idea why $DOCUMENT_ROOT returns /usr/local/htdocs on my
> > home machine but it should return /usr/local/htdocs/sitename or where
> > ever I put it, but on my production machine it return what it should like
> > /usr/local/sitename or whatever?
> >
> > I'm trying to use it to help include files in different directories (see
> > my previous post, site structure). Got any ideas about this?
> >
> > Cheers,
> >
> > Jord
> >
> > --
> > 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 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] Retrieving and Printing Categories

2001-04-25 Thread Jordan Elver

Hi,
I've got a load of records that are in different categories.
What is the best way to get all the records or selected records and print 
them in such a way that they are grouped (on the page) in their relevent 
category, like:

Fruit
-> Apples
-> Pears
-> Bananas

Vegetables
-> Carrots
-> Cabbages

etc, etc.

Sometime my categories are ina dfferent table, don't know if this matters?
How can I do this?

TIA,

Jord

-- 
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] Checking query suceeded

2001-04-30 Thread Jordan Elver

Hi,
If I'm doing more than one query on a page what is the best way to check if 
they all succeeded with out using transactions?

TIA,

Jord

-- 
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] Urgent: PHP4 security (ISP setup)

2001-05-01 Thread Sam Jordan

Hi all

Sorry to bother you, but this problem is getting really urgent
for us (ISP). We are trying to setup PHP in a secure way but without
restricting the users too much, and up to now we didn't come to
an acceptable solution.

We are running PHP 4.0.3pl1 with Apache 1.3.12 on a Linux/Suse6.4
platform, apache and php were installed directly from RPM archives,
we didn't compile them ourselves.

PHP is running as an apache module, and safe mode is turned on.
Our main problem is, that no PHP script is able to write any file
in the default setup, because safe mode doesn't allow PHP scripts
to access any file which isn't owned by the same user the script
also belongs to.

Chowning the target directory to the apache user does not solve the
problem, the write operation works but the written file can't be
read anymore, because it has a different uid than all other PHP
scripts, which were uploaded by the FTP user.

Chowning everything to the webuser is no option, because we can't
afford to do this for every single user wanting to write files
additionally as soon as the FTP user updates his scripts the
permissions are set to the FTP user again.

Running PHP as a CGI binary also doesn't seem to be a good solution,
as far as I can see it isn't possible to pass URL parameters in
this setup, and this feature is already used.

Disabling safe mode seems to be a very insecure option, because
as far as I remember this would allow an FTP user to upload an
executable and run it through PHP and thus access any file on
the web server which is world-readable (please correct me if I'm
wrong).

What I really love to see would be a safe mode, which has the
restriction of not allowing the PHP scripts to run executables
(except in a specified directory) but without having the
restriction of not beeing able to access any file not belonging
to the FTP user (with the open_basedir variable, file access can
anyway be restricted to the FTP users home directory). Is there
any way to achieve this?

It would also be nice if apache was able to run the PHP scripts
with the userid of the FTP user, when PHP is configured as
apache module.

Can anyone tell me how to setup PHP in a secure way without
getting these restrictions concerning file writing? Thank you
very much for your feedback, and please CC your answer to
[EMAIL PROTECTED]!

Sam Jordan

-- 
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]




Re: [PHP] Checking query suceeded

2001-05-02 Thread Jordan Elver

Hi Richard,
Thanks for the advise. I was just wondering what other people do.
I don't think I'll worry about it too much ;-)

Cheers,

Jord

On Wednesday 02 May 2001  3:49 am, you wrote:
> > If I'm doing more than one query on a page what is the best way to check
>
> if
>
> > they all succeeded with out using transactions?
>
> You can check each query as it executes, and (perhaps) have your program
> logic do something intelligent in the case of individual failures.
>
> Another possbility is to do all the queries on some temporary table, and
> then do one "big" query that inserts/updates from the temp table to the
> "real" table...
>
> In general, though, once you get a good connection, and if your SQL is
> valid, queries don't fail very often...  Not something you can rely on for
> mission-critical usage, but you may be over-worried about an infrequent
> event.  Perhaps you could just code it to dump everything to an email to
> yourself if it ever pukes, so you can fix it by hand.
>
> (Kinda dangerous since it could flood your email box if the db goes down
> completely and you can't get to it to fix it...)
>
> --
> WARNING [EMAIL PROTECTED] address is not working -- Use [EMAIL PROTECTED]
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm

-- 
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] Printing out usernames and logins

2001-05-14 Thread Jordan Elver

Hi,
I'm trying to print out a list of usernames and the times they logged in. 

I want to print it out like:

joe
fred
frank

Then when you click on one of the names it show just there login times, like 
this, so if I click on fred it prints out:

joe
fred
- 
- 
- 
frank

But it doesn't continue printing out the rest of the usernames after it's 
finished printing freds logins.

Any ideas would be appreciated.

The code seems to have something to do with the second query, I think :-( 

The code I'm using is below.

Thanks,

Jord

db_connect();
$sql = "SELECT id, username FROM users";
$result = @mysql_query($sql);

if(@mysql_num_rows($result) > 0) {

echo'This is a list of Members who have Logged In to their account with 
times and dates:';

while(list($id, $username) = mysql_fetch_array($result)) {

echo"$username\n";

if($username == $user) {

$sql = "SELECT UNIX_TIMESTAMP(time) AS time FROM user_logins 
WHERE user_id = $id ORDER BY time DESC";
$result = @mysql_query($sql);

while(list($time) = mysql_fetch_array($result)) {
echo date('h:i a l d F', $time)."\n";
}
}
}

} else {
echo error('No one has Logged In yet!');
}

-- 
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] Re: [PHP-DB] Printing out usernames and logins

2001-05-14 Thread Jordan Elver

Doh, stupid me. Thanks very much for your help. Your a life saver.

Cheers,

Jord


On Monday 14 May 2001  8:49 am, you wrote:
> ¥es, U R overwriting Ur result-set from the 1st qry.
>
> Store instead the 1st result into an array and iterate
> it then, sending your second select. U can also use 2
> connections, but ... ?
>
> Greetinx,
>   Mike
>
> Michael Rudel
> - Web-Development, Systemadministration -
> ___
>
> Suchtreffer AG
> Bleicherstraße 20
> D-78467 Konstanz
> Germany
> fon: +49-(0)7531-89207-17
> fax: +49-(0)7531-89207-13
> e-mail: mailto:[EMAIL PROTECTED]
> internet: http://www.suchtreffer.de
> ___
>
> > -Original Message-
> > From: Jordan Elver [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 14, 2001 7:35 PM
> > To: PHP DB List; PHP General List
> > Subject: [PHP-DB] Printing out usernames and logins
> >
> >
> > Hi,
> > I'm trying to print out a list of usernames and the times
> > they logged in.
> >
> > I want to print it out like:
> >
> > joe
> > fred
> > frank
> >
> > Then when you click on one of the names it show just there
> > login times, like
> > this, so if I click on fred it prints out:
> >
> > joe
> > fred
> > - 
> > - 
> > - 
> > frank
> >
> > But it doesn't continue printing out the rest of the
> > usernames after it's
> > finished printing freds logins.
> >
> > Any ideas would be appreciated.
> >
> > The code seems to have something to do with the second query,
> > I think
> >
> >
> > The code I'm using is below.
> >
> > Thanks,
> >
> > Jord
> >
> > db_connect();
> > $sql = "SELECT id, username FROM users";
> > $result = @mysql_query($sql);
> >
> > if(@mysql_num_rows($result) > 0) {
> >
> > echo'This is a list of Members who have Logged In to
> > their account with
> > times and dates:';
> >
> > while(list($id, $username) = mysql_fetch_array($result)) {
> >
> > echo" > HREF=\"$PHP_SELF?user=$username&id=$id\">$username\n";
> >
> > if($username == $user) {
> >
> > $sql = "SELECT UNIX_TIMESTAMP(time) AS time FROM
> > user_logins
> > WHERE user_id = $id ORDER BY time DESC";
> > $result = @mysql_query($sql);
> >
> > while(list($time) = mysql_fetch_array($result)) {
> > echo date('h:i a l d F', $time)."\n";
> > }
> > }
> > }
> >
> > } else {
> > echo error('No one has Logged In yet!');
> > }
> >
> > --
> > PHP Database 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 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] Testing if variable was set

2001-05-17 Thread Jordan Elver

Hi,
If I want to test if a variable exists (or has been passed) then I just do:

if($var) {
// variable is here
}

But I've noticed that a lot of people do:

if(isset($var)) {
// variable is here
} 

What's the difference and which is the best way?

TIA,

Jord

-- 
Jordan Elver
while (!asleep()) sheep++;

-- 
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] Mail Sent Date

2002-02-08 Thread Pickup, Jordan

We are in the -0700 time zone but whenever I use PHP to send a message it
sends it from +0700 making the message appear to have been sent 14hours
earlier than it was.

 

I can add my own Date header to the mail function with the correct date/time
zone but that means I have to modify all my scripts.

 

Is this a known bug? Have I just made a stupid mistake? I did check to make
sure my server was in the right time zone. :-)

 

Does anyone know a solution?

 

Thanks.

 

Jordan




RE: [PHP] Mail Sent Date - more info

2002-02-08 Thread Pickup, Jordan

I just checked the Date function and when you use the 'O' or 'r':
   O - Difference to Greenwich time in hours; i.e. "+0200" 
   r - RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200"
it also gives the wrong time zone.

Is there anyway to tell PHP that it is wrong? Is this just a bug in PHP
4.0.4?

Jordan 


-Original Message-
From: Pickup, Jordan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 08, 2002 1:40 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Mail Sent Date

We are in the -0700 time zone but whenever I use PHP to send a message it
sends it from +0700 making the message appear to have been sent 14hours
earlier than it was.

 

I can add my own Date header to the mail function with the correct date/time
zone but that means I have to modify all my scripts.

 

Is this a known bug? Have I just made a stupid mistake? I did check to make
sure my server was in the right time zone. :-)

 

Does anyone know a solution?

 

Thanks.

 

Jordan


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




[PHP] Urgent: Apache sometimes displays PHP source code

2002-03-21 Thread Sam Jordan

Hello all

I'm working for an ISP and some weeks ago we noticed a problem
with PHP we never had before. Since then quite often the PHP
code is not interpreted, but displayed as plain text in the
browser window. The behavior is not reproduceable and not
predictable.

We are running out of ideas and the problem is becoming a
pretty urgent one, because our customer's PHP hostings
are affected, too.

Again, everything was working fine until some weeks ago, so
there shouldn't be any simple configuration error. It sounds
pretty much like a faulty behaviour of either apache or PHP
under certain circumstances, which we don't know.

We are running apache 1.3.19 and PHP 4.0.4, rpm-installed
from the SUSE 7.1 Linux distribution.

We would be very glad if anyone in this list could either
help us directly or point us to more resources, which might
be helpful.

Please cc the answer to [EMAIL PROTECTED] Thank you very much
for reading!

Have a nice day

Sam Jordan, Switzerland


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




[PHP] Session and header()

2001-11-21 Thread Jordan Elver

Hi,
I've got a login script that uses sessions. To end a login session, I simply 
delete the session variables and do a session_destroy() which seems to logout 
everyone ok. The problem comes when I do a header() call afterwards to 
redirect after logging out.

It seems the header() call stops my logging out working correctly?! Does 
anyone have an idea of why header would interfere with seesion functions?

Thank,
Jordan
-- 
Jordan Elver
http://www.jordanelver.co.uk
"testing? What's that? If it compiles, it is good, if it boots up it is 
perfect." --- Linus Torvalds

-- 
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] HTTP_REFERER

2001-11-23 Thread Jordan Elver

Hi,
I'm writing a 404 handler and in order to report the item that was requested 
I was trying to get the value of HTTP_REFERER. But, it does seem to get set. 
Does anyone know how to find thi value? Is there a reason why it would not 
get set?

TIA,

Jord
-- 
Jordan Elver
Web Developer
http://www.theinternetone.co.uk
Carpe Aptenodytes! (Seize the Penguins!)

-- 
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]




Re: [PHP] HTTP_REFERER

2001-11-23 Thread Jordan Elver

On Friday 23 November 2001 13:39, you wrote:
> Are you using it as
>
> $HTTP_SERVER_VARS["REQUEST_URI"]
>
> or
>
> $REQUEST_URI
>
> ?

Well, I think I'm buggered then because i just tried to use both and they 
both report the same value :-(

Back to the drawing board.

> I had the same problem using the latter. The former displays properly.
> Other than that I can't remember if I changed anything else
>
> M:

-- 
Jordan Elver
Web Developer
http://www.theinternetone.co.uk
Unix is not a "A-ha" experience, it is more of a "holy-shit" experience. --- 
Colin McFadyen in alt.folklore.computers

-- 
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]




Re: [PHP] HTTP_REFERER

2001-11-23 Thread Jordan Elver

Hi,
When I use HTTP_REFERER it gives me the name of the php script which is 
handling the 404's?!

Should that happen?

Jord

On Friday 23 November 2001 11:41, you wrote:
> > Hi,
> > I'm writing a 404 handler and in order to report the item that
> > was requested
> > I was trying to get the value of HTTP_REFERER. But, it does seem
> > to get set.
> > Does anyone know how to find thi value? Is there a reason why it
> > would not
> > get set?
>
> Hi
>
> I think you're looking for this
>
> $HTTP_SERVER_VARS["REQUEST_URI"]
>
> M:

-- 
Jordan Elver
Web Developer
http://www.theinternetone.co.uk
testing? What's that? If it compiles, it is good, if it boots up it is 
perfect. --- Linus Torvalds

-- 
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] Checking Checkboxes using Arrays

2001-12-06 Thread Jordan Elver

Hi,
This is doing my head in.
I'm printing out a lot of countires from a db and i want to select the 
countries (check their checkboxes) if they are equal to a particular country 
variable I have set or if they appear in an array. My code is:

$european_union = array('24', '17', '1', '58', '74', '80', 
'73', '83', '101', '103', '119', '144', '164', '186', '193', '212');
print_r($european_union);

if(mysql_num_rows($europe_result) > 0) {

while(list($id, $country) = 
mysql_fetch_array($europe_result)) {


if(($id == $register_country_of_origin) || 
(in_array($id, $european_union))) {

echo"\t $country\n";

} else {

echo"\t $country\n";

}
}

Can anyone give me some tips because if i select a country which is not in 
the array, it still checks all the boxes of the countires in the array?!

I hope this is making sense, I thikn this is what I want ;-)

Thanks,

Jord
-- 
Jordan Elver
Web Developer
http://www.theinternetone.co.uk
> How do I read MIME files??? Quietly, while pretending to be trapped in an 
invisible box. :)

-- 
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]




Re: [PHP] Query - Grouping Results

2001-03-19 Thread Jordan Elver

Doesn't seem to work, how would I print that out with PHP?

On Monday 19 March 2001 13:52, you wrote:
> how about something like
>   select distinct
> name,
> date_format(time, "%W %D %M %Y") as login
>   from
>  users, user_logins
>   where
>  user_logins.user_id = users.id
>   order by name,time
>
>
> -Original Message-
> From: Jordan Elver [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 19, 2001 1:43 PM
> To: PHP Database Mailing List; PHP General Mailing List
> Subject: [PHP] Query - Grouping Results
>
>
> Hi,
> I've got a table like:
>
> iduser_id ip  time
> 1 2   127.0.0.1   20010316105018
>
> Etc, etc.
>
> I do a join on the this table and the users table to get the coresponding
> username to user_id like this:
>
> SELECT users.name AS name, user_logins.ip AS ip,
> UNIX_TIMESTAMP(user_logins.time) AS time FROM users, user_logins WHERE
> user_logins.user_id = users.id ORDER BY time ASC
>
> How can I display the results grouped by username?
>
> So, I want to be able to display:
>
> Logins for John
>
> Thursday 10th
> Friday 12th
> Monday 23rd
>
> Logins for Bob
>
> Monday 1st
> Tuesday 2nd
> Saturday 31st
>
> Thanks for any help,
>
> Jord

-- 
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] Query - Grouping Results

2001-03-19 Thread Jordan Elver

Hi,
I've got a table like:

id  user_id ip  time
1   2   127.0.0.1   20010316105018

Etc, etc.

I do a join on the this table and the users table to get the coresponding 
username to user_id like this:

SELECT users.name AS name, user_logins.ip AS ip, 
UNIX_TIMESTAMP(user_logins.time) AS time FROM users, user_logins WHERE 
user_logins.user_id = users.id ORDER BY time ASC

How can I display the results grouped by username?

So, I want to be able to display:

Logins for John

Thursday 10th
Friday 12th
Monday 23rd

Logins for Bob

Monday 1st
Tuesday 2nd
Saturday 31st

Thanks for any help,

Jord

-- 
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] Best way to check if a query succeeded

2001-03-29 Thread Jordan Elver

Hi,
i was just wondering what you guys do to check if a wquery suceeded or not?
I know about mysql_num_rows() and mysql_affected_rows(), just wondered what 
you guys do?

I normally do something like:

$sql = "SELECT something FROM table";
$result = mysql_query($sql);
if(@mysql_num_rows($result) > 0) {
echo'Query Suceeded';
} else {
echo'Query failed';
}

Cheers,

Jord

-- 
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]




Re: [PHP] Passing Arrays

2001-04-05 Thread Jordan Elver

Cheers, that works great. I tried using urlencode but that doens't work like 
it should in the manual.

Thanks,

Jord

On Thursday 05 April 2001 14:41, you wrote:
> You have to do this:
>
> $myarray = rawurlencode(serialize($myarray));
>
> And then this on your other page:
>
> $myarray = unserialize(rawurldecode($myarray));
>
> You should consider using sessions instead.
>
>
> Jordan Elver <[EMAIL PROTECTED]> wrote:
> Hi,
> How can I pass an array between two pages. I've tried using serialize and
> unserialize. But it doen't return an array. When I use gettype() on it, it
> say's that the typ-e is boolean?
>
> Any ideas?
>
> Cheers,
>
> Jord

-- 
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] Re: [PHP-DB] mysql_result()

2001-04-05 Thread Jordan Elver

Thanks for everyones help with this one, all suggestions appreciated.

Cheers,

Jord

On Wednesday 04 April 2001 17:06, you wrote:
> Jordan,
>
> If you know your result is going to product one row, try using:
>
> $row=mysql_fetch_array($result, MSQL_ASSOC);
> // returns an assoc array where the field names are keys, field value is
> value
>
> $id=row[id];
> $name=row[name];
> etc.
>
> Best regards,
> Andrew
> --
> Andrew Hill - OpenLink Software
> Director Technology Evangelism
> eBusiness Infrastructure Technology
> http://www.openlinksw.com
>
>  -Original Message-
>
> > From: Jordan Elver [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 04, 2001 11:46 AM
> > To: PHP Database Mailing List; PHP General Mailing List
> > Subject: [PHP-DB] mysql_result()
> >
> >
> > Hi,
> > If I knnow that a query will only retrun one row, can I do thiss (below)
> > rather than using a while loop for one record?
> >
> > $id = @mysql_result($result, 0, 'id');
> > $name = @mysql_result($result, 0, 'name');
> > $email = @mysql_result($result, 0, 'email');
> > $address1 = @mysql_result($result, 0, 'address1');
> > $address2 = @mysql_result($result, 0, 'address2');
> > $town_city = @mysql_result($result, 0, 'town_city');
> > $postcode = @mysql_result($result, 0, 'postcode');
> >
> > Cheers,
> >
> > Jord
> >
> > --
> > PHP Database 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 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] mysql_result()

2001-04-04 Thread Jordan Elver

Hi,
If I knnow that a query will only retrun one row, can I do thiss (below) 
rather than using a while loop for one record?

$id = @mysql_result($result, 0, 'id');
$name = @mysql_result($result, 0, 'name');
$email = @mysql_result($result, 0, 'email');
$address1 = @mysql_result($result, 0, 'address1');
$address2 = @mysql_result($result, 0, 'address2');
$town_city = @mysql_result($result, 0, 'town_city');
$postcode = @mysql_result($result, 0, 'postcode');

Cheers,

Jord

-- 
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] Passing Arrays

2001-04-05 Thread Jordan Elver

Hi,
How can I pass an array between two pages. I've tried using serialize and 
unserialize. But it doen't return an array. When I use gettype() on it, it 
say's that the typ-e is boolean?

Any ideas?

Cheers,

Jord

-- 
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] Selecting Dates

2001-04-08 Thread Jordan Elver

Hi,
I'm trying to select records based on dates.
I have a table with dates in the format 2001-04-08 and I'm using the query:

SELECT name, description, date_time FROM events WHERE YEAR(date_time) = 2001 
AND MONTH(date_time) = 04 AND DAYOFMONTH(date_time) = 08

But it doesn't yield any records? I don't really understand why? It seems to 
be the last bit 'DAYOFMONTH(date_time) = 08' which cause a problem because if 
I leave it out of the query, it selects all records for a particular month in 
a particular year as expected.

Cheers,

Jord

-- 
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]




Re: [PHP] Re: [PHP-DB] Selecting Dates

2001-04-08 Thread Jordan Elver

That's what I thought but that doesn't work either?

On Sunday 08 April 2001 10:13, you wrote:
> >I'm trying to select records based on dates.
> >I have a table with dates in the format 2001-04-08 and I'm using the
> > query:
> >
> >SELECT name, description, date_time FROM events WHERE YEAR(date_time) =
> > 2001 AND MONTH(date_time) = 04 AND DAYOFMONTH(date_time) = 08
>
> WHERE field_holding_date="2001-04-08" should work.
>
> Bye,
>
>
> B.

-- 
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] Updating Sessions

2001-04-13 Thread Jordan Elver

Hi,
I've got a multi page form and I'm using sessions to keep track of all the 
variables between the pages.  SO I fill in page one of the form and add the 
variables to a session. Then I can go on completeing the rest etc. 

My problem is that I want my users to be able to go back to the pages they 
have already visited and edit the data (in the form) and then undate the 
variables in the session. But I can't update the session, so I thought if I 
called session_unregister and then session_register again then that would 
work, but it doesn't? 

How can I get around this?

Thanks for any help,

Jord

-- 
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] Splitting Text

2001-08-06 Thread Jordan Elver

Hi, 
Can anyone give some pointers for my problem.
I want to pull articles out of a db and then show the first x number of words 
with a read more link to the rest of the article. 

Could someone point me in the right direction. I've seen a code snippet for 
this, but now I can't find it :-(

TIA,

Jord

-- 
Jordan Elver
http://www.jordanelver.co.uk

Oops, my brain just hit a bad sector!

-- 
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]




Re: [PHP] Splitting Text

2001-08-07 Thread Jordan Elver

Thanks for that. I ended up using your method as using the LEFT function in a 
SELECT only grabs characters.

Cheers,

Jord

On Monday 06 August 2001 17:37, you wrote:
> You can do this several ways... Either use explode():
> http://www.php.net/manual/en/function.explode.php
>
> ...to split the retrieved data by a space " " as the delimeter, then use
> a for() loop to print X number of words... E.g.:
>
> $array = explode(" ", $db_string);
>
> for($i = 0; $i < 25; $i++)
>   echo $array[$i];
>
> (That will print the first 25 words...)
>
>
> Or, another way to do it is to use strtok() to tokenize the string...
> http://www.php.net/manual/en/function.strtok.php
>
> The manual has a good example of tokenizing a string into individual
> words...
>
>
> -Original Message-
> From: Jordan Elver [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 06, 2001 5:20 PM
> To: PHP General Mailing List
> Subject: [PHP] Splitting Text
>
>
> Hi,
> Can anyone give some pointers for my problem.
> I want to pull articles out of a db and then show the first x number of
> words
> with a read more link to the rest of the article.
>
> Could someone point me in the right direction. I've seen a code snippet
> for
> this, but now I can't find it :-(
>
> TIA,
>
> Jord

-- 
Jordan Elver
Web Developer
The InternetOne UK Ltd

-- 
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] A Separate Process?

2001-08-27 Thread Pickup, Jordan

Is there any way to make a separate process in PHP?

I do real-time stats collection on my site and one of the things I collect
is the domain of the user (to get their country).

Sometimes getting the domain name takes a few seconds to come back and the
user has to wait for that time before their page displays.

Is there any way to split of a separate process - that doesn't end when the
current process ends - to do the stats collecting so that the user doesn't
have to wait?

Or, if not, is there some way to tell the browser that it has all the data
(so that it will finish rendering the page and run my javascript) and the
script can continue running and do the ns lookup?

I'm sorry if this question has been asked and answered before but I couldn't
find an answer anywhere else... and the archive for this list seems to be
down.

Jordan

-- 
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] Statement Confusion

2001-09-06 Thread Jordan Elver

Hi,
Could any one explain what this statemnt means?

$i = (!$i)?"0":$i;

Thanks,

Jord

-- 
Jordan Elver
Web Developer
The InternetOne UK Ltd

-- 
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]




Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Jordan Elver

Hi,
If you put ob_start(); at the top of the page you can use header() anywhere 
you want.

HTH,

Jord

On Monday 10 September 2001 10:18, you wrote:
> Andrew,
>
> I am in a similar position witha Lasso site, which I am considering
> php-ing. I need to do conditional redirects.
>
> George P, Edinburgh
>
> - Original Message -
> From: "Andrew Penniman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 10, 2001 3:37 PM
> Subject: [PHP] PHP Redirect in the middle of code?
>
> > I am trying to figure out how to use PHP to redirect the user to a new
> > location *after* processing and most likely outputting a bunch of code.
> > Because this redirection would happen late in the game I can't use
> > header("Location: ".$redirect_to);
> >
> > I come from a ColdFusion background and am used to CFAS' 
> > tag.  Does PHP have an equivalent function?
> >
> > I am really hoping not to use JavaScript, I want this redirection to
> > happen at the server and not the client.
> >
> > --
> > 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]
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com

-- 
Jordan Elver
Web Developer
The InternetOne UK Ltd

-- 
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] Merging Arrays

2001-09-21 Thread Jordan Elver

Hi,
I've got to different files of words. One on each line.
What would be the best way to combine both into one file alphabetically?
I thought about:

$file1 = file('file1.txt');
$file2 = file('file2.txt');
$both = array_merge($file1, $file2);

print_r($both);

Any advice?

Cheers,

Jord
-- 
Jordan Elver
Web Developer
The InternetOne UK Ltd

-- 
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] Accessing lots of variables

2001-09-25 Thread Jordan Elver

Hi,
I'm feeling a bit stupid. I have a,load of variables coming from a MySQL 
connection using list(). The variables are link1 to link 35 inclusive.

How can I access each of these variables, check if they are empty, then add 
them to an array. I don't know how to access then inside a for loop. Can I 
use $link and append the number on the end somehow?

Any help please,

Jord

-- 
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] PHP Chat

2001-10-01 Thread Jordan Elver

Hi,
Can anyone recommend a good, configurable php chat?
I've tried phpMyChat which seems pretty good.

Any ideas?

Cheers,

Jord
-- 
Jordan Elver
Web Developer
The InternetOne UK Ltd

-- 
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] Fwd: Entries no longer appear in search

2007-01-28 Thread Kevin Jordan

This was originally sent to the OpenLDAP list, but it was rejected
because I mentioned PHP and phpLDAPadmin and said I should send it to
the appropriate lists there.

-- Forwarded message --
From: Kevin Jordan <[EMAIL PROTECTED]>
Date: Jan 27, 2007 4:24 PM
Subject: Entries no longer appear in search
To: openldap-software@openldap.org


I'm having the random problem of an OpenLDAPperson entry just no
longer showing up in the search results, causing havoc on my logins.
I used phpLDAPadmin to administer LDAP and I also use PHP wrappers
(they store all the information and then use the ldap functions to
modify the entry) to change information on my pages.  A simple move
and then move back seems to work to fix it, so they aren't completely
gone, but they just don't show up in the search.  Has anyone else
experienced this problem?

--
Kevin Jordan


--
Kevin Jordan

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



[PHP] Fwd: Entries no longer appear in search

2007-01-29 Thread Kevin Jordan

-- Forwarded message --
From: Kevin Jordan <[EMAIL PROTECTED]>
Date: Jan 28, 2007 6:21 PM
Subject: Fwd: Entries no longer appear in search
To: php-general@lists.php.net, [EMAIL PROTECTED]


This was originally sent to the OpenLDAP list, but it was rejected
because I mentioned PHP and phpLDAPadmin and said I should send it to
the appropriate lists there.

-- Forwarded message --
From: Kevin Jordan <[EMAIL PROTECTED]>
Date: Jan 27, 2007 4:24 PM
Subject: Entries no longer appear in search
To: openldap-software@openldap.org


I'm having the random problem of an OpenLDAPperson entry just no
longer showing up in the search results, causing havoc on my logins.
I used phpLDAPadmin to administer LDAP and I also use PHP wrappers
(they store all the information and then use the ldap functions to
modify the entry) to change information on my pages.  A simple move
and then move back seems to work to fix it, so they aren't completely
gone, but they just don't show up in the search.  Has anyone else
experienced this problem?

--
Kevin Jordan


--
Kevin Jordan


--
Kevin Jordan

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



Fwd: [PHP] Fwd: Entries no longer appear in search

2007-01-30 Thread Kevin Jordan

Damn, wish replyto was set, I keep doing that.

-- Forwarded message --
From: Kevin Jordan <[EMAIL PROTECTED]>
Date: Jan 30, 2007 4:07 PM
Subject: Re: [PHP] Fwd: Entries no longer appear in search
To: Chris <[EMAIL PROTECTED]>


Sorry, wasn't sure it went through the first time.

On 1/29/07, Chris <[EMAIL PROTECTED]> wrote:

No need to keep posting the same question over and over again.

If anyone has suggestions, they will reply.

Kevin Jordan wrote:
> -- Forwarded message --
> From: Kevin Jordan <[EMAIL PROTECTED]>
> Date: Jan 28, 2007 6:21 PM
> Subject: Fwd: Entries no longer appear in search
> To: php-general@lists.php.net, [EMAIL PROTECTED]
>
>
> This was originally sent to the OpenLDAP list, but it was rejected
> because I mentioned PHP and phpLDAPadmin and said I should send it to
> the appropriate lists there.
>
> -- Forwarded message --
> From: Kevin Jordan <[EMAIL PROTECTED]>
> Date: Jan 27, 2007 4:24 PM
> Subject: Entries no longer appear in search
> To: openldap-software@openldap.org
>
>
> I'm having the random problem of an OpenLDAPperson entry just no
> longer showing up in the search results, causing havoc on my logins.
> I used phpLDAPadmin to administer LDAP and I also use PHP wrappers
> (they store all the information and then use the ldap functions to
> modify the entry) to change information on my pages.  A simple move
> and then move back seems to work to fix it, so they aren't completely
> gone, but they just don't show up in the search.  Has anyone else
> experienced this problem?
>
> --
> Kevin Jordan
>
>
> --
> Kevin Jordan
>
>


--
Postgresql & php tutorials
http://www.designmagick.com/




--
Kevin Jordan


--
Kevin Jordan

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



Re: [PHP] PHP equivalent to Perl $0

2007-01-31 Thread Kevin Jordan

On 1/31/07, Richard Luckhurst <[EMAIL PROTECTED]> wrote:

Hi

In Perl there is the predefined $0 which contains the name of the file
containing the Perl script being executed. Is there an equivalent in PHP?

I am working on converting a Listener script from Perl to PHP and at one point
when the script forks it has a line

$0 = "Listener is accepting connections on Port $port";

When this Perl script is running and I do a ps I see a process ID with the
program being

Listener is accepting connections on Port $port

instead of the actual name of the Perl script.

Is such a thing possible in PHP? If so how? I have been Google searching for a
while and can not see one way or the other if it is possible.



Regards,
Richard Luckhurst
Product Development
Exodus Systems - Sydney, Australia.

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



__FILE__ contains the full path and filename of the file on the
filesystem.  There are several $_SERVER indices that give something
you can get the filename/path from as well.  See
http://us2.php.net/manual/en/reserved.variables.php

--
Kevin Jordan

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



[PHP] PHP Security!!! www.armorize.com

2007-03-29 Thread Jordan Forssman


Hi,


I would like to introduce a new tool for verifying your PHP application's 
security. Our product uses the most advanced static source code analysis for 
identifying vulnerabilities in PHP code. Right now we are working with our 
version 1.17 which has improved functionality, speed and coverage. We have 
an under 5% false positive rate which drops to under 1% with a little 
configuration. Our false negatives are negligible!


Our language parser and transformer creates an abstract model of the code 
through which it runs a series of program path, inter-procedural and data 
flow analyses after which it can tell you not only what line of code the 
vulnerability lies, but also highlights the tainted variable that introduced 
the bug and how it propagates throught the code to become a vulnerability. 
This provides an end to end illustration of the vulnerability, educates you 
regarding the dymanics of security problems in PHP and actually provides 
suggetions of how you should go abuout fixing the code.


The best part is that becuase it is static analysis, the application does 
not need to be up and running, so you can run the scans during development.


We are launching our Security-as-a-Service model which represents the 
hosting of our core technology at our R&D center, all you need to do is 
log-on via your Web browser and you can verify your application's security. 
Today we are introducing the SaaS model and are providing it on a monthly 
subscription basis. Purchase for one month and fix your entire code base, 
when you need to modify your application again, it will only cost you that 
month's subscription. Our introductory price is very low for this kind of 
tool, because there is no tool as advanced as this. But you need not take my 
word for it, write to [EMAIL PROTECTED] to apply for a free 2-day trial 
account. Please inlcude a valid business e-mail, your name, and phone number 
(optional).


The first 50 subscribers will recieve a full month's subscription at 50% 
discount. The first 25 will recieve 2 months at 50% discount.


Check out our website at www.armorize.com

Jordan

_
Share folders without harming wildlife! 
http://www.communicationevolved.com/en-za/


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



Re: [PHP] advice on sql injection/XSS prevention

2007-04-06 Thread Jordan Forssman
Actually there is a tool available for automated validation of PHP code. 
It's called static source code analysis which, very simply stated, acts like 
a spell checker for custom developed code. This tool is very accurate at 
finding, especially SQL injection and XSS, and can be run directly against 
the source code so it doesn't need the application to be up and running.


This company

http://www.armorize.com/services/securityasaservice?utm_source=jordan&utm_medium=post

is offering this kind of tool delivered as a service directly over the Web 
which means you can either request that those authorized people verify thier 
code security before posting, or you can do it after they have posted. The 
tool shows the vulnerability as well as the tainted origin that introduces 
it and provides fix suggestions, etc so everything can be fixed in a very 
short time with very little effort -- no installation required.



From: Zoltán Németh <[EMAIL PROTECTED]>
To: Bing Du <[EMAIL PROTECTED]>
CC: php-general@lists.php.net
Subject: Re: [PHP] advice on sql injection/XSS prevention
Date: Thu, 05 Apr 2007 16:23:23 +0200

I think it is generally a Bad Idea to allow users to submit code into
your system...
you would be better off if you would provide some pseudo-coding
possibilities which would allow them to insert certain functionalities
into their content - with you providing the real code running behind and
replacing the pseudo-codes with the process results

greets
Zoltán Németh

2007. 04. 5, csütörtök keltezéssel 09.17-kor Bing Du ezt írta:
> Hi,
>
> I'm not an experienced PHP developer.  We're hosting a content 
management
> system that allow authorized people to add PHP contents.  Their PHP 
coding

> levels varies.  Some are very security sensitive, but some are not.  I
> want to know if PHP has any ready-to-use funtion to validate form input 
to
> help prevent SQL injection/XSS?  So each programmer doesn't have to 
write

> their own form validation code.  I'd appreciate any advice or pointers.
>
> Thanks in advance,
>
> Bing
>

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



_
Message offline contacts without any fire risk! 
http://www.communicationevolved.com/en-za/


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



[PHP] Copy documents for another site.

2010-07-19 Thread Jordan Jovanov

Hello

I create one site like document menage system and nide to take some date 
information from another site. The problem is a don't have access to 
date base. The site from who I need to take infomations use .htdacces 
but I have user and password for enter to site and i look the 
information. I write one php scripte but is not work.

Do you somebody know how can I copy inflammations
from this site to mine (from this site to my database)

Thanks a lot and this is a php scirpte

 array(
'header'  => "Authorization: Basic " . 
base64_encode("$username:$password")

)
));
$data = file_get_contents($url, false, $context);


echo $data;
echo file_get_contents("http://$username:$passw...@site/meetings/";);




?>

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



[PHP] Video lessons

2010-07-22 Thread Jordan Jovanov

Hello

Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS?

Thanks a lot.

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



[PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread Jordan Jovanov

Hello Everybody

I start to write PHP script and all veritable a defined without some 
rules. I want to ask to you somebody know how is correct do different 
some variable.

 Like from next three variable who is correct:
$firstname  $FirstName $firstName $first_name etc.

I know that from this variable can work all, but i want to know how is 
use in company.
Do you have some standard for defined the variable in program language? 
(like ISO9001, ISO14001)


Best Regard,
Jordan Jovanov

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



Re: [PHP] Video lessons

2010-07-27 Thread Jordan Jovanov

On 24/07/2010 02:14, David Hutto wrote:

On Fri, Jul 23, 2010 at 8:13 PM, David Hutto  wrote:

On Fri, Jul 23, 2010 at 2:35 PM, Dan Joseph  wrote:

On Thu, Jul 22, 2010 at 10:04 AM, Jordan Jovanovwrote:


Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS?



I'm not sure exactly what you're meaning there, but check out www.lynda.com

--
-Dan Joseph

http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month.
Promo Code "NEWTHINGS" for 10% off initial order -- Reseller Plans also
available!

http://www.facebook.com/canishosting
http://www.facebook.com/originalpoetry
http://www.facebook.com/teaserleague<http://www.facebook.com/apps/application.php?id=135491833139465>


Have you tried searching at youtube, or google. I'd suggest 'php video
tutorials lessons' as the search term without out even trying it first
myself.


I you want, you can copy and paste my suggestion into the search box,
that way it eliminates any excess activity on your part.


 Thankw for suggestions. The site www.lynda.com is very good, this is a 
realy I want, and of course a forgot for youtube.com


Best regard
Jordan

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



[PHP] Text editor

2010-07-27 Thread Jordan Jovanov

Hello All

I need me to add form for comment to one web site, but i want to use 
some taxt edtior. Simething similar of this editor 
http://www.seekcodes.com/text-editor.php , but i can not find the code.
Do you somebody know some simple text editor with buttons for bold 
italic etc.


Thanks a lot.
Jordan

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



Re: [PHP] Text editor

2010-07-27 Thread Jordan Jovanov

On 27/07/2010 13:53, Ashley Sheridan wrote:

On Tue, 2010-07-27 at 13:49 +0200, Dušan Novaković wrote:


You can use TinyMCE. It's really easy to integrate in system. Check on
official website.

Dusan

On Tue, Jul 27, 2010 at 12:10 PM, Jordan Jovanov  wrote:

Hello All

I need me to add form for comment to one web site, but i want to use some
taxt edtior. Simething similar of this editor
http://www.seekcodes.com/text-editor.php , but i can not find the code.
Do you somebody know some simple text editor with buttons for bold italic
etc.

Thanks a lot.
Jordan

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






--
mob: + 46 70 044 9432
web: http://novakovicdusan.com

Please consider the environment before printing this email.




I've always found CKEditor (formerly known as FCKEditor after its
author) to be better than TinyMCE. It also has JQuery support should you
be using that Javascript framework. They also have plenty of example
documentation to integrate it with pretty much any server-side language
you need to, including PHP.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Thanks to all,

Thanks to all for suggestions, but of course i must to choose only one, 
and choose TiniMCE after suggestions of Dusan. Fala Dusan :)


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



[PHP] Text editor for Ubuntu with FTP

2010-07-31 Thread Jordan Jovanov

Hello to All,

I only whant to star discussion for who is the best programm to write 
php and html script. I use dreamweaver, but now I change my OS to ubuntu

and I want some suggestions for some Text editor for FTP for Ubuntu


Thanks A lot
Jordan Jovanov

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



[PHP] HTTPS

2010-08-01 Thread Jordan Jovanov

Hello

I have one web page with hhtp protocol, but i need to change in https.
Do you somebody know does is easy and can i do?
Does need to write some php scripts or anything.

Thanks a lot.

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



[PHP] HTTPS SSL

2010-09-02 Thread Jordan Jovanov

Hello everybody

I need me a little help.
I have one web page with hhtp protocol, but i need to change in https.
Somebody tell me that I need to create some SSL certificate.
I  use some Apache server.
Do you somebody know does is easy and can i do?
Does need to write some php scripts or anything?

Thanks a lot.

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



[PHP] Hi

2010-09-06 Thread Jordan Jovanov

Hi All

I need me a little help.
I create scripte for upload file is work very good but the problem is next:
I neet to upload only .zip file i need to disable some user to shoise to 
upload another file Extensions.


Can somebody help me.

Thanks a lot.

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



[PHP] Install library

2010-09-15 Thread Jordan Jovanov

Hello All,

I have one very funny question. A need me PDFlibrary.
Can somebody tall me how can I download and install on my server this 
library. I use PuTTy to connect to my server.

Does somebody know the command line for download in istall library in php.

Thanks a lot.

Best Regards,
Jordan

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



[PHP] Install library

2010-09-17 Thread Jordan Jovanov

Hello everybody,

I like to create same PDF file with PHP, i find that i must to install 
something like PDFLib but i can't how to istall on linux. Does somebody 
can help me.


Thanks a lot.
Jordan

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



[PHP] Search inside file :)

2010-10-11 Thread Jordan Jovanov

Hello everybody,

I create one site where user can upload .zip files, but now I have one 
interesting problem. I need me PHP script where can have one edit box 
and button, user can input same text in edit box and when press on 
button he need to find the document who have text from edit button.
Do you same body have script or more on script who can search inside in 
same file (zip file with word document, presentation etc).


Thanks a lot. :)

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



[PHP] work online

2010-10-18 Thread Jordan Jovanov

Hello Everybody,


Does somebody know company for PHP programing where people can work from 
home? Actual I only want to know does have regular or part time job for 
PHP developers who work from home via internet.


Thanks a lot.

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



[PHP] Documentation

2010-10-27 Thread Jordan Jovanov

Hello All,

I finished with coding and now I am on the part when need to write 
documentation. But I don't know how to write correct documentation.

Does have some rules or standard for writing documentation for PHP?
Or maybe have some programs for writing documentations?

Best Regards,
Jordan JOVANOV

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



FW: [PHP] Re: Please hack my app

2006-11-27 Thread Jordan Forssman
Hi,

My name is Jordan Forssman, I am representing a company called Armorize
Technologies. We have developed a source code analysis platform for PHP,
called CodeSecure, which scans source code for SQL injection, cross site
scripting, command injection, etc, vulnerability. The tool will tell you
exactly which line the vulnerability is on, explain the propagation of
the tainted variables, and assist you in fixing the bug. I believe this
tool will help you verify the security of your application and will be
able to do so very quickly. At the moment we are scanning around 20 000
lines in under 5 minutes, or 1M in about 2 minutes, depending on the
application. 

Currently we are accepting applications for trial accounts, if you would
like to use our tool to scan your code please log on to
http://www.armorize.com/events/trialapplication   and submit the form.
We are just starting our sales and marketing effort so I hope you can
use our product and give us some feedback. 

If you want to know more about our company and product you can find us
at: www.armorize.com , download our datasheets and whitepapers at
www.armorize.com/resources/download .  

The trial is free and can be accessed over the Web, we are using the
trials as a test case for offering the product as a service and also to
promote the product. Once I receive your application I will send you an
e-mail with a quickstart guide and login details. 

If you have any questions, please feel free to contact me anytime.

Best Regards,

Jordan Forssman
Sales Manager
Armorize Technologies
Tel. +886-2-6616-0100 ext. 201
Cell. +886-938-100-214
Fax. +886-2-6616-1100
Skype: jordan4z
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 


-Original Message-
From: Ivo F.A.C. Fokkema [mailto:I.F.A.C. [EMAIL PROTECTED] 
Sent: Monday, November 27, 2006 6:01 PM
To: php-general@lists.php.net
Subject: [PHP] Re: Please hack my app

On Wed, 22 Nov 2006 09:57:50 +0100, Ivo F.A.C. Fokkema wrote:

> Hi List,
> 
> As this subject may start you wondering what the hell I'm thinking,
let me
> clearify:
> 
> I've been rewriting an GPL'ed PHP/MySQL app from scratch for the last
12
> months or so. It facilitates storage of DNA mutations and the
> corresponding patient data. Because patient data is involved, privacy
is
> very important.
> Now of course I read lots of pages on SQL injection and whatnot, and I
> strongly believe my application is protected from this kind of abuse.
> However, believing is not enough. I've had some comments in the past
about
> security (previous version of the software) and although I didn't
agree to
> the critic, I want to be able to say the new app went though various
forms
> of attacks. This month, I want to release 2.0-alpha-01...
> 
> *** THIS IS NOT ABOUT HACKING THE SERVER ***
> But about getting in the application when you're not allowed to!
> 
> If you feel like helping me out, it's located at
> http://chromium.liacs.nl/LOVDv.2.0-dev/
> 
> 1) Please try to get in. There's one account in the system, a database
> administrator, capable of doing anything. If you get in, you can
easily
> create a new user using the setup tab. This will be the prove of you
> breaking my security rules.
> 
> 2) Can you manage to view unpublic data? Using the Variants tab, you
> can see there is currently one entry in the database (with two
mutations).
> This entry has a hidden column, called 'Patient ID'. There is a
> text-string in that column. If you can tell me what that string is,
you
> win :)
> 
> 3) Feel free to register as a submitter to see if that gives you any
> rights that you shouldn't have. A submitter is only capable of adding
new
> data to the database (Submit tab), but that data will not be published
> immediately.
> 
> 4) After a while, I will release login details of a curator account.
This
> user is allowed to see non-public data and handle the specific gene,
but
> NOT create new users or the like.
> 
> 
> If you have any questions, please ask. Thank you in advance for using
your
> expertise for the good cause :)

In case anyone is interested; I've created a low-level user
('untrusted')
in the system. Password is equal to username. Feel free to try and do
stuff you're not supposed to, like creating a new user or creating a
gene.

Ivo

-- 
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



  1   2   3   >