Yes, that would be correct. Make sure all permanent directories such as "0" or
"1" already exist, and generate all dynamic folders using mkdir function.
Also, remember the templates you will be using.
-sonu
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED] ; ph
I have coded this type of website for many years and have run the gamut of
trying different things -- originally, 8 years ago, I used perl with flat
files and physical folders but in the recent past I have used PHP, MySQL and
dynamic folders.
In my opinion the best way to build this site is with d
Thanks, that's actually really close to what I was looking for...
so if I wanted, say: _http://mydomain.com/0/joe_ (http://mydomain.com/0/joe)
- you're saying I should have the Directory "/0/" or "/1/" already set
up... right? then do I use something such as mkdir and chdir to create joe
>From my understanding of what you are trying to do you have templates,
perhaps, setup for your users that get customized with each individuals
data. In that case what you will require to do is first off
1. create a folder for user underneath the corresponding location you want
the user setup,
Hi Adi
http://www.php.net/manual/en/ref.classobj.php
Check out the link above, and I'm sure you'll find what you are looking for.
You will find functions there called get_class & get_class_vars that I think
you will find very helpful.
Hope this helps...
-sonu
"Adi Zebic" <[EMAIL PROTECTED]>
To print "state" of object in Java I can define toString() function and
then I can do something like this:
Java exemple:
*
import java.io.*;
import java.util.*;
public class ReadTextFromFile
{
private static String line;
private static String
Hi everyone,
Sorry for the n00bie question but I've been racking my brain, searching
Google and yes, I have been "RTFM" for over 6 months :-)
All I'm trying to do is set up a "User system" that allows a member to
create their own personal site using an auto_increment type system? This is
no prob ;-)
On Tue, 2005-08-02 at 02:27 +0200, Adi Zebic wrote:
> Jack Scott a écrit :
> > Try this:
> > $insertQuery = "Insert into TABLE
> > (
> > col_one,
> > col_two
> > )values (
> > '" . $this -> firstName .
Jack Scott a écrit :
Try this:
$insertQuery = "Insert into TABLE
(
col_one,
col_two
)values (
'" . $this -> firstName . "',
'" . $this-> lastName . "'
)";
$db =& new
Try this:
$insertQuery = "Insert into TABLE
(
col_one,
col_two
)values (
'" . $this -> firstName . "',
'" . $this-> lastName . "'
)";
$db =& new DB;
$res
I'm sure something like this has already been written and I'd
hate to redesign the wheel. I've searched google but came up
empty and am wondering if any of you guys have what I am
looking for.
I ended up writing my own. Hopefully to help anyone else out
trying to do the same thing, I've includ
Hi,
I'm new in php so like usual I have little problem(s).
I have "DB" clas who connect to database, select database, query
database and so on.
I have other class "User" with some "members".
exemple:
...
var $firstName;
var $lastName;
...
Then I need to insert created object into mySQL database
Sebastian wrote:
is it always necessary to call array() when you do something like this:
mysql_query("SELECT ");
while($rows .)
{
$data[] = $rows;
}
if so, why? i have a habit of never calling array() and someone told me
i shouldn't do this.
If that's your first use of $data then
I can only swear this to the entire list:
Before I come here for help, each time, I echo and var_dump and print_r
until, yes, I need a doctor.
So by the time I come here, it's not laziness or lack of looking in the
manual, it's head-swirling confusion infused with incompetence and a
complete
is it always necessary to call array() when you do something like this:
mysql_query("SELECT ");
while($rows .)
{
$data[] = $rows;
}
if so, why? i have a habit of never calling array() and someone told me
i shouldn't do this.
--
No virus found in this outgoing message.
Checked by A
Jack Jackson wrote:
AAarg.
Okay, thanks to all of you I've decided that any field name I need to
see will be sent to $_SESSION['required_fields'] and basta.
Then after the submit button is pressed, I am doing this:
reset($_SESSION['required_fields']);
reset is not required when using fo
Thanks Rory:
I tried using fopen() and CURL and they both worked like a charm!
No need to juggle redirects and session variables.
-James
At 9:21 PM +0200 8/1/05, Rory Browne wrote:
On 8/1/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
Rory Browne wrote:
> On 8/1/05, James <[EMAIL PROTECTED]
Sonia wrote:
Hi
In Perl I have a part of a script
# cut..
my $line = '!v2005*08|05+09?04^19*!';
^-- note how my email client screws up your
original
string... something I don't really understand...
my ( $s_code, $year, $month, $day, $hour, $minute, $sec
Rory Browne wrote:
...
If you don't have admin access to your boxes, then you could write a
session handler on one of the systems to dl the necessary sesssion
info on demand. For more info see
purely out of interest, see what? :-)
Sorry - but I thought someone of your experience Jochem wo
On 8/1/05, Edwin Barrios <[EMAIL PROTECTED]> wrote:
> I compile the vanilla kernel from kernel.org, linux-2.6.10 , and i'am
> using apache 1.3.3. My php congifigurations are:
>
> './configure' '--with-apxs' '--with-pgsql' '--with-mysql'
> '--with-opennssl' '--with-zlib' '--with-bz2' '--enable-ca
I compile the vanilla kernel from kernel.org, linux-2.6.10 , and i'am
using apache 1.3.3. My php congifigurations are:
'./configure' '--with-apxs' '--with-pgsql' '--with-mysql'
'--with-opennssl' '--with-zlib' '--with-bz2' '--enable-calendar'
'--with-curl' '--with-curlwarppers' '--enable-ftp' '--
On 8/1/05, Edwin Barrios <[EMAIL PROTECTED]> wrote:
> i'am developing a web framework SifEngine (Secure Web Inteface
> framework) that implement MVC applaying the security ideas from
> http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql.
>
> After of post my development on the in
>
> can anyone give me an idea on how to return info. from a forl
> pulldown menu
>
> eg:
>
> name="loan_process">
> selected="selected">Purchase
> value="">Construct Home
Hi
In Perl I have a part of a script
# cut..
my $line = '!v2005*08|05+09?04^19*!';
my ( $s_code, $year, $month, $day, $hour, $minute, $second, $e_code ) =
unpack ( "x1 A1 A4 x1 A2 x1 A2 x1 A2 x1 A2 x1 A2 A1", $line );
print $s_code . "\n";
print $year . "\n";
print $month . "\n";
print $da
i'am developing a web framework SifEngine (Secure Web Inteface
framework) that implement MVC applaying the security ideas from
http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql.
After of post my development on the internet ( i have been thinking
to post on PEAR ), i made simple
AAarg.
Okay, thanks to all of you I've decided that any field name I need to
see will be sent to $_SESSION['required_fields'] and basta.
Then after the submit button is pressed, I am doing this:
reset($_SESSION['required_fields']);
foreach ($_SESSION['required_fields'] as $fieldname)
Hi . !
what you want it's recive values from a "select". !!!
First a select input send ( when the form is submitted ), the value of
the selected item, then
the php script that it's the form action recive, a on post or get a
variable with the name of the select input with this value.
On 8/1/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
> It'd have to be in the form of a form and you'd need to add values to
> the options, wrap it inside form tags, specify a method like $_POST or
> $_GET, error check and then send.
You don´t _have_ to specify a method. It defaults to "GET". Altho
At 09:56 AM 8/1/2005, you wrote:
[snip]
What is the "-q" for? I can't find any documentation on it. If I do
a "php -h" or "man php", it is not listed. I am running php 5.0.3 on
RHEL ES 4
[/snip]
It means 'quiet'...in other words do not send anything to standard out.
Thank You. I guess they
>From what I can see it looks a bit like an SQL version of the
strtotime function. Basicly it translates from a less strict syntax,
into the more strict SQL syntax, with the added advantage that the
less strict one can be in a different language(in this case French and
Italian)
Is my understanding
It'd have to be in the form of a form and you'd need to add values to
the options, wrap it inside form tags, specify a method like $_POST or
$_GET, error check and then send.
Bruce Gilbert wrote:
can anyone give me an idea on how to return info. from a forl pulldown menu
eg:
You would give the options a different value(each of them in your case is "")
Try
Purchase
Construct Home
May I also suggest that if you're experimenting try putting "" without the quotes into whatever.php(see form action)
On 8/1/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Rory Browne wrote:
> > On 8/1/05, James <[EMAIL PROTECTED]> wrote:
>
> ...
>
> >
> > Do the two machines share a common domain name? are your machines for
> > example boxa.commondomain.com and boxb.commondomain.com if so then you
> > can have th
can anyone give me an idea on how to return info. from a forl pulldown menu
eg:
Purchase
Construct Home
and return that to an email address.
thanks
--
::Bruce::
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Rory Browne wrote:
On 8/1/05, James <[EMAIL PROTECTED]> wrote:
...
Do the two machines share a common domain name? are your machines for
example boxa.commondomain.com and boxb.commondomain.com if so then you
can have the cookies(which hold the session tracking number) operate
at the commondo
On 8/1/05, James <[EMAIL PROTECTED]> wrote:
> I have two Windows machines.
>
> machine A has apache/mysql/php (main host)
> machine B has apache/media server (secondary host for high bandwidth
> media such as video)
>
> I have admin tools (written in PHP and using sesson variables) on A
> which a
I just thought of something...
Will this work...
(machine A) User hits submit in the Admin Tools to delete a record.
(machine A) I send POST variables to a database php script in a NEW
WINDOW...at the end of the script...it uses a header() to call the
PHP script on machine B...to delete files
I have two Windows machines.
machine A has apache/mysql/php (main host)
machine B has apache/media server (secondary host for high bandwidth
media such as video)
I have admin tools (written in PHP and using sesson variables) on A
which allows for updating of the database with pictures and suc
The National Coalition for Dialogue and Deliberation (NCDD) is seeking
an independent contractor or company to perform some PHP and MySQL Web
development work. In simplest terms, the Web site is a MySQL-driven
content management system (CMS), written in PHP, running on a
Unix/Linux server. The
[EMAIL PROTECTED] wrote:
What a convoluted mess.
Rather than using the shebang at the begging of the PHP file I had to put it
in the cron command
the shebang only works if you make the file executable...
do something _like_:
$> chmod ug+x /path/to/your/php/file
"/usr/local/bin/php public_ht
On 8/1/05, Diana Castillo <[EMAIL PROTECTED]> wrote:
> I used this "%2B" instead of the + sign and it works, what type of encoding
> is that?
%2B looks like something that would appear in a URL, usually in the
QUERY_STRING(which is part of the URL).
+ is the format you would use in an XML documen
use +
check out www.asciitable.com
On 8/1/05, Diana Castillo <[EMAIL PROTECTED]> wrote:
> what type of encoding should I use to send a "+" sign via XML?
>
>
> --
> Diana Castillo
> Destinia.com
> C/Granvia 22 dcdo 4-dcha
> 28013 Madrid-Spain
> Tel : 00-34-913604039 Ext 216
> Fax : 00-34-91522
what type of encoding should I use to send a "+" sign via XML?
--
Diana Castillo
Destinia.com
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
http://www.destinia.com
--
PHP General Mail
I'm sure something like this has already been written and I'd
hate to redesign the wheel. I've searched google but came up
empty and am wondering if any of you guys have what I am
looking for.
Basically I need a function that will convert a time from one
time zone to another. Such that if I p
Jack Jackson wrote:
Jochem Maas wrote:
wtf are you smoking Jack? every checkbox that was checked will exist
in the
$_POST array set with the value you gave it (I alway set a chekcboxes
value to 1
because the values mere existance in the submitted data indicates it's
chevckbox
was checked
Don't forget also that if you're running on a Windows platform, you can use the
php-win.exe to avoid having any console window appear at all.
-TG
= = = Original message = = =
Steve Buehler wrote:
> At 04:54 AM 8/1/2005, you wrote:
>
>> Shit shit shit!!! I completelly forgot!
>>
>> #!/usr/local
Edward Vermillion wrote:
Ryan A wrote:
Hey,
'prolly' is not a member of the english language.
and yes it's completely off topic but you knew that...
Yep, I prolly did :-)
Should have taken out the "most prolly" and just had OT, my apoligies.
Cheers,
Ryan
P.S Join me in my campaign to
Steve Buehler wrote:
At 04:54 AM 8/1/2005, you wrote:
Shit shit shit!!! I completelly forgot!
#!/usr/local/bin/php -q
Notice the -q, it's important.
Sorry :(
What is the "-q" for? I can't find any documentation on it. If I do a
"php -h" or "man php", it is not listed. I am running php
[snip]
What is the "-q" for? I can't find any documentation on it. If I do
a "php -h" or "man php", it is not listed. I am running php 5.0.3 on
RHEL ES 4
[/snip]
It means 'quiet'...in other words do not send anything to standard out.
--
PHP General Mailing List (http://www.php.net/)
To unsubs
On 8/1/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
>
> Jochem Maas wrote:
>
> >
> > wtf are you smoking Jack? every checkbox that was checked will exist in
the
> > $_POST array set with the value you gave it (I alway set a chekcboxes
> > value to 1
> > because the values mere existance in the subm
At 04:54 AM 8/1/2005, you wrote:
Shit shit shit!!! I completelly forgot!
#!/usr/local/bin/php -q
Notice the -q, it's important.
Sorry :(
What is the "-q" for? I can't find any documentation on it. If I do
a "php -h" or "man php", it is not listed. I am running php 5.0.3 on RHEL ES 4
Th
Kristen G. Thorson wrote:
Thanks for the == !
But I had set $message global within the buld-checkbox function, so that
part of it does work. . . .
Jack,
Read below:
Jack Jackson wrote:
Hi,
Now that the drop down is working properly (thanks!!), I am trying to
validate, and havi
Jack,
Read below:
Jack Jackson wrote:
Hi,
Now that the drop down is working properly (thanks!!), I am trying to
validate, and having LOTS of trouble. After being ceaselessly derided
last night on an irc channel for my dimwitedness, I am still not any
closer.
The code which works is this
On 8/1/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
>
> Jochem Maas wrote:
>
> >
> > wtf are you smoking Jack? every checkbox that was checked will exist in the
> > $_POST array set with the value you gave it (I alway set a chekcboxes
> > value to 1
> > because the values mere existance in the sub
On 8/1/05, Ryan A <[EMAIL PROTECTED]> wrote:
> > > P.S Join me in my campaign to get "PROLLY" as a member of the
> > > English langauge...
> > >
> > > If enough people use it, it will prolly get into the dictionary in a few
> > > years.
> > >
> > > :-D
> > >
> > Here in Texas it's
> > already there
On 8/1/05, Mark Rees <[EMAIL PROTECTED]> wrote:
> > i know how to break up db results into two tables but im having a hard
> > problem with this:
> >
> > db structure
> >
> > ---
> > | id | cid | title
> > ---
> > | 1 | 2 | hardware
> > | 2 | 3 | software
> > | 3 | 3 |
On 8/1/05, Alessandro Rosa <[EMAIL PROTECTED]> wrote:
> Dear All subscribers,
>
> I wish to submit to you a PHP class I coded to translate native language
> parsed queries into SQL syntax ones.
>
> The main goal of this class is the implementation into web-based
> applications
> for letting final
> > P.S Join me in my campaign to get "PROLLY" as a member of the
> > English langauge...
> >
> > If enough people use it, it will prolly get into the dictionary in a few
> > years.
> >
> > :-D
> >
> Here in Texas it's
> already there... :D
Good! That means my works already done there :-p
--
PH
> [/snip]
> P.S Join me in my campaign to get "PROLLY" as a member of the
> English langauge...
>
> If enough people use it, it will prolly get into the dictionary in a few
> years.
> [snip]
>
> I ceriusly dowt it.
Hahahahah good one
--
PHP General Mailing List (http://www.php.net/)
To unsu
Jochem Maas wrote:
wtf are you smoking Jack? every checkbox that was checked will exist in the
$_POST array set with the value you gave it (I alway set a chekcboxes
value to 1
because the values mere existance in the submitted data indicates it's
chevckbox
was checked), if a checkbox does n
Ryan A wrote:
Hey,
'prolly' is not a member of the english language.
and yes it's completely off topic but you knew that...
Yep, I prolly did :-)
Should have taken out the "most prolly" and just had OT, my apoligies.
Cheers,
Ryan
P.S Join me in my campaign to get "PROLLY" as a member of
[/snip]
P.S Join me in my campaign to get "PROLLY" as a member of the
English langauge...
If enough people use it, it will prolly get into the dictionary in a few
years.
[snip]
I ceriusly dowt it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
>
> g.gill wrote:
> >>From what I understand the simplest solution here would be to check to
see
> > if you have $_POST['cb'] in the first place. That would indicate if
> > checkbox was selected or not. After, you have posted the form just do
the
> > following test.
> >
> > $check_box_exits = ((i
Hey,
> 'prolly' is not a member of the english language.
> and yes it's completely off topic but you knew that...
Yep, I prolly did :-)
Should have taken out the "most prolly" and just had OT, my apoligies.
Cheers,
Ryan
P.S Join me in my campaign to get "PROLLY" as a member of the
English lang
Jack Jackson wrote:
g.gill wrote:
From what I understand the simplest solution here would be to check
to see
if you have $_POST['cb'] in the first place. That would indicate if
checkbox was selected or not. After, you have posted the form just do
the following test.
$check_box_exits =
'prolly' is not a member of the english language.
and yes it's completely off topic but you knew that...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Jul 28, 2005, at 9:28 AM, Linda H wrote:
Hi,
I must admit I am surprised at the paucity of date and time
functions in PHP.
I have a date stored in a MySQL database in field of datatype date.
PHP doesn't seem to have a function I can use to format it for
print. I tried the following
Hi,
A client of mine wants to offer freehosting to tech companies in Sweden.
(He plans to take a dedicated *unix server)
1)
The main problem with offering hosting is there are some SOBs who will
use that account to spam, so he asked me if it is possible to limit the
amount
of emails from each acco
Tom Chubb wrote:
I have changed it a bit, and don't have the old code now!!!
I saw a post which identified a problem using isset when $var = ""; as
it returns true, so I changed my code to use...
if ($_GET['id'] != "")
{ $article="$id.php";
if (file_exists($article)) { include $article;
g.gill wrote:
From what I understand the simplest solution here would be to check to see
if you have $_POST['cb'] in the first place. That would indicate if
checkbox was selected or not. After, you have posted the form just do the
following test.
$check_box_exits = ((isset($_POST['cb']))?
> i know how to break up db results into two tables but im having a hard
> problem with this:
>
> db structure
>
> ---
> | id | cid | title
> ---
> | 1 | 2 | hardware
> | 2 | 3 | software
> | 3 | 3 | software
> | 4 | 2 | hardware
>
>
> how can i have hardware on colu
Dear All subscribers,
I wish to submit to you a PHP class I coded to translate native language
parsed queries into SQL syntax ones.
The main goal of this class is the implementation into web-based
applications
for letting final users/customers input their own defined queries without
knowing
sql s
On Aug 1, 2005, at 5:45 AM, Roger Thomas wrote:
Quoting Jim Moseby <[EMAIL PROTECTED]>:
I'd repost the link for you, but I've already deleted it. Sorry.
Look back through the archives.
JM
I searched for 'Jim Moseby calendar' in the general and Dev mailing
list but no go. Anty clue?
Shit shit shit!!! I completelly forgot!
#!/usr/local/bin/php -q
Notice the -q, it's important.
Sorry :(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Aug 1, 2005, at 3:18 AM, Robert Cummings wrote:
On Sun, 2005-07-31 at 20:04, Sam Smith wrote:
I don't recognize this something(__SOMETHING__) format. I know
what it's
doing but I don't know how it's doing it.
Constants of the type __SOMETHING__ are historical constants for
retrieving
On Jul 29, 2005, at 8:07 PM, Tom Ray [Lists] wrote:
We built a box about 7 months or so ago using the SuSE 9.1 cd's,
straight install from the CDs. While I've read that sessions are
turned on by default, when we try to call on the sessions functions
(like with phpOpenChat or start_session(
>From what I understand the simplest solution here would be to check to see
if you have $_POST['cb'] in the first place. That would indicate if
checkbox was selected or not. After, you have posted the form just do the
following test.
$check_box_exits = ((isset($_POST['cb']))? true:false);
ho
77 matches
Mail list logo