On Saturday 13 July 2002 14:11, Thomas Edison Jr. wrote:
Glory!
Exactly.. that IS the problem.
You see, my mySQL DB on the Server/Internet, on my
website.. it DOES NOT allow Remote Host Connection.
That's why i need to use a PHP page, that too based on
the server. Because i need to move
VirtualHost *
DocumentRoot /home/scripts
ServerName scripts.blahblah.com
ErrorLog /home/nobody/logs/hosting/error.scripts.blahblah.com.log
CustomLog /home/nobody/logs/hosting/access.scripts.blahblah.com.log common
php_admin_flag safe_mode off (or on)
/VirtualHost
- Original Message
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Saturday 13 July 2002 14:00, Alex Shi wrote:
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Saturday 13 July 2002 13:31, Alex Shi wrote:
The
I seem to remember some Windows application that will do the conversion
for you. I believe it's called mysql2access and the other way is
access2mysql. IIRC, it's not open/free though.
On Sat, 13 Jul 2002, Alex Shi wrote:
The thing is that, the MySQL table resides on a remote web server, my
Tunnel port 3306 over an SSH connection if you can get an SSH session to
open to the remote.
On Sat, 13 Jul 2002, Alex Shi wrote:
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Saturday 13 July 2002 13:31, Alex Shi wrote:
The thing is that,
On Saturday 13 July 2002 14:51, Alex Shi wrote:
the mysql list). Put simply, you can specify which port you want MySQL to
use. However if the ISP only allows certain ports, eg SMTP, HTTP, _and_
you're already using those ports, then you're stuck up a creek.
Of course you can always ask
$substring = substr($localip,0,9);
if ($substring == '192.168.0')
{
// you're in
}
On Sat, 13 Jul 2002, Liam MacKenzie wrote:
If I enter 192.168.0.13 (My IP) it works, I'm allowed in and any other IP
isn't.
However, I need to grant access to this whole network, not just me. So I
the mysql list). Put simply, you can specify which port you want MySQL
to
use. However if the ISP only allows certain ports, eg SMTP, HTTP,
_and_
you're already using those ports, then you're stuck up a creek.
Of course you can always ask your ISP to unblock that port. Why are
Oops, wrong variable. That should be:
$substring = substr($REMOTE_ADDR,0,9);
if ($substring == '192.168.0')
{
// you're in
}
Michael
On Sat, 13 Jul 2002, Liam MacKenzie wrote:
If I enter 192.168.0.13 (My IP) it works, I'm allowed in and any other IP
isn't.
However, I
Hi all,
I have searched the archive for a message subject
something like PHP Wish List and was unsuccessful.
I am going to have our new server setup and would like
to know which features should be enabled - I know a
few that I will need, but what features should i get
now that I will be
On Saturday 13 July 2002 16:15, olinux wrote:
I have searched the archive for a message subject
something like PHP Wish List and was unsuccessful.
I doubt whether someone else's wishlist is of much use to _you_. Their needs
are most likely different to yours.
I am going to have our new
Hello all. Hope you are doing well.
I would like some guidance here, meat of problem is in all caps:
tblContacts -basic contact information on companies/non-government
organizations/media outlets...
tblCountriesOfOperation (tblContactsID, CountryID) -countries that
tblContacts operate in.
Hi guys,
To unsubscribe from the list send a mail to
[EMAIL PROTECTED]
Visit http://www.php.net/unsub.php .
Pls. Donot send a mail tp [EMAIL PROTECTED]
Best regards
Balaji
-Original Message-
From: gys [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 5:03 PM
To: [EMAIL
i'm new and i'm trouble with this code :'( can U help me please ??
this is the code :
while ($cd_tbl = mysql_fetch_array ($result))
{
$cd_id = $cd_tbl['cd_id'];
$cd_oeuvre = $cd_tbl['cd_oeuvre'];
$cd_chef = $cd_tbl['cd_chef'];
$cd_compositeur = $cd_tbl['cd_compositeur'];
Hi everybody,
I am just trying to find out how some db errors happened during a user was
browsing my web app.
This is out of the Apache log:
GET /subapp_profiles/act_upload_image.php HTTP/1.1 200 160
POST /subapp_profiles/act_upload_image.php HTTP/1.1 302 5
I do not have a clue where this GET
Hi Everyone.
Yup.. another dummy who can't suss out php.
I'm running win2000 server and have installed php (by the book), also have mysql
running.
Can seem to get php recognised though?
Check out http://www.geeing.com/source/chapter01/
Says can't find page.. but is defo there.
I can run
ðÒÉ×ÅÔ!
Nicolas GUILLOU wrote:
You may either write:
echo td bgcolor='$bgcolor'font face=Verdana size=1b$cd_id/b/font/td;
or
echo td bgcolor=.$bgcolor.font face=Verdana
size=1b$cd_compositeur/b/font/td;
ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×
-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-
OK
For one you don't have an index.php file.
I can't see the others coz you have pwd protected everything.
What exactly is the error ???
George Ewing [EMAIL PROTECTED] wrote in message
000c01c22a64$b3c14840$6401a8c0@pavilion">news:000c01c22a64$b3c14840$6401a8c0@pavilion...
Hi Everyone.
I am experimenting with using an XML file as a
database. One of the things I do is provide
a way of adding records to the database by an
html form.
This seems to work out well so far unless one
of the fields in a record contains an html
reference. The result is a Sablotron parse error.
What is
Hi,
after my systemtools update to autoconf 2.52, automake 1.6.2, libtool
1.4.2, bison 1.35
php (cvs tree) configure failed with this strange message:
---
checking for Apache 2.0 module support via DSO through APXS...
./configure: line 3848: syntax error near unexpected token
As a general rule of thumb you should ALWAYS validate the information posted
as a form before sending it on to whatever backend you are using.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: William S. [mailto:[EMAIL PROTECTED]]
Sent: Saturday,
I dont know what causus it, but I have a kind of a solution for your
problem...
you probably have something like $_GET[myvar] in your query, try to do
something like this :
$_VARS=_$REQUEST_METHOD;
$_VARS=$$_VARS;
And then instead of using the _GET, you use the _VARS...
Andy [EMAIL PROTECTED]
can you not open the file in binary mode and then transfer it as you would
with ASCII?
Kevin Stone [EMAIL PROTECTED] wrote in message
070301c229d5$42420130$6501a8c0@kevin">news:070301c229d5$42420130$6501a8c0@kevin...
Okay enough answering questions this week, now I have a question to ask.
:)
This is out of the Apache log:
GET /subapp_profiles/act_upload_image.php HTTP/1.1 200 160
POST /subapp_profiles/act_upload_image.php HTTP/1.1 302 5
I do not have a clue where this GET request could come from. This has
caused
a empty sql statement and therefore a db error. How can could
Exactly.. that IS the problem.
You see, my mySQL DB on the Server/Internet, on my
website.. it DOES NOT allow Remote Host Connection.
That's why i need to use a PHP page, that too based on
the server. Because i need to move tabel data on my
Client/My Computer to the Tables on my Website
echo td bgcolor=$bgcolorfont face=Verdana
size=1b$cd_id/b/font/td;
Strings work differently when the outer quotes are double or single quotes.
Inside double quotes variables will be converted into their values. Inside
single they will not.
So:
$var = 'Hello World';
echo $varbr\n;
will result
Hi all,
I can manage this script to work.
Js warn about listid[], he doesnt like [] in a var name !
Php needs them to collect an array from form checkboxes.
Here is my source :
!doctype html public -//W3C//DTD HTML 4.0 //EN
html
head
titleTitle here!/title
SCRIPT LANGUAGE=JavaScript
After much thought, I think I have figured out what I am going to do. I am
going to create on the first page, a place to add the hardware type, and
that will add a row to the database, and create the key I need. It will then
go to another page where I can enter the information, and I will have
On Saturday 13 July 2002 23:37, David D wrote:
Hi all,
I can manage this script to work.
Js warn about listid[], he doesnt like [] in a var name !
There's nothing you can do about that.
Php needs them to collect an array from form checkboxes.
You'll just have to rename your checkboxes to
I need to query a database and return a resultset. A php script will then sort through
the data and send the data to the browser in the form of a table.
Is it possible to gather the the results with html tags and store them in a variable
so that the results can be emailed to someone? If so,
Does exit() in a recursive function exit the entire function, of does it
only exit that iteration of teh function?? Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
i am currently having some problems with the mail() function, because emails don't get
send, or if they do, they arrive with a huge delay. (~ 5% of mail() sent emails arrive)
This only happens, if i try to email s.o. outside my network.
Does anyone have an idea, what might cause this
Does anyone have an idea, what might cause this problem?
Could it be the ISP, or do i need to add additional info, when i call the
mail() function in order to send emails outside my network?
Could be your ISP...
This is what i used to test if the emails get sent or not:
?
mail([EMAIL
On Sat, Jul 13, 2002 at 11:13:38AM -0500, Mike Tuller wrote:
After much thought, I think I have figured out what I am going to do. I am
going to create on the first page, a place to add the hardware type, and
that will add a row to the database, and create the key I need. It will then
go to
Oh, yes! I forgot about deleting countries that have been unchecked!
Hmm... Lock the table to prevent people from reading from it, delete
all records for that company, then loop through and insert the new
data, then unlock the table.
--Dan
--
PHP classes that make web
On Fri, Jul 12, 2002 at 10:57:08AM +0200, Paul Dionne wrote:
Problem: How do I display all the tblCountriesOfOperation for one
tblContacts record SO THAT MULTIPLE COUNTRIES CAN BE ADDED OR DELETED FOR
THAT RECORD?
Use an option list with multiple selections. My SQL Solution does this
I hack js no need to change in php :
SCRIPT LANGUAGE=JavaScript
!-- Begin
var checkflag = false;
// on va se ballader parmis les elements de formualire et toucher
// au case a cocher
function check(formulaire) {
if (checkflag == false) {
for (i = 0; i formulaire.length; i++) {
if
Hi there,
I am getting from time to time such GET requests. I think this is kind of a
atack against the webserver. DNS maybe. Here is the log entry:
218.5.149.77 - - [13/Jul/2002:19:57:09 +0200] GET
/default.ida?NNN
Yes. I'm sure you could just mail out the table in an email. You'd have to
do it as a multipart email (i think that's what it's called) as just mailing
out the html code wouldn't show as a table in a mail client.
Here's the source of a HTML spam I got this morning - should give you an
idea how to
This looks like a variant of the code red worm and will only bother you
if you are running IIS, which I would hope you are not. :-)
218.5.149.77 is apparently running an infected IIS Web server. You might
want to let them know.
Happy hacking.
Chris
andy wrote:
Hi there,
I am getting from
I have an array filled with objects. Each object has a method called
display.
I have
$var = $arr[0];
$var-display();
but I keep getting an error. What am I doing wrong?
(I do a print_r of the array immediately before this code and there is an
object at array[0])
Thanks
Alex
--
PHP
Hi,
I want to install 2 different php4 on my webserver (RH 7.1) for having 2
different php.ini (to stop some function for some vhost) and call him
with different extension with the addhandler directive in the vhost of
apache. ( I have php in cgi and suexec )
Thanks for your responses,
Pierre
php-general Digest 13 Jul 2002 18:40:35 - Issue 1462
Topics (messages 107495 through 107536):
Re: safe_mode
107495 by: Liam MacKenzie
Re: Convert MySQL table into Access or Excell format
107496 by: Alex Shi
107497 by: Darren Young
107498 by: Darren Young
I know GIF support was dropped from the GD library, but can you make
animated GIFs in any version of GD?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Alexander Ross [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Does exit() in a recursive function exit the entire function, of does it
only exit that iteration of teh function?? Thanks
exit terminas the whole script and not just a function. Read more on
Hi Everyone,
In the past I have setup many Mac OS X web servers successfully. Now
I'm trying to setup another OS X web server, but PHP will not work.
I'm having massive problems getting PHP to make, and I'm all out of
ideas. After I configure PHP (./configure), and try to make it, I get
I need to query a database and return a resultset. A php script will
then
sort through the data and send the data to the browser in the form of
a
table.
Is it possible to gather the the results with html tags and store them
in
a variable so that the results can be emailed to someone? If
Is their a function that returns an equivalent of $PHP_SELF?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm having some difficulties setting the include path for two of my
sites. I had this working previously on a PHP3 server with the command in
the .htaccess file:
php3_include_path .:/path/to/account/root/
However, I seem to be unable to set the include path with two new sites -
one
What extras are you compiling in with it?
Compile PHP and Apache with the bare minimum only, no fancy stuff. Try it
then.
I sucessfully compiled several machines using the latest source code
yesterday.
- Original Message -
From: Brandon Pearcy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
You have many options. Do a call to phpinfo() and
note all the predefined variables, such as PHP_SELF.
There is also the __FILE__ constant, print that too.
Why do you request a function? If it's because
$PHP_SELF is not set, that's because the PHP
directive register_globals = off. Go
Thnx for hte help, I wanted to keep register globals off, its a security
hazard.
Philip Olson [EMAIL PROTECTED] wrote in message
Pine.BSF.4.10.10207140050140.63499-10@localhost">news:Pine.BSF.4.10.10207140050140.63499-10@localhost...
You have many options. Do a call to phpinfo() and
here is the portion of the script:
if($row['plevel'] == '0'){
echo 'No';
} else {
echo 'Yes';
}
here is my table structure dump:
#
# Table structure for table `docs`
#
CREATE TABLE docs (
id int(11) unsigned NOT NULL auto_increment,
name varchar(200) NOT NULL default '',
note
because $row['plevel'] is NEVER == '0' It is probably == 0 though. (note
the missing quotes. ) :)
HTH,
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: JJ Harrison [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:01 PM
To: [EMAIL
I tried that.
same result.
Here is my (new) snippet:
if($row['plevel'] == 0){
echo 'No';
} else {
echo 'Yes';
}
Cal Evans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
because $row['plevel'] is NEVER == '0' It is probably == 0 though. (note
the
Have you done a var_dump on $row to make sure that plevel exists?
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: JJ Harrison [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] How come
ðÒÉ×ÅÔ!
Alexander Ross wrote:
I have an array filled with objects. Each object has a method called
display.
I have
$var = $arr[0];
$var-display();
but I keep getting an error. What am I doing wrong?
(I do a print_r of the array immediately before this code and there is an
object
I am using this basic example (from the manual iirc) for uploading files
form enctype=multipart/form-data action=upload.php method=post
input type=hidden name=MAX_FILE_SIZE value=1000 /
Upload this file: input name=userfile type=file /
input type=submit value=Send File /
/form
What I
The value of plevel is 0 according to var_dump.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Cal Evans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Have you done a var_dump on $row to make sure that plevel exists?
=C=
*
* Cal Evans
* The Virtual CIO
I have just started to teach myself php so I am reading through several
scripts to see how the language is spoken. I came across the following
at phpworld.com
$i = 1;
while ($i = 10) {
print $i++
Its a little script that counts from 1 to 10, but what does $i++ mean.
What does the ++ do?
++ is an incrementor.
$i=1;
$i++;
echo $i;
=C=
p.s. -- is a decrementor.
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: Jay [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 8:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie question
off the top of my head, I'd suggest :
if(intval($row['plevel']) == 0){
Grasping at straws here but you've moved beyond a simple question into a
debigging process. (Which doesn't work too well for email.)
Sorry I couldn't be of more help.
=C=
*
* Cal Evans
* The Virtual CIO
*
Still doesn't work.
I'll have to think about it.
I may raise all the values in the plevel colomn by one.
It may work then.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Cal Evans [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
off the top of my head, I'd
on 13/07/02 7:35 AM, Andy ([EMAIL PROTECTED]) wrote:
I am wondering if there is a possiblity that some browsers like IE 5.1 do
not accespt cookies by default. I am working on a session management system
and some users report that they have not been able to login because the
cookie has been
Aren't there already hundreds of these things out there?
I can't imagine why I'd use a clumsy, slow web interface to a forum that I
have to keep checking/returning to when I can satisfy 99% of my problems
with this mailing list.
It's as simple as sending, checking and replying to emails :)
I think there is always a need for more resources. Some people prefer forums
and the ability to actually go a bit off topic in some boards as opposed to
strictly answering questions. It's a matter of preference I suppose.
Anything that further helps PHP spread I'm for it :)
Jeff
- Original
It *still* didn't work.
I will increment all table cells using a single update query to do them all.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Jj Harrison [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Still doesn't work.
I'll have to think about it.
ðÒÉ×ÅÔ!
Cal Evans wrote:
++ is an incrementor.
He may also consider the position of the inc/decrementor.
Example (note that the first element of an array has index 0):
$a = Array(1,2,3,4,5);
$i = 1;
executing
echo $a[++$i]
will output
3 2
echo $a[$i++]
will output
2 2
In both cases $i
I found figured it out.
I am a n00b BTW.
the snippet was caught inside anouther if statment so it was only displaying
if the file was under a Meg in size!
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Jj Harrison [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
I'm interested in coding something in PHP which uses the TOC protocol to
connect to AOL Instant Messenger (AIM). Has there been anything done
like this in PHP? I'm also looking for more information on the TOC
protocol. I have the protocol specs, but it doesn't say where the server
is to connect
On Sunday 14 July 2002 09:20, Tim Luoma wrote:
and this is what I was trying to use to remove the space and punctuation
(all one line, might wrap in email):
$SAFEFILENAME = ereg_replace ([[:punct:]]+[[:blank:]]+, , $FILENAME);
But that does not seem to be working, and I have not been able
On Sunday 14 July 2002 07:36, Tim Thorburn wrote:
Hi,
I'm having some difficulties setting the include path for two of my
sites. I had this working previously on a PHP3 server with the command in
the .htaccess file:
php3_include_path .:/path/to/account/root/
However, I seem to be unable
I use PHP to upload files to the web server via web browser. However, I can
not delete the files later cause the Redhat linux server running on safe
mode. Do I have to changed the owner of the file during the file uploading
time?
Please let me know how to solve this problems.
The files are
Hi everybody,
I am just trying to find out how some db errors happened during a user was
browsing my web app.
This is out of the Apache log:
GET /subapp_profiles/act_upload_image.php HTTP/1.1 200 160
POST /subapp_profiles/act_upload_image.php HTTP/1.1 302 5
I do not have a clue where this GET
75 matches
Mail list logo