On PHP.INI you should have a line like "extension_dir" that says which
directory holds the extensions, I think.
Do you ?
Is it correct and pointing to were you do have the extensions ?
Luis Moreira
-Original Message-
From: Joaquin Grech [mailto:[EMAIL PROTECTED]
Sent: s
I believe the syntax is not correct.
First, you should have
if ($rank !== Unregistered) {
or
if (($rank) !== Unregistered) {
Otherwise, the count for "open parenthesis" and "close parenthesis" do not
match.
Also, is Unregistered a defined type?
If not, how do you compare a variable ($rank) ag
Just one thought :
The code itself, as shown, looks good, but is PHP getting what WE see ?
Meaning, try to
1) set a string with the SQL query you want
2) check the string before applying it
Maybe, just maybe, you are getting a broken string, and the "order" part is
missing, thus not being applied
Junho de 2007 14:26
To: Bradley Stahl
Cc: Luis Moreira (ESI-GSQP); php-windows@lists.php.net
Subject: Re: [PHP-WIN] Get referer with PHP
Bradley Stahl wrote:
> Try using the "$_SERVER['HTTP_REFERER']" server variable to get the URL of
> the page that referred the current
Hi
This is possibly way too simple, but let me ask just the same :
I want to add some code (may be PHP) on an HTML page, to check the
referrer.
It has to be web-server independent.
If the page is invoked by URL X, ok, if not, the page should not be
shown.
I think you have an "operator\precedence" issue.
Try
$query = "SELECT $field_name FROM classifieds
WHERE
($field_name1 = '$field_value1')
AND
($field_name2 ='$field_value2')
";
This will stop you from eventually ANDing the wrong pair...
-Original Message-
From: Mark Abrams [mailto
Hi
First, let me just say that "it does not work" is too vague.
You should always describe the problem a little more.
Anyway, there are a couple of things I don't understand on your
script :
$textareaSubmit = str_replace("\r",
"",$textareaSubmit,$textarea2Submit);
: segunda-feira, 30 de Abril de 2007 13:14
To: Luis Moreira (ESI-GSQP)
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Re: php win2003 - No input file specified.
What you mean with "opening", something like
..
include("other_file.php");
..
If yes .. Ye
Are you opening a file within INDEX.PHP ?
Does that file exist ?
-Original Message-
From: Simeon Goranov [mailto:[EMAIL PROTECTED]
Sent: segunda-feira, 30 de Abril de 2007 12:30
To: Jeremy O'Connor
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Re: php win2003 - No input file specif
It seems to me that you are opening a file within INDEX.PHP
Does that file exist ?
-Original Message-
From: Simeon Goranov [mailto:[EMAIL PROTECTED]
Sent: segunda-feira, 30 de Abril de 2007 12:54
To: [EMAIL PROTECTED]
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Re: php win2003 -
Probably I missed a message, so forgive me if I did.
If what the code below wants is to redirect to a different page, then I
believe that the HEADER command can not be preceeded by an ECHO.
echo "".$ReturnTo;
header("Location: $ReturnTo");
It won't work after that, and that is clear on t
And the field types, do they all match ?
You are entering a date as a string, for example.
If all else fails, try to insert only one field at a tine, to see which one
fails.
Luis
-Original Message-
From: Niel Archer [mailto:Niel Archer] On Behalf Of Niel Archer
Sent: sexta-feira, 29 de
The "{} syntax" means to run a command whithin another command, whitout having
to store results previously.
As an example, both following codes do the same, and you don't loose time
storing and retrieving variable $argo
$argo = fgets($fileID,sizeof($file));
Echo "$argo";
And
Echo "{fgets($fil
This is not exactly a PHP issue, it is straight math !!!
Percent = value / (max - min)
-Original Message-
From: Daniel Anderson [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 30 de Maio de 2006 23:11
To: php-windows@lists.php.net
Subject: [PHP-WIN] Finding a percentage
Hi,
Does anyone kn
I don't use much session variables, but I think the problem is on PHP.INI,
not on Windows.
You are using two different systems, you can only compare them if they are
using the same settings.
Caution
This registers a global variable. If you want to register a session variable
from within a f
That error is related to IIS
I am not an expert on IIS, but on the Internet there are reports of exactly
the same error (very few, I'm afraid)
Luis
-Original Message-
From: Ing. Tomás Liendo [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 9 de Fevereiro de 2006 14:48
To: php-windows@lists.
Actually it does not make that much sense.
I use includes, with PHP extension, and never had a problem.
Take a look at how you communicate between modules, ergo if you have globals
on or off, the scope of variables, etc.
It seems as if "user_level" is not known within the module.
Luis
-Origin
There is nothing wrong with escaping the quotes.
Your problem is a bad syntax.
You need to "execute" the $_POST command, not print it.
Try this
if (isset($_POST["user_id"]))
echo "";
else
echo "";
Luis
-Original Message-
From: Wayne Khan [mailto:[EMAIL PROTECTED]
Sent:
the list
- Original Message -
From: "Luis Moreira" <[EMAIL PROTECTED]>
To: "'Mark Rees'" <[EMAIL PROTECTED]>
Sent: Monday, September 12, 2005 3:15 PM
Subject: RE: [PHP-WIN] Re: Not getting correct results from $_POST
> Mark,
>
> If you
What's wrong with the while loop ?
You mean besides the fact that you are accessing an array and not
specifying the index ?
$rand_key[] = $key_chars{$rand_pos};
Other than that, saying te result is strange is not good enough.
If you want help, you have to be more specific.
As to the "50 millio
And advice : to pick up a greater number of hints, post in English...
Doing so, you help yourself and possibly someone else with the same problem.
Do you MySQL setup ?
Can you open a database through the command line ?
If not, then start by having a proper DB installation.
If this is OK, then your
How do you retrive the variable "message_id" on the script
display_list.php ?
Steven Courteney wrote:
Hi all,
This is probably something really simple.
I am using PHP 4.3.10 on Apache 1.3 on a Windows 2000 (SP4) set-up. I have
'register_globals' = off and variables_order = 'EGPCS'.
The applic
FYI
This script
$body = "Test string xpto replace";
echo $body . "";
$body = eregi_replace("xpto", "before", $body);
echo $body . "";
?>
works and produces this output
Test string xpto replace
Test string before replace
L
Hi
I, for one, have never done this, but if you are working with html
files, I suppose you open it with your browser ?
Have you cleared the cache, or at least forced the browser to
re-open the file ?
If you edit the file after the change using a text editor, do you
see the changes, or n
You can always try to set a cookie, but wether the browser allows it or
not, it's a whole different ball game.
I believe your problem lies here.
Anyway, the two scripts I attach, I have just tried, and the cookie was
set by the first, WITH A MESSAGE FROM THE BROWSER ASKING IF I ALLOWED IT.
The s
I am not sure I understand your problem.
The separation of parameters is something YOU do, not PHP.
An example of a call would be
http://www.test.com/script.php?name=Luis&state=active
to call SCRIPT.PHP with parameters "name" and "state".
christian tischler wrote:
Hi,
Please help...
I think my php.
You send way too much info, forcinf people to read through all of it, to
understand your way of thinking and your problem.
Keep it simple.
Anyway, I think there is something wrong in here
$sql = "SELECT furn_pic";
$sql .= "FROM crost";
$sql .= "WHERE item_num = $item_num";
$result = mysql_q
Have you tried to read the manual ?
There is a lot of info on how to do this.
Anyway, I think this does the trick :
if ($handle = opendir('FULLPATHNAME')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
At this point, $file contains the file name.
On
What do you mean by "it doesn't work" ?
It does (the minitest, I mean).
Luis
MikeA wrote:
I have a PHP file that outputs HTML to the Internet to a user. The user also
wants to be able to
print that output to a printer. The user wants it formatted with page breaks
in the proper place
and so on.
As I said, I don't know if you can do that with '98, but I think not.
So, it would be an Apache problem.
How did you proceed to set up the web server ?
You should look at the HTTPD.CONF file, which has the config for Apache.
You have directives that allow or forbid the access to directories.
There
When you run a PHP script, if you "view source" you don't see the code.
What you see is the result of the script.
If the script doesn't output text, be it html or not, there's nothing to
see...
The script
Hello World";
echo "It's me !";
?>
would produce
*Hello World*
It's me !
with this as
The error is not PHP related. The message comes from the http server.
Either you have restrictions on the directory, at OS level (I don't know
if you can do that with '98), or within the HTTP server.
Luis
GKE wrote:
I have just joined the learning bandwagon of PHP. I am using Windows 98SE,
as suc
mode and be able to tell me what I'm doing wrong.
That, I didn't do.
Apologies to IIS users to whom this thread is of no interest.
Luis Moreira wrote:
This is a PHP list, and there is an Apache one were this problem fits
better.
Go to www.apache.org and subscribe it.
Meanwhile, do you have an
This is a PHP list, and there is an Apache one were this problem fits
better.
Go to www.apache.org and subscribe it.
Meanwhile, do you have an error log to look at ?
What does it say ?
Luis
blulagoon wrote:
Thanks Dean. I've commented out the lines that say:
Action application/x-httpd-php /php/ph
Copy to the list
**
Have you tried reading the manuals, or the function syntax ?
What I give you next is readable at http://www.php.net
Description
string *substr* ( string string, int start [, int length])
*substr()* return
Do you close the file after using it ?
If not, it may get stuck.
Luis
Iker Landajuela wrote:
Hi, I´m newbie in PHP programming.
Iit´s about opening files in an
ftp with php, I have the same problem like you, mi script opens the file
correctly the first time but no longer, what`s the problem?
Thank
I do speak Spanish, but for the sake of everyone who doesn't, let's keep
the English :-)
1) Drop the comparison using "==", since you are comparing strings
2) Use STRCMP instead
3) Since this function is "case sensitive", maybe it's best to convert
the string to upper case, and compare it after
Remove the double quotes.
$dh = opendir('F:/vyapar-2/test/cdaci');
Pravin-Kumar wrote:
hi list!
$dest='F:/vyapar-2/test/cdaci'; or
$dest='F:\vyapar-2\test\cdaci'; or
$dest='F:\\vyapar-2\\test\\cdaci'; or
$dh = opendir($dest);
$a=dir($dest);
the above code giving following problem on apache 1.3 o
This is not a PHP error, it's a DB error, and the message is very clear.
Either the database is opened allready, and exclusively, or you have to
give a username/password with sufficient rights, which you are not
doing, with that command.
Luis
Emperor Kang Xi wrote:
Hi all,
I need help to solve m
Better yet, use the right function :-)
This script
$a = "1234567890";
$b = $a.$a;
$c = $a."A";
echo "$a ";
if (!is_numeric($a))
echo "NOT ";
echo "numeric";
echo "$b ";
if (!is_numeric($b))
echo "NOT ";
echo "numeric";
echo "$c ";
if (!is_numeric($c))
I am not exactly an expert on PEAR, but if the error says "connect
failed", you are not reaching the DBand/or the server were it resides.
Check the way you are connecting :
- Is the server named correctly ?
- If the access is authenticated, are you using the correct
username/password ?
- Do you
Sorry, there was an error...
if (!empty($_POST['surname']))
$surname=strtoupper( $_POST['surname'] );
else
echo "Empty name";
Luis Moreira wrote:
Try reading the variable before you use it :-)
For best protection, see first if something went through...
phpWalter wrote:
How do I set up permission to access folders and not only specific files
in these folders with apache...? I can't find the correct line in
httpd.conf
Folder and file access is controled at the OS level.
Walter
No it isn't.
Or better, it is, but that is not relevant here.
Yo
Nothing wrong, besides missing a character.
I tried your instructions with the full word CREATE and it worked fine...
Luis
Patrick Roane wrote:
I am learning the mysql basics and was wondering what
I'm doing wrong. I'm using the MySQL.exe console to
create a simple table, but I keep getting these s
On line 104, obviously...
Luis Moreira wrote:
Apparently, you are calling the SPRINTF function with the wrong number
of arguments
Jose Castilla Gallardo wrote:
Hi, i have installing php with squirrelmail and when run
squirrelmail found this messages:
"PHP Warning: sprintf(): To
I just read the thread, so I hope I am not missing anything important.
You talk about a "php page", but the IMG code is HTML, so I suppose you
have the HTML tags in place.
I tried this
" width="87" height="120" />
and it works fine.
Maybe you have some quotes missing, that are needed to have
Is this the contebnt of the PHP file ?
Hi .You are
It can not start by the "Hi" word ...
Action.php should be something like
$name = $_POST['name'];
$age = $_POST['age'];
echo "Hi $name. You are $age";
?>
PHP MySQL wrote:
hi list,
i have managed to successfully install php and i am now goi
Hi
I suppose yopu didn't "google" for the error message...
Try to read this
http://www.postgresql.org/docs/7.3/static/client-authentication.html
Luis
Ciprian Constantinescu wrote:
I have the following code
[CODE]
[/CODE]
And when i run the script I get " Warning: pg_connect()
[function.pg-
claudio wrote:
Can someone help me find a copy of the extension of php_printer.dll
preferably for the latest version of PHP but I will not be picky I have
installed 4.3.2 on my win2k server and if I have to upgrade well that's
great. Thanks in advance.
I sent a copy of my DLL file to Claudio,
user_id'];
Unless it is a typo on your mail ...
Luis
Garry Grierson wrote:
Both set to: on
"Luis Moreira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Garry Grierson wrote:
If I do this by passing the paramiters back into the script via the
heade
Garry Grierson wrote:
If I do this by passing the paramiters back into the script via the header
line it works OK.
When I try to use the SESSION variable it cant find the values, as I said
this is working on another machine running identical op and browser software
etc...
Any ideas?
"Garry Grierson
Ragnar wrote:
Hi lads,
I'm just tinkering around in PHP again recently, I haven't done much
OO in general, so I wasn't too surpised when some of the stuff I did
today didn't work.
Example:
(DB abstraction):
function data($qry_result){
if ($qry_result){
return ibase_fetch_object($qry_result);
}
Stephen Cassidy wrote:
Hi all, I am fairly new to this (attended a beginners course last week) and
I have been asked to install PHP on or 4 web servers (spread over 4 sites),
all the servers are exactly the same running Windows XP and IIS 5.
I downloaded the latest PHP 4.3.7 and managed to install
George Pitcher wrote:
Hi,
I have several systems running which gather, store and process bibliographic
data. I have treated pageranges on the basis of two fields per range - start
and end, with supplemantary ranges available as well.
I've never had to deal with more than 3 ranges in a reference: ch
William CANDILLON wrote:
Hello,
Is there a way to send udp or tcp packet with php?
I don't find any library or extension which has this possibility.
Thanks in advance!
StorM
You don't just "send" a packet. You send it it to an IP address, and
there to a "port" or "socket".
If you go
Svensson, B.A.T. (HKG) wrote:
How did you come to the conclusion it should be 452?
-Original Message-
From: Lenny Davila
To: 'php windows'
Sent: 3-6-2004 3:23
Subject: [PHP-WIN] calculations
I have in my php code:
$galleryRow = 3;
$maxwidth = 144;
$borderwidth = 2;
$imagediv = ($maxwidth +
Svensson, B.A.T. (HKG) wrote:
Are you trying to say that flush() does not work properly for you, i.e you
don't see the numbers comming one by one with a seconds delay, but get all
at once?
William,
If you go to www.php.net and look for "flush" you will see that the
problem you experience is
William CANDILLON wrote:
I want to execute my script in a browser as with the shell mode.
Example:
static $i = 0;
while ($i < 10) {
++$i;
echo "$i\n\n";
sleep(1);
}
?>
I've tried this but it's doesn't work :
static $i = 0;
while ($i < 10) {
++$i;
echo "$i\n\n";
flush();
sleep(1);
}
?>
What exa
Jeffrey D. Means wrote:
Can someone help me find a copy of the extension of php_printer.dll
preferably for the latest version of PHP but I will not be picky I have
installed 4.3.2 on my win2k server and if I have to upgrade well that's
great. Thanks in advance.
---
Jeffrey D. Means
CIO for Mea
Subject: Re: [PHP-WIN] Problems Configuring and I do all the manual
says...HELP!
Are you sure that MySQL is running? Are you able to connect to it with an
MySQL client? Are you running it as a service or standalone?
steve
- Original Message -
From: "Luis Moreira" <[EMAIL
Alejandro César Garrammone wrote:
Hi all, I've a problem configuring my php on a Windows XP OS.
I do all the manual says...the Apache Server has service start and it seems it is
working fine...but when the php try to connect to a mysql databases it's do nothing.
Before the XP I have a W98 running
M. Imran Khan wrote:
When I am sending mail through mail() function, I am unable to view that mail properly.
I think some quotes probblme. Suppose I want to mail the following tag:
http://www.abc.com/logo.gif";>
But it would work properly if I don't use the quotes other wise not.
Please help me
David Scott wrote:
In the PHP on Windows chapter of Programming PHP, there is mention of
a constant, PHP_OS, that can be used to determine the OS running the
server that PHP is on.
The example code is as follows,
However, rather than checking this value, I'd like to see if flat out.
I tried
Escape the backslash before using it
$errorCode = $TK->OpenOutputFile("D:\\public\k1\\compiledCIO\\$filename");
Luis
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 22, 2004 4:32 PM
Subject: [PHP-WIN] back slash issue
>
> I have a situation
Try something like this (UNTESTED)
// array1 is temporary array
// array2 is the one to fill with query results
$array1= array("URL"=>"nul","URLN"=>"nul");
$array2= array(
1=>array("URL"=>"","URLN" => "")
);
// $n is counter of registers
// begin mysql query
// foreach element
// $row[0] i
This is not PHP related...
What is your server, IIS or Apache ?
If it is Apache, do you have ALIAS ?
It is different to alias /images (with trailing slash) and
images (WITHOUT trailing slash), you know ?
Luis
- Original Message -
From: "Harpreet" <[EMAIL PROTECTED]>
To: <[EMAIL
PHP scripts are programs, that you can write using almost anyting, starting
with Notepad, providing you know what you are doing.
There is also TEXTPAD, that is a simple text editor, but that can show you
the line numbers, which can be very useful to debug (error in line xxx).
I don't know of editor
Is the echo you show after the string being generated or within the funcion
?
Try it (if you haven't already) immediately after the generation. Maybe
there is something wrong with the other strings envolved, or with the syntax
itself (you don't show the entire command).
If it is not, don't bother w
Your problem is in your "form_results.php3".
There are instructions badly terminated.
Look for missing quotes, for instance...
Luis
- Original Message -
From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 07, 2004 9:42 PM
Subject: RE: [PHP
Not quite true.
>From the manuals :
The LIMIT clause can be used to constrain the number of rows returned by the
SELECT statement. LIMIT takes one or two numeric arguments. If two arguments
are given, the first specifies the offset of the first row to return, the
second specifies the maximum numb
How was, and how is set "register globals" ?
If it is off, as it should, it works this way.
Try
$valor=$_POST['valor'];
echo "Valor = $valor";
Do you see the result ?
Luis
- Original Message -
From: "Josep" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 27,
Hi
I am trying to write scripts to print
data using PHP 4.2.2 (Win2K) , and keep getting
Fatal error: Call to undefined function: WATHEVER_FUNCTION() in d:\myweb\printers.php on line xx
(the line number matches the line where the function - any
function - is called from)
On PHP.I
t;[EMAIL PROTECTED]>
To: "Luis Moreira" <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 4:35 PM
Subject: RE: [PHP-WIN] mssql_connect problem
La x es la ruta del archivo carpeta\archivo.php (por ejemplo)
$db_usuario y $db_password = "Formas"
Es el login y password que
Omar,
Español ?...
Es este el mensaje completo ?
De donde viene el "x" ?
Qual es el contenido de las variables $db_usuario y $db_password en el
momento de la llamada ?
Luis
- Original Message -
From: "Omar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, De
Apparently your browser is complaining about INFO.PHP, not PHP.EXE.
Do you call INFO.PHP inside INDEX.PHP ?
If you do, are you sure it exists and is on the right place ?
Luis
- Original Message -
From: "Miroslav Majdan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, Decembe
Not sure I understand what you want.
It seems simple programming, though.
Be a little more specific...
Luis
- Original Message -
From: "Lawrence" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 1:43 PM
Subject: [PHP-WIN] Code to splite page
> I need the co
I wasn't planning on contributing to this (very) large thread, but one thing
is to read that not all questions deserve an answer (like on the -good-
document that Ignatius pointed out), which I think is false, but respect as
an answer, and a very different thing is to insult someone because they as
Hi.
In PHP you evaluate a string with "string comparison" functions.
It is viewed in asterisks, but passed quite normally.
As for the rest, you start by checking a variable on your page, and if
it denotes an error on a password, echo your message and proceed to read it
again, and the
The syntax look something like this
UPDATE tablename SET filename=desired_filename WHERE first_two_equal_X:
Luis
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 4:26 PM
Subject: [PHP-WIN] script to update file names
> I have a db
There is also PHPEDIT and TEXTPAD (this one at http://www.textpad.com/)
Luis
- Original Message -
From: "Disko_kex" <[EMAIL PROTECTED]>
To: "'Bobo Wieland'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, November 04, 2003 4:00 PM
Subject: RE: [PHP-WIN] best php editor?
> Tr
What is this doing here ?
where 1=1
This is always true
- Original Message -
From: "Rinku Shivnani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 12:50 PM
Subject: [PHP-WIN] query error
> SELECT types, comp_name, modal, to_char(manufact_dt,'dd/MON/')
Try MS Task scheduling
- Original Message -
From: "Disko_kex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 27, 2003 5:06 PM
Subject: [PHP-WIN] Run php file every day?
> Hi,
>
> Is there an easy way to run a php file same time every day? Im running
> IIS5 and PHP4
This is part of a php/html script.
Check the syntax.
You more than likely forgetting something along the way.
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
Luis
- Original Message -
From: "Rinku Shivnani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Browse through http://ww.php.net , search and read the documentation.
If you do that and search for "include", for instance, you will find
The documentation below also applies to require(). The two constructs are
identical in every way except how they handle failure. include() produces a
Warning wh
As far as I know, there is no direct way.
You have to parse the address, looking for the "@" character, at least.
Then check for the presence of characters before and after the "@", and at
least a dot "." on the right side (after "@").
Luis
- Original Message -
From: "MeAndI" <[EMAIL PROT
I'm not sure I understand what you want.
You mean you write out what you find between each two times your criteria is
met ?
Luis
- Original Message -
From: "Gerardo Rojas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 25, 2003 2:57 PM
Subject: [PHP-WIN] Looping prob
What do you mean by "nothing seems to work" ?
Have you tried to "include" the script you wish to run ?
If you use http (i don't think so), you can also use forms and links.
- Original Message -
From: "Gerardo Rojas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 15, 2
You have these two lines
$fp2 = "C:\\inetpub\\wwwroot\packtracker\\LSE\\".$cr.".txt";
$fp3 = "C:\\inetpub\\wwwroot\packtracker\\LSE\\".$cr.".doc";
Why do you have double slashes on every place but one ? :-)
Luis
- Original Message -
From: "George Pitcher" <[EMAIL PROTECTED]>
To: <[EMAIL
What version of PHP do you use ?
On PHP-4.1.0 there is an EXPERIMENTAL set of functions (so they say) -
socket_create, socket_bind, socket_listen, socket_accept - that combined
should do your trick...
Luis
- Original Message -
From: "John Yu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
The documentation says "PHP 4 >= 4.1.0" so I expect they do...
I haven't use them though.
Luis
- Original Message -
From: "John Yu" <[EMAIL PROTECTED]>
To: "Luis Moreira" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday,
John,
I don't really know XP, but it seems that maybe the problem is within
"xp permissions", because you can have permission to write/create, but not
to delete.
Double check wether Apache really has rights (delete or full) on the
directory were you put the files.
Again, I don't know
Q1:
See the script below
Q2 : n/a
Q3 : n/a
Q4 :
You have to find the insertion point with strpos, and then insert like this
$pos = strpos($mystring,$findme);
if ($pos>0)
{
$leftmost = substr($mystring,0,$pos);
$rightmost = substr($mystring,$pos,strlen($mystring)-$pos);
$new_string =
If you could interpret them, and the problem would be to get rid of them,
that's one thing.
This is different.
Be more specific.
What warnings ?
- Original Message -
From: "tana dsasa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 23, 2003 11:17 AM
Subject: [PHP-WIN] s
This will do the trick (no tested, written on the fly)
Luis
// column counter
$n = 1;
// start the record
print "";
foreach($files as $file){
print "$file";
// another column
$n++;
// if 8, then
if ($n==8)
{
// close record, open new, and reset counter
pr
Gabriel,
Try reading the manuals at http://www.php.net
They are a good source of info, always, to start with.
PHP_SELF and PATH_INFO are variables, and as such must have a dollar sign.
Your error messages implies you did not put that sign.
Furthermore, you complain about PHP_SELF and PATH
Take this for an example :
This script fills part of a form with checkboxes named C1,C2, ect
$cnt=0;
for ($i=1;$i<=$n_alunos;$i++) {
if ($cnt==0) {
print "";
}
print "Aluno
$i";
$cnt++;
if ($cnt==$colunas) {
print "";
$cnt=0;
}
}
This script receiv
PHP passes variables it initalizes, not all.
You should check if the variable is set with the "isset" function.
Anyway, if you want. post your code, and I'll take a look at "line 27", wich
should be referring to an "array element" corresponding to a non-selected
checkbox.
Luis
- Original Mess
The error complains about an unexpected "!", right ?
What if you do
if (!isset($title)) {
That's the correct syntax, you know ?...
Luis
- Original Message -
From: "jh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 9:03 AM
Subject: [PHP-WIN] Re: Forms-PHP
Hi
A simple (?) question
:
When doing this
include
'setup_vars.php';
...
the whole of SETUP_VARS.php is
written to the screen, instead of bieng executed.
What am I doing wrong
?
Thanks
Luis
--
PHP Windows Mailing List (http://www.php.net/)
To unsu
Never mind
- Original Message -
From: Luis Moreira
To: [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 3:09 PM
Subject: include within html
Hi
A simple (?) question :
When doing this
1 - 100 of 123 matches
Mail list logo