Chris wrote:
Warning: mysql_result(): supplied argument is not a valid MySQL result
resource in /home/virtual/site17/fst/var/www/html/function.php on line 51
Warning: mysql_free_result(): supplied argument is not a valid MySQL result
resource in /home/virtual/site17/fst/var/www/html/function.php o
OK, I understand that in order to avoid those nasty warning messages
about "Cannot send session cookie - headers already sent" you must
include the directive, session_start, above all headers, includes, etc.
I'm trying to debug and port a contractor's code to PHP 4.3.4 from a
couple of years a
Ahh.. Since you're not declaring what data type $var is, it must be
treating it as a string, even though I'd think it'd take it as an int if
you didn't put quotes around it. That's one thing I like about PHP..
You can be as strict or lax as you want with the types. But I can see
in this case wh
OK, I understand that in order to avoid those nasty warning messages
about "Cannot send session cookie - headers already sent" you must
include the directive, session_start, above all headers, includes, etc.
I'm trying to debug and port a contractor's code to PHP 4.3.4 from a
couple of years ag
Rachael LaPorte Taylor wrote:
OK, I understand that in order to avoid those nasty warning messages
about "Cannot send session cookie - headers already sent" you must
include the directive, session_start, above all headers, includes, etc.
I'm trying to debug and port a contractor's code to PHP
session_start can be used after includes and such but it has to be sent
before anything outside of the tags has a chance to be sent. All
it takes is an extra newline at the end of one of the includes before the
one that starts the session to mess things up.
- Original Message -
From: "R
Rachael Laporte Taylor wrote:
OK, I understand that in order to avoid those nasty warning messages
about "Cannot send session cookie - headers already sent" you must
include the directive, session_start, above all headers, includes, etc.
I'm trying to debug and port a contractor's code to PHP
--- Rachael LaPorte Taylor <[EMAIL PROTECTED]> wrote:
> OK, I understand that in order to avoid those nasty warning messages
> about "Cannot send session cookie - headers already sent" you must
> include the directive, session_start, above all headers, includes, etc.
>
> I'm trying to debug an
Hi,
I have a query regarding variable parsing.
I have some text in a MySQL database in which I have included some variable
names. Eg (but w/o quotes): "thankyou $name for registering on our web
site".
I query and use mysql_fetch_array to get the data into an associative array.
I then build a st
Yes, there was a db connect issuespelling mistake.
So now that works but it throws the following error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /home/virtual/site17/fst/var/www/html/function1.php on line 58
You have an error in your SQL syntax n
No need to ge that deep (socket_create and stuff)..
To send the HEX number 20 (also a space), you can do the following:
"\x20";
chr(0x20);
chr(hexdec('20'));
pack('C',0x20);
All of those _should_ create a space...
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Trevor Gryffyn"
But I think he'll still have an issue when he goes to transmit it. Whatever data you
have is going to be interpreted by the function doing the sending unless it's a
"binary safe" function that's going to send raw binary.
Thanks for the tip on "pack" though. Havn't needed it yet, but always good
Doing that work just fine but you have to send the right heading.
My sites that do that have
header("HTTP/1.0 200 OK");
as the first instruction and are very well indexed by Google
Olwen Williams
[EMAIL PROTECTED]
--
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]
Chris wrote:
You have an error in your SQL syntax near ') LIMIT 73, 1' at line 1
There's your error. Your SQL statement is still causing a problem.
Echo out your SQL statement to see if it's what you think it should be.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General M
Thanks John!
I was missing a paren in the statemnet! I hate when that happens!
btwvery kewl rush site, I've been a fan for years!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I'm looking for a clear, dependable way to work with dates in a web
application.
There are two types of dates that I can see I'll need:
a) a timestamp for 'now' generated by the server (eg used on a last
updated field)
b) a timestamp for a user-specified date, like 2003-11-28 13:45:59
Jimbo wrote:
I query and use mysql_fetch_array to get the data into an associative array.
I then build a string and output it like this:
echo "blah blah ".$row["thecolumn"]." blah blah";
What you need to understand is that the string parsing for variables
only happens when the string is actually
Hi Jas,
Perhaps the exim list would be the best place to ask this question but
are you able to send mail using a commond at the shell prompt? if so
that's the command that should go into your ini
Jas wrote:
Not sure how to accomplish this, and yes I have read every post on
Exim's website an
and protected by copyright :-)
Martin Luethi wrote:
download the source code:
http://www.php.net/downloads.php
or browse online:
http://cvs.php.net
the crypt() source is under php-src/ext/standard/
g. tinu
Thu, 29 Jan 2004 09:54:39 +0100 gerold kathan <[EMAIL PROTECTED]>:
hi there - i have use
I'm trying to execute /usr/bin/convert passing the image size and the
file name, the problem is that the file name contains lots of spaces, so
I try to pass "filename with lots of spaces", and nothing works.
I've read something about safe mode, but I have safe mode disabled; I
also read somethi
Running Red Hat Fedora 1, latest updates. MySQL 3.23.58 PHP 4.3.4 Apache
2.0.48.
Uploaded file info not showing up where it's supposed to. Here's the
scenario:
Here is my "form header":
Here is the input field where it gets the filename:
Here is the PHP code that execute
>Sample code:
>
> exec("$imagemagickPath/convert -geometry " .
> "{$thumbnail_width}x{$thumbnail_height} " .
> "$images_dir/$filename $images_dir/tb_$filename");
>
>where filename could be:
>/var/www/html/images/SPIN CoreRT1 to EX-JF1 (cw - kpi - KPI Performance
>Report(Wee
I want to create an old fashioned search function that will look in *.htm and *.html
files above /home/user/public_html and return a URL. Anything handy ? Haven't done or
seen something like that since my Perling days.
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
You are referencing the file vars incorrectly. It needs to be
$_FILES['finame'] not $_FILES['$finame'].
-Original Message-
From: Nicholas Fitzgerald [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 6:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Missing Var
Running Red Hat Fedora
grep
htdig
mnogsearch
aspseek
google appliance
John Taylor-Johnston wrote:
I want to create an old fashioned search function that will look in *.htm and *.html files above /home/user/public_html and return a URL. Anything handy ? Haven't done or seen something like that since my Perling days.
J
Raditha,
mnogsearch spans sites and aspseek is ASP. I was hoping for something simple in PHP
<|:(
J
Raditha Dissanayake wrote:
> grep
> htdig
> mnogsearch
> aspseek
> google appliance
>
> John Taylor-Johnston wrote:
>
> >I want to create an old fashioned search function that will look in *.htm a
hi,
ASP seek is not ASP i doubt if the author of ASPSeek has ever written a
single line of code in ASP. he is a damn good c programmer though. (btw
aspseek is based on mnogo anyway)
mnogo has a PHP api. and there is nothing in the manual that says you
cannot restrict it to one website :-)
all
Hey all,
I have a rather simple need that I am sure a lot of you must have gone
through,
I need a bit of code so that the script can run only at "something.com"..I
am generating
a MD5 license "key" based on that...
Problem that I am having is.. wont I need 2 "keys" to see if the domain is
with a "
Try Axel Search at http://www.geocities.com/nfzgrld
[EMAIL PROTECTED] wrote:
hi,
ASP seek is not ASP i doubt if the author of ASPSeek has ever written
a single line of code in ASP. he is a damn good c programmer though.
(btw aspseek is based on mnogo anyway)
mnogo has a PHP api. and there is n
hi!
i need to maintain session state in my php application. i further need to be
able to distinguish between admin levels and user levels and thus the session
also needs to keep this info (ie, whether person has logged in as admin or user)
any ideas how to do it.
thanks
--
ajay
--
Hi,
This has been discussed and hammered out very often in this mailing list
in the past, you will find countless solutions in the archives. And
anyway no one can help you without knowing what about database or other
storage mechanism etc.
ajay wrote:
hi!
i need to maintain session state in
hi!
well i do have a MySQL database. The scenario is this, i dont want to use
cookies or do any URL rewriting.
i'm looking for something that mirrors J2EE's Session object that contains
information about the user, their security level(user/admin etc) and this
information can then be verified befor
Last time i read the j2ee api i didn't notice anything about storing
admin/user staus in the HttpSession object.
Anyway like i said if you read the manual and SFTA you would have found
the answers.
ajay wrote:
hi!
well i do have a MySQL database. The scenario is this, i dont want to use
cookie
have a user bean, and then session.setAttribute("user", userBean);
do session.getAttribute("user") and validate before processing every request.
Quoting Raditha Dissanayake <[EMAIL PROTECTED]>:
> Last time i read the j2ee api i didn't notice anything about storing
> admin/user staus in the Htt
Hi,
Friday, January 30, 2004, 11:42:14 AM, you wrote:
RM> I'm trying to execute /usr/bin/convert passing the image size and the
RM> file name, the problem is that the file name contains lots of spaces, so
RM> I try to pass "filename with lots of spaces", and nothing works.
RM> I've read something
On Fri, 2004-01-30 at 01:20, ajay wrote:
> have a user bean, and then session.setAttribute("user", userBean);
>
> do session.getAttribute("user") and validate before processing every request.
The php translation of that would be:
$_SESSION["user"] = $userBean;
(some code later, on a different p
These are the exact details...
/usr/oracle permissions 750 owner oracle.oinstall
apache belongs to oinstall.
script permissions in /etc/init.d/apache --> 755
ORACLE_SID=OWEB ;export ORACLE_SID;
ORACLE_HOME=/usr/oracle/product; export ORACLE_HOME;
TNS_ADMIN=/usr/
101 - 137 of 137 matches
Mail list logo