I suggest you read http://www.php.net/manual/en/features.file-upload.php
The GET method shouldn't work (though it may be possible). In all likelihood
your browser is just sending the local filename as a string and not
attempting to upload the file at all.
You need to use the Array $_FILES['Filena
Hi all,
Can someone point me in the direction of getting the CTRL T value (^T) into
a string?
I need it for a line break on a system call, "net send".
Something along the lines of
"net send computer_name line 1 ^T line 2 ^T line 3".
>From what I've seen the Dec# is 20 and the Hex# is 14, but I hav
On Wednesday 17 December 2003 16:06, Terence wrote:
> Can someone point me in the direction of getting the CTRL T value (^T) into
> a string?
> I need it for a line break on a system call, "net send".
> Something along the lines of
> "net send computer_name line 1 ^T line 2 ^T line 3".
> From what
No, that's to add a tab, I am looking for CTRL (control) + T
Thanks anyway,
Terence
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 4:14 PM
Subject: Re: [PHP] Getting the CTRL T value
On Wednesday 17 December 2003
On Wednesday 17 December 2003 16:23, Terence wrote:
> No, that's to add a tab, I am looking for CTRL (control) + T
Sorry, misunderstood the question.
Try this:
$CTRLTAB = chr(20); // assumming that's the code CTRL-T
echo "net send computer_name line 1 {$CTRLTAB} line 2 {$CTRLTAB} line 3";
-
My regex skills are serious lacking and after scouring the net for
relevant links I'm a bit stuck. I've got a textarea field where I pull
user input from, and I'd like to search this entire field for a Windows
Directory Path (ex. C:\Documents\Blah).
Basically my users are allowed to specify HTML
[EMAIL PROTECTED] schrieb:
My regex skills are serious lacking and after scouring the net for
relevant links I'm a bit stuck. I've got a textarea field where I pull
user input from, and I'd like to search this entire field for a Windows
Directory Path (ex. C:\Documents\Blah).
Basically my users ar
if(preg_match('/]+src[ ]*=[ ]*(|"|\')[a-z]{1}:\\\/i', $string))
echo "local links used";
[EMAIL PROTECTED] wrote:
My regex skills are serious lacking and after scouring the net for
relevant links I'm a bit stuck. I've got a textarea field where I pull
user input from, and I'd like to search thi
I've got an issue with an app I wrote. I store some information about the
user and if they are logged into the app in session variables. The problem
is that if they leave the app idle for a while ( about an hour) the session
information is lost, so the user is prompted to log back into the
applic
Last time i used it was three years ago. It was pretty good then. A
discussion of aspseek or mnogosearch specifics would take us outside the
scope of this list.
Chris wrote:
Thanks for the response.
I can't seem to find ASPSeek available for Windows at all. Did you say they
had one?
The window
It's the garbage collector - session.gc_maxlifetime setting. The setting
is server wide, unless you use your own session storage functions.
Anthony wrote:
I've got an issue with an app I wrote. I store some information about the
user and if they are logged into the app in session variables. Th
Hi
I cannot manage to compile openssl support into php.
my configuration line is
CPPFLAGS='-I/usr/local/include/' ./configure
--with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr
--with-gettext-dir=/usr --with-gd --with-png-dir=/usr --with-zlib-dir=/usr
--with-jpeg-dir=/usr --with-gd-nati
On Wednesday 17 December 2003 01:33 am, Justin Patrin wrote:
> You can turn on URL rewriting for sessions. I'm not sure where it is
> just nowjust search the PHP docs.
>
Yes I know about this feature.
Unfortunately, its an insecure feature.
http://us2.php.net/manual/en/ref.session.php
http://u
> > My regex skills are serious lacking and after scouring the net for
> > relevant links I'm a bit stuck. I've got a textarea field where I pull
> > user input from, and I'd like to search this entire field for a Windows
> > Directory Path (ex. C:\Documents\Blah).
> if(preg_match('/]+src[ ]*=[ ]
Jon Hill wrote:
Hi
I cannot manage to compile openssl support into php.
my configuration line is
CPPFLAGS='-I/usr/local/include/' ./configure
--with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr
--with-gettext-dir=/usr --with-gd --with-png-dir=/usr --with-zlib-dir=/usr
--with-jpeg-dir=/us
cheers Adam,
that now works
Jon
On Wednesday 17 December 2003 13:29, Adam Maas wrote:
> Jon Hill wrote:
> > Hi
> >
> > I cannot manage to compile openssl support into php.
> >
> > my configuration line is
> >
> > CPPFLAGS='-I/usr/local/include/' ./configure
> > --with-apxs=/usr/local/apache/bin/
Ok, here's my code that I want to pick a random line from a text file, and
then mail myself 10 times with a different line each time...
But It simply won't work...
Anyone know why?
$i) {
$abc = randomline('text.txt');
mail("[EMAIL PROTECTED]", "$abc", "$abc", "From: [EMAIL PROTECTED]");
$i++;
}
Tristan Pretty wrote:
Ok, here's my code that I want to pick a random line from a text file, and
then mail myself 10 times with a different line each time...
But It simply won't work...
Anyone know why?
...
while (2 > $i) {
...
Seems that this "while"-loop will execute only 2 times.. not 10. Mayb
php-general Digest 17 Dec 2003 14:21:06 - Issue 2478
Topics (messages 172844 through 172878):
saving resource objects
172844 by: Michael Lewis
172845 by: Tom Rogers
172846 by: Justin Patrin
172847 by: Michael Lewis
172848 by: Michael Lewis
1728
Thanks for your replies. Figured it out, just blind. The $headers were
written correctly (except for \r\n at end of lines though \n seems to work
in this case). The problem was in the call to the boundary, the boundary has
to start with -- outside the quoted string definition of the boundary, and
e
Hi,
q1)
i got a database with 2 diffrent tables,
i want to take out all the information that arent duplicated from
on of the tables, like this:
$sql = "SELECT t1.rubrik, t1.info, t2.priser FROM table1 AS t1, table2 AS t2
WHERE t1.arkiv = '0' ORDER BY t1.rubrik";
the problem is that i got alot of
[snip]
q1)
i got a database with 2 diffrent tables,
i want to take out all the information that arent duplicated from
on of the tables, like this:
$sql = "SELECT t1.rubrik, t1.info, t2.priser FROM table1 AS t1, table2 AS t2
WHERE t1.arkiv = '0' ORDER BY t1.rubrik";
[/snip]
It's a SQL question, bu
HI!
Is it just me or addslahes truncates the result to 65535 chars? Any
comments? Or can it be that a blob field in a MySQL database is just
65535 chars, I don't think so...
Cesar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Tristan Pretty" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ok, here's my code that I want to pick a random line from a text file, and
> then mail myself 10 times with a different line each time...
> But It simply won't work...
> Anyone know why?
>
> function randomline($fi
Cesar Cordovez wrote:
HI!
Is it just me or addslahes truncates the result to 65535 chars? Any
comments? Or can it be that a blob field in a MySQL database is just
65535 chars, I don't think so...
Cesar.
BLOB is just 65535 chars. Use MEDIUMBLOB (2^24 bytes) or LONGBLOB (2^32
bytes). Also tex
Hi.
Turns out that addslashes is not guilty of truncating it's result.
Marek is right here. Changed the type of the field from BLOB to
LONGBLOB and everything works great!
Thanks!
Marek Kilimajer wrote:
Cesar Cordovez wrote:
HI!
Is it just me or addslahes truncates the result to 65535 chars
Patrik Fomin schrieb:
...
q2)
i got like 100 matches from a database into a $num variable,
then i want to devide that by 3 aslong as it can be done, eg:
while ($num != 0) {
ïf ($num / 3 = true){
some code to display some fields from a database
$num = $num - 3;
}
else {
some other code to display
"Michael Lewis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I posted this on the PHP-DB list and then realized it was a more general
> question about PHP than DB so I am posting it here also hoping someone can
> help.
>
> I have a fairly common problem that I have not been able t
Hello.
I have a sql server named CLUSTER01 (on win 2k servers, iis, etc), i try to
connect to it :
$db_conn = mssql_connect("CLUSTER01", $db_usuario, $db_password);
and it gives me this message:
Warning: 0 is not a MS SQL link index in x
The user name and password are correctly created in the log
Hi,
I posted recently regarding a PHP script that crashed Internet
Explorer. The crash continued to occur until I removed any use of
sessions in my scripts. The pages seem to work fine now, but of course
I have lost the sessions functionality.
Does anybody have any suggestions why Sessions wou
--- Gerard Samuel <[EMAIL PROTECTED]> wrote:
> On Wednesday 17 December 2003 01:33 am, Justin Patrin wrote:
> > You can turn on URL rewriting for sessions. I'm not sure where it
> > is just nowjust search the PHP docs.
>
> Yes I know about this feature.
> Unfortunately, its an insecure feature
I am comparing between this two php-based CMS?
My focus is really
1. the availability of modules/add-ons.
Not too sure, but seems PHPnuke has more add-ons than Postnuke.
2. ease of maintaining a group of contributors/writers
Nyon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
From: "Cesar Cordovez" <[EMAIL PROTECTED]>
> Is it just me or addslahes truncates the result to 65535 chars? Any
> comments? Or can it be that a blob field in a MySQL database is just
> 65535 chars, I don't think so...
Think again...
BLOB, TEXT L+2 bytes, where L < 2^16
MEDIUMB
__
This communication is intended for the use of the recipient to whom it
is addressed, and may contain confidential, personal, and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute,
Change this line
if($dowork) {
to
if($_POST[dowork]) {
it should work the. In your php.ini the variable register_gloabal seem
to be off.
Manoj Nahar
Tom Holton wrote:
Hello everyone,
I looked through the FAQs and documentation and I cannot find this
anywhere:
We have a new Redhat server wi
That should be $_POST['dowork'] , $_POST[dowork] will attempt to use dowork
as a constant
-Original Message-
From: manoj nahar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 10:51 AM
To: Tom Holton
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] strange!
Change this line
if($dowo
I have created a simple login/authentication script to help protect some of
my PHP pages. Here is where I am running into a little trouble in
understanding.
Let's Say I have the following pages protected
Page1.php
Page2.php
Page3.php
If the user is not logged in, the "inc." file will send them
Have you considered Sessions
http://www.php.net/manual/en/ref.session.php
Warren Vail
-Original Message-
From: Hunter, Jess [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 11:04 AM
To: PHP - General List
Subject: [PHP] Page Redirects - How can it be done
I have created a
Your first query, could it be that you dont have any reference between the
two tables?
You should have a link between them, like
where t1.id=t2id
Or else you do not have any reasonable way of predicting the outcome of the
query. Atleast this is what I know from my own experience.
Especially if
Omar wrote:
Hello.
I have a sql server named CLUSTER01 (on win 2k servers, iis, etc), i try to
connect to it :
$db_conn = mssql_connect("CLUSTER01", $db_usuario, $db_password);
and it gives me this message:
Warning: 0 is not a MS SQL link index in x
The user name and password are correctly created
I have a small database that I want to display data from. in such a way that
it shows shows in a table with the table header being the department
category and the table cells being the categories for each department. I
have no problem connecting to the database) I imagine that I will need
nested lo
[snip]
I have a small database that I want to display data from. in such a way
that it shows shows in a table with the table header being the
department category and the table cells being the categories for each
department. I have no problem connecting to the database) I imagine that
I will need ne
What if you use something like SourceForge. If you try to access a page
the requires you to be logged in when it redirects you to the login page
it includes in the URL the page that the user tried to access
(ie login.php?redirect=page3.php) Then when the user successfully logs
in they redirect to t
Data is as such right now for testing purposes:
ID, catName, catLink, catDepartment.
I will have multiple instances of the same text in catDepartment. I realize
this is a fopaux. I'm just trying to do a quick fix.
none the less I want the data formatted like this:
DEPARTMENT NAME 1(catDepartment)
[snip]
Data is as such right now for testing purposes:
ID, catName, catLink, catDepartment.
I will have multiple instances of the same text in catDepartment. I
realize
this is a fopaux. I'm just trying to do a quick fix.
none the less I want the data formatted like this:
DEPARTMENT NAME 1(catDepa
What if you use something like SourceForge. If you try to access a
page
the requires you to be logged in when it redirects you to the login
page
it includes in the URL the page that the user tried to access
(ie login.php?redirect=page3.php) Then when the user successfully logs
in they redirect to
There is a problem with PHP 4.3.4 under Windows by image2wbmp() example from PHP
Manual.
Example 1. image2wbmp() example
---
---
I'm using the CLI version 4.3.4 on Windows XP Pro. The script I'm
writing has only a couple of functions, a couple of "if" conditionals
and a "while" loop. At the very top of the script I have an echo
statement with a message I want printed to the console window. The
problem is that it's not ec
[snip]
I'm using the CLI version 4.3.4 on Windows XP Pro. The script I'm
writing has only a couple of functions, a couple of "if" conditionals
and a "while" loop. At the very top of the script I have an echo
statement with a message I want printed to the console window. The
problem is that it's
I'm trying to get familiar with quickform in the Pear HTML module. I
have a form with a select box created like this:
$form->addElement('select', 'nickname', 'Is this a nickname?',
array(1 => 'Yes', 0 => 'No') );
Now, how do I tell the select box to use the default value of 'No'?
--
PHP Gener
Hi everyone,
I have been using the levenshtein function and similar_text function to
evaluate which is the better function to use.
I have read that the levenshtein function runs faster than similar_text.
I haven't noticed any runtime differences but I have noticed that
levenshtein seems to be mo
sto cercando di scrivere una pagina per l'upload di file, ho copiato dei sorgenti ma
non funzionano. queste sono le pagine:
-form.html
upload.php---
---
non carica nulla e non restituisce alcun input, se cerco di visualizzare l'html, dal
i'm trying to write a page which allows user to upload file. theese are my
sources but they didn't work, anyone could help me?
-form.html
upload.php---
---
upload.php doesn't upload anything and doesn't output any error message. i
don't think it
Hoping this is an easy question to answer, apologise upfront if this is so
basic, but just been put in charge of a PHP app with LDAP interface to M$
Exchange, and trying to figure out how it works.
At the moment it works fine and extracts fields like first- and surname,
title, department, etc. I n
Hello All!
I installed Oracle 9i and it's working perfectly. I use a linux server to
connect using a client in this other machine.
I need to put HTTPD 2.0.40, PHP 4.2.2, Oracle 9i working together on a
RedHat 9...
Hardly, searching on the web, I could compile the oracle.so module using the
same v
Hoping this is an easy question to answer, apologise upfront if this is so
basic, but just been put in charge of a PHP app with LDAP interface to M$
Exchange, and trying to figure out how it works.
At the moment it works fine and extracts fields like first- and surname,
title, department, etc. I n
Hello All!
I installed Oracle 9i and it's working perfectly. I use a linux server to
connect using a client in this other machine.
I need to put HTTPD 2.0.40, PHP 4.2.2, Oracle 9i working together on a
RedHat 9...
Hardly, searching on the web, I could compile the oracle.so module using
the
I am comparing between this two php-based CMS?
My focus is really
1. the availability of modules/add-ons.
Not too sure, but seems PHPnuke has more add-ons than Postnuke.
2. ease of maintaining a group of contributors/writers
Nyon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
On Wednesday 17 December 2003 11:58 am, Chris Shiflett wrote:
> You can use GET data, POST data, or cookies. Since these users opt to not
> use cookies, and you seem to not want to use GET data, I suppose passing
> the information via POST is the only option left. :-)
>
Its not that I dont want to
YC Nyon wrote:
I am comparing between this two php-based CMS?
My focus is really
1. the availability of modules/add-ons.
Not too sure, but seems PHPnuke has more add-ons than Postnuke.
2. ease of maintaining a group of contributors/writers
You forgot #3: The ease of your sight getting hacked into
Greetings Guyz.
I would just like to ask for a help regarding on
"Links of Tables from other DB". I'm just only a
newbie in PHP Programming.
What I have right now is a query result from my table,
and what I wanted to do is on my one of the table I
had is to have a link or button that will ope
--- Gerard Samuel <[EMAIL PROTECTED]> wrote:
> Its not that I dont want to use GET, Im just heeding the warning about
> its insecurities from the manual. The code Im writing, is meant for
> others to use, and may not have access to ini directives. But from what
> I've read in the archives
> (http:/
php-general Digest 18 Dec 2003 02:40:50 - Issue 2479
Topics (messages 172879 through 172921):
Re: mail question (mime)
172879 by: Bill Green
sql query and some math
172880 by: Patrik Fomin
172881 by: Jay Blanchard
172886 by: Sven
172898 by: Kim Steinh
Hi there,
What im trying to do is read the information from a field in a table called
PARTNO. Then add RU to the front of whatever is in the PARTNO field.
So far i have this.
//connect details rarara
//query
$query= "SELECT PARTNO FROM russell2 ";
// make a query to get old stuff from DB col
Does somebody know how to get the output of an .php file into an .html file
(server side). This in order to cache generated pages for futur visitors.
thanks
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings Guyz.
I would just like to ask for a help regarding on
"Links of Tables from other DB". I'm just only a
newbie in PHP Programming.
What I have right now is a query result from my table,
and what I wanted to do is on my one of the table I
had is to have a link or button that will ope
Any opinions on the most feature rich IDE? I use Maguma now, but I notice
that Zend Studio and phpED have some good profiling features. I didn't see
that Zend had any DB connection features built-in though. Any advice on
these two? Others?
Thanks for your input!
-Shawn
--
PHP General Mailing
Buffer output and then write it to a file. I do it all the time.
ob_start();
//output some stuff here
$content = ob_get_contents();
ob_end_flush();
if ($handle = fopen("yourfile.html", "w")) {
fwrite($handle, $content);
fclose($handle);
}
-Shawn
"Martin" <[EMAIL PROTECTED]> w
68 matches
Mail list logo