Justin,
Option b. delete all AFTER foo, I.E. truncate the file directly after
foo. Leaving foo and all the data before foo untouched.
Jeff
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: 29 November 2002 04:29
To: Jeff; [EMAIL PROTECTED]
Subject: Re: [PHP] File
I have 2 files runQuery.php and doSQL.php, where the first one is posting data entered
by the user to the second page and displaying it but the data never arrives. Any idea
why this would not work, maybe some configuration issue?? Any help is really
appreciated...
!--
!-- runQuery.php --
I've got this coed but it still don't do the business:
$MESSAGE_FILE=foobar.txt;
$handle=fopen($MESSAGE_FILE,w);
$sizez= sizeof($handle);
$string= 'foo';
while ( fgets($handle,$sisez)
{ fputs($handle,$sizez);
if (strstr($handle,$string)){
break;
}
}
Any ideas?
Jeff Ringrose [EMAIL
FORM action='doSQL.php' method='POST'
try that
jeff
Luc Roettgers [EMAIL PROTECTED] wrote in message
002401c29782$8300de10$3b09c881@rolxp">news:002401c29782$8300de10$3b09c881@rolxp...
I have 2 files runQuery.php and doSQL.php, where the first one is posting
data entered by the user to the second
hi,
you could try to fetch the value from the superglobal variable $_POST or
$HTTP_POST_VARS
(echo $_POST[clSQL];
echo $HTTP_POST_VARS[clSQL];)
regars,
bastian
Luc Roettgers schrieb:
I have 2 files runQuery.php and doSQL.php, where the first one is posting data
entered by the user to the
Hi,
Friday, November 29, 2002, 4:58:02 PM, you wrote:
GS I was just going through the archive. Seems this comes up enough for me
GS to think I have something wrong.
GS A simplistic code flow of events...
GS ?php
GS session_start();
GS // user successfully logs in, set a session variable
GS
scott wrote:
What would php run as on a cobalt raq4 so I don't get the x header
warning
Best regards
As php is a web application, it is the webserver sending emails. Apache
runs as user httpd on the raq on which I have an account. Get it to
send you an email so that you can check.
HTH
Chris
In the browser it might look something like this:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titlePizza place/title
script
function add(n) {
document.pizza.num.value=document.pizza.num.value + n;
if(document.pizza.num.value.length!=2) {
I've been looking on PHP.net's manual for openssl functions but it
seems that they have very little information on the said functions. Ive
tried posting on mailing lists for some help but I havent been receiving
fruitful responses. Some even told me that it is very difficult to find a
Not sure if this would be anyway possible, hopefull some of you GD gurus
will have an idea.
Basically the scenario is, I have a dirtectory of images(5 to be exact).
What I want to be able to do is something similar to the script below, which
randomizes a gif image selection. the file is called
-Original Message-
From: Floyd Baker [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 17:09
OK, I think I'm finally beginning to understand what you're up to, and it seems to me
everyine's been making rather heavy weather of it so far!
The user's choice is made from a drop down
php-general Digest 29 Nov 2002 11:47:32 - Issue 1733
Topics (messages 126443 through 126464):
Werid problemswith mail() command: From address on sent messages
126443 by: C.F. Scheidecker Antunes
Suppressing X-Return-Path
126444 by: Darren Fehrmann
Re: Is it possible to do
I would like to use OpenSSL to send encrypted information to a browser. The
information would be encrypted to a public key that has its private
counterpart installed in the browser. The idea is that the information would
be decrypted automatically, but only when the destination browser has the
-Original Message-
From: Mako Shark [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 18:20
A little more info on my count()ing.
I have $issue[0][number] to $issue[x][number] just
like any other multidimensional array (we'll call them
m-arrays for simplicity).
If I try to
on 29/11/02 7:06 PM, Jeff RingRose ([EMAIL PROTECTED]) wrote:
Justin,
Option b. delete all AFTER foo, I.E. truncate the file directly after
foo. Leaving foo and all the data before foo untouched.
And what happens if there are more than one occurrence of foo? I assume
you mean the first
I would like to use OpenSSL to send encrypted information to a browser.
The information would be encrypted to a public key that has its private
counterpart installed in the browser. The idea is that the information
would be decrypted automatically, but only when the destination browser
has
hello everyone,
I'm trying to get some images value from a checkbox putting them in a session to
preserve the data. The array works perfectly without the session_start() and
session_register.
can anyone help?
html script
html
head
title/title
/head
body
form action=submit_information.php
You should have session_start(); on every page that you want to hold the
session.
The way I would do what you are trying to achieve is go the $_SUPERGLOBALS
way..
on the submit_information.php page:
?php
session_start();
$_SESSION['image'] = $_POST['image'];
Files are attached..
Craig
Craig [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You should have session_start(); on every page that you want to hold the
session.
The way I would do what you are trying to achieve is go the $_SUPERGLOBALS
way..
on the
Hello!
I would like to know, Who made the first step to start programming PHP?
So who is the father of PHP.
Can anyone give me a link to proof it?
--
=|---+---|=
Heikki Kniivilä
[EMAIL PROTECTED]
http://heikkikk.homelinux.com
--
PHP General Mailing List (http://www.php.net/)
To
hi,
how about the manual?
http://www.php.net/manual/en/history.php#history.php
:)
Regards,
khalid
_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
--
PHP General
I have trouble using upload scripts - none of them work on my current
config. I'vq got php 4.2.3 and global registerd = off. The problem is
that the script doesnt send the variable $_FILES['my_file'] as it
should. I can only upload if i hard code the filename into the script.
OS: OS X 10.2
Tom Rogers wrote:
Hi,
Friday, November 29, 2002, 4:58:02 PM, you wrote:
GS I was just going through the archive. Seems this comes up enough for me
GS to think I have something wrong.
GS A simplistic code flow of events...
GS ?php
GS session_start();
GS // user successfully logs in, set a
C.F. Scheidecker Antunes wrote:
The problem is that I do not want and cannot have my message headers with a From: Apache@LocalHost as this copy bellow shows:
I've changed the header variable and put a From in it so it does displays the right FROM: address as bellow. But as you can see, the
Kim wrote:
when i using mssql_connect() function,that's show Fatal error: Call to
undefined function: mssql_connect() on php page,i don't know why that it
is!
php 4.2.3
sql server 2000
apache 1.3.19
windows 2000 pro
php.ini had configurated ok.
This error message means that the function is
Hi Liljim,
thanks very much, with the 'e' modifier and some quote-fixes it works well !
Dieter
Liljim [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi Dieter,
You need to use the 'e' modifier as well as 'is' in your pattern. Have a
look in the
Hi Magnus,
Your problem was you weren't using the correct part of the $_FILES array
when using copy();
Cut and Past This:
if ($ok){
$res = copy($bilde_fil[tmp_name], $path./.$nyttnavn.$ending);
print ($res)?bFerdig/b, uploadet
.$nyttnavn.$ending.!br:bSorry/b, Kunne ikke uploade.br;
Hi,
I'm trying to connect to a https site to get a file.
The target site replies to me: Unable to service this URL without parent
cache.
Is there someone who knows what that means?
Thanks,
Greg.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I think you better describe your question here and wait for the world to
answer.
--
Maxim Maletsky
[EMAIL PROTECTED]
Karl James [EMAIL PROTECTED] wrote... :
Hello guys
Happy thanksgiving!!!
My question is
I'm Trying to apply this code to what I have done already on my site
How would you know about a file on someone's system before it was
implicitly sent you by user? Take a look at JavaScript, but I doubt
there will be a sure solution for it. Nothing is sure with
JavaScript except for it's cross-browser incompatibility :)
--
Maxim Maletsky
[EMAIL PROTECTED]
Try this:
http://www.sourceforge.net/projects/phptriad and dowload there phptriad.
It is a simplified distribution of PHP.
Also, try reading the articles on the web. You might want to start from
PHP Beginner (www.phpbeginner.com). There are also some installtion
tutorials for you.
--
Maxim
loop through the file line by line explode()ing every line with TEXt
in it. Then, if retrning array count is bigger than one, unset() the key
one and break the loop. All read OVERWRITE in the original file.
Sorry, too lazy writing the code here :)
--
Maxim Maletsky
[EMAIL PROTECTED]
Jeff
Is this related to PHP? Or are you getting the error from your browser?
In that case, are you using IE? If so, it might be a bug with IE--I've
seen it discussed in a few mailing lists.
Otherwise, it might indicate that the web server you're connecting to is
not configured properly.
Marco
--
Hi,
I'm building a multiuser system with PHP. It appears that session data is
getting overwritten with the latest users information. The site is hosted
remotly with a virtual host. The problem only seems to occur to people
inside our building (i.e. two people here login to the system with
i'm using PHP to connect to the server.
i need to get a file, parse it, include the datas in mysql and then display
an html page with a report...
-Message d'origine-
De : Marco Tabini [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 29 novembre 2002 16:58
À : DUPUIS Grégoire BE/DGC
Cc :
Hello,
About the System of my company :
Server A : imap server ( come from redhat 6.2 )
Server B : Web server ( redhat system 7.2 ) + IMP ( http://horde.org/imp
)
How can I enable the quota function with imap server by this php config
?
if (!function_exists('imp_show_quota')) {
function
Hi,
I have never bothered with the cookie, I only delete the server side info.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a way to convert a date 2002-11-29 00:00:00:000to 29 November 2002
.
Sturle
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a way to convert a date 2002-11-29 00:00:00:000to 29 November
2002
Yes. Try strtotime() and date() in PHP, or break the string apart. If
this date is coming from MySQL, then look at the DATE_FORMAT() function
that you can use in your query to format it.
---John Holmes...
--
PHP
Can't figure out how to get at the properties of an object which itself is a
property of another object. In sample code below neither the assignment of
$mystring produces an error.
?php
class Obj1 {
function Obj1 ($string) {
$this-string = $string;
}
}
class Obj2 {
To the best of my knowledge, there is no way to do this with the mail
function. However, I check for bounces using Perl and a cron. I don't
see why you couldn't use php to do the same thing though.
Ade Smith wrote:
Hello
Is it possible to detect with PHP whether an email sent using the PHP
Maybe if you're lucky, the father of PHP will reply to you. :)
heikkikk wrote:
Hello!
I would like to know, Who made the first step to start programming PHP?
So who is the father of PHP.
Can anyone give me a link to proof it?
--
=|---+---|=
Heikki Kniivilä
[EMAIL PROTECTED]
---BeginMessage---
Hello,
Does your imap server come from redhat ?
If so, have you ever try IMP ( http://www.horde.org/imp ) and enable
Quota function with imap server by using php code ?
Would you mind to send me your solution ?
Thank for your help !
Edward.
---End Message---
--
PHP
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Khalid El-Kary) wrote:
http://www.php.net/manual/en/history.php#history.php
First public announcement of PHP by Rasmus:
http://groups.google.com/groups?selm=3r7pgp%24aa1%40ionews.io.org
--
CC
--
PHP General Mailing List (http://www.php.net/)
I have a bit of code that uses sessions and stores session data in the
database.
Works flawlessly on FreeBSD 4.7/mySQL/PostgreSQL running php 4.2.3.
When trying to run my code on Windows 2k with MSSQL and mySQL, its not
working.
The windows box is running php 4.1.2 (its a dev box).
Here is the
At 11/28/2002 01:51 PM, Ernest E Vogelsinger wrote:
?
$data = mtype=XMLDOCoutfile=true;
$dataFile =
http://www.healthtvchannel.org/courses/pay/data/test.xml;;
$fileSize = filesize($dataFile);
Ah. It is a local file, I was just using an absolute reference for it.
I'm trying to compile the YATS template system for PHP on Mac OS X. It
compiles without problems (one warning actually, but that's not the
problem I'm having), but it gives me a static library as an archive
file, instead of a shared library which I can install into my PHP
installation. I'm not
It works, partially. I can upload the file, but it's named array.
On fredag, nov 29, 2002, at 16:28 Europe/Stockholm, Beth Gore wrote:
Hi Magnus,
Your problem was you weren't using the correct part of the $_FILES
array when using copy();
Cut and Past This:
if ($ok){
$res =
First, I'd like to say that I'm not asking for anyone to write a script...
how would I go about checking a MySQL database of links to see if any are
down?
I've had some varying results with all the methods I've tried, so would like
to see if anyone has a proven method for doing this.
Thanks,
fopen each link and see if it returns true or false (false meaning its down)
Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca
- Original Message -
From: Rob Packer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 29, 2002 3:53 PM
Subject: [PHP] Test links?
Not to hard to find
http://www.php.net/manual/en/history.php
~Tim
Heikkikk [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello!
I would like to know, Who made the first step to start programming PHP?
So who is the father of PHP.
Can anyone give me a link
Marek,
Thanks for your ideas, I was thinking in a complicated scheme using $fp =
fopen (php://stdin, $hexkeynumber) ...
but I wasn't sure if that is better ...
I think your solution is much neatier ... then I just have to compare the
entered code with an id in the mysql database
- Original
Are you on PHP = 4.1 ?
Try this:
?
session_start();
print_r($_POST['Image']); // should print out your
//checkbox array
$_SESSION['Image'] = $_POST['Image']; // instead of session register
print_r($_SESSION['Image']);// should
php-general Digest 30 Nov 2002 00:18:12 - Issue 1734
Topics (messages 126465 through 126505):
OpenSSL Encryption to a browser.
126465 by: Comunica2 s. coop.
126468 by: Dan Hardiker
Re: Multidimensional arrays (more and more...)
126466 by: Ford, Mike
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.
There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate
Hi Adam Voigt,
On 27 Nov 2002 11:44:49 -0500, you wrote about Re: [PHP] How Do I install
php on Apache 2.0 something that looked like this:
A. What does having Adobe installed matter?
Where'd you get that??
B. Why are you trying to run 2.0? Apache 2.0 isn't even recommended for
use with PHP on
Hi Khalid El-Kary,
On Fri, 29 Nov 2002 14:18:15 +, you wrote about Re: [PHP] First PHP
something that looked like this:
hi,
how about the manual?
Works for me to learn it ... it's the only thing I've read on PHP besides
the WebMonkey guide to get the Apache+PHP set up ...
--
PHP General
Hi, I'm using the following code:
$x = imap_open({mail..com:110/pop3}INBOX, [EMAIL PROTECTED], );
echo $x ? YAY! : NO YAY!BR . implode(BR, imap_errors());
It works fine on my local server, but as soon as I try it on the live
machine it gives me:
Retrying CRAM-MD5 authentication after
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.
There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate
Looks fine in Opera 6.03
hth
http://www.vogelsinger.at/test.php?par1=value1par2=value2par3=value3
Opera
Version 6.03
Build 1107
Platform Win32
System Windows 98
Java
Sun Java Runtime Environment 1.4
Testing the query string
This is the full query string ($_SERVER['QUERY_STRING']):
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.
There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate
Is there a way to determine if a string has ascii or binary data in it?
-js
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Doh, so simple. I guess the correct form of the question would be how do
I determine if a string has just a-zA-Z0-9 in it plus punctuation...
thanks,
-js
Paul Chvostek wrote:
On Fri, Nov 29, 2002 at 10:27:05PM -0600, Jonathan Sharp wrote:
Is there a way to determine if a string has ascii or
On Fri, 29 Nov 2002, Jonathan Sharp wrote:
Is there a way to determine if a string has ascii or binary data in it?
I've used this kind of approach in the past to determine which encoding
to use on a string which may contain text or an image. Basically it
uses addcslashes to escape
hi everyone..
how to get the part of string and make it into a variable..
sample :
determine
now, i want to take just mine or 4 word from right, or deter (for left
function).
and after i got it, i want to make the mine into $x variable
my mind..
$x = mean
help please...
--
PHP General
hi everyone..
how to get the part of string and make it into a variable..
sample :
determine
now, i want to take just mine or 4 word from right, or deter (for
left function).
and after i got it, i want to make the mine into $x variable
my mind..
$x = mean
help please...
$x =
Hi all,
I'm developing a WYSIWYG editor using PHP and Javascript (for COM). However, I start
having problems when I try to display the page using the .php extension. The
Javascript is not working.
However, when I save it to HTML, it worked fine.
Can anyone please help me? Why is this so?
I'm developing a WYSIWYG editor using PHP and Javascript (for COM). However, I start having problems when I try to display the page using the .php extension. The Javascript is not working.
However, when I save it to HTML, it worked fine.
Can anyone please help me? Why is this so? What can I do
Hi.
I need to know if it's possible generate a wav, mid or mp3 file from php. I
really need create a sound file and send it to the user using http. Exist
some tool to do this work? Someone can give me an idea?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Saturday 30 November 2002 06:53, Rob Packer wrote:
First, I'd like to say that I'm not asking for anyone to write a script...
how would I go about checking a MySQL database of links to see if any are
down?
I've had some varying results with all the methods I've tried, so would
like to see
On Saturday 30 November 2002 06:42, magnus nilsson wrote:
It works, partially. I can upload the file, but it's named array.
print_r($_FILES)
to see what it contains and how you can use it.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web
71 matches
Mail list logo