Hello,
I read the support pages at php.net regarding php.ini. Am I correct in the
assumption that so long as you have php compiled as a module for apache that
you can than use apache style directives to override the default php.ini?
Furthmore, are these override directives allowed in a vhost con
Hello,
It sounds like a problem with your HTML output.
First, look at the source of the generated page, and find out if your html
is formatted correctly. Then look at the php code to find out the problem.
-Jason Garber
At 04:44 PM 3/28/2002 -0800, Caspar Kennerdale wrote:
>just a quick query
Why do not you all just put all your PHP logic, db access, etc at the TOP
of the script. Once you have your results and variables created, then
start into html.
This method produces MUCH cleaner scripts, and there is a very minimal
amount of PHP interspersed within the HTML. Also, you have ti
$nWidth = 3;
$oRow = TRUE;
while($oRow)
{
//Write tr here
for($i=0; $i<$nWidth; $i++)
{
$oRow = mysql_fetch_object($dbResult);
//Write here
}
//write /tr here
}
At 12:06 PM 2/18/2002 +, you wrote:
>Hi all,
>
>I w
Hi, Look into mod_rewrite with Apache.
We use it to capture www.univo.biz/yourname and display a page about you.
However, my experience is very limited. I would imagine you could figure
it out though.
-Jason Garber
IonZOft.com
At 09:47 AM 2/18/2002 +, Adrian Murphy wrote:
>Hi,
>I'd like
Hello List,
Does anyone know of a Really Good way to determine what kind of loads your
Webserver/network can handle before degrading performance or flaking
out? I would like to find this out about our server before it fails us
under heavy load.
Thanks,
Jason Garber
Univo.biz
--
PHP Gener
Just a note...
Make sure your server's IP address is not black holed by some spam list...
-Jason Garber
IonZoft.com
At 08:22 AM 2/4/2002 +0100, TV Karthick Kumar wrote:
> Hi,
>
> I use a form on my website for the visitors to send me the feedback and
>use the mail() to do this job for me.
ston wrote:
>Is there a function or class written to convert rtf reliably to html? :)
>Let me know,
>John
>A post & reply would be helpful if you can.
>
>"Jason G." wrote:
>
> > MS Word is a proprietary, binary (i think), format... Have fun.
> >
&g
A quick note...
If you are not aware of cURL (curl.haxx.se), then you may want to look into it.
If you are, then please disregard this post.
-Jason Garber
At 11:06 PM 2/3/2002 -0800, Evan Nemerson wrote:
>Anyone know if there is a way yet to see if a socket is still connected to a
>host? I wan
MS Word is a proprietary, binary (i think), format... Have fun.
There may be a solution out there.
If you could convince her to save it in Rich Text Format (rtf) and then
upload it, your life would be much easier...
-Jason Garber
At 01:51 PM 2/4/2002 +0800, Jack wrote:
>Dear all
>I had made
Hi,
I just thought i would point out that the entire point of crypt, md5, or
MySQL password() function is to create a hash out of the original
string. However, they are designed so it is computationally infeasible to
take a hash and find out the original string was. Actually, it is
impossib
Hi Nicolas,
I would be interested in seeing the javascript md5 function if possible.
Thanks,
Jason Garber
IonZoft.com
At 11:18 AM 1/30/2002 +0100, Nicolas Costes wrote:
>As already said here, you cannot reverse the md5() function ...
>So :
>
> -The user fills a login box (login, pas
Sir,
Would you kindly suppress the 7000 headers that your IncrediblyAnnoying
email program includes. Also, please use only plain-text.
Thanks you,
Jason Garber
IonZoft.com
At 09:17 PM 1/30/2002 +1300, you wrote:
I have two fields artist_id,
artist. How do I put the contents of "artist" into a
Set this:
magic_quotes_gpc=0
in your php.ini
or use stripslashes on all your data.
-Jason Garber
IonZOft.com
At 02:58 AM 1/30/2002 +, Jon wrote:
>Okay, I'm trying to read in a form with " and ' in it. The problem is that
>PHP automatically changes these to \" and \' without asking :( If I
$str = ereg_replace('[-!@#$%^&*()_+=-\';:"/.,<>?]', '', $str);
You may need to escape some of these characters with \
On the other hand, they are contained in a character class [] so you may
not need to escape them. Note how the `-' is in the beginning.
-Jason Garber
IonZoft.com
At 09:13 AM
This has been an interesting thread, so I'll toss in my unique point of view...
I have never held a full time job for anyone but myself. I find good
opportunity and take advantage of it. I make decent money also.
I have not marketed myself as a PHP developer, but rather as a problem
finder a
At 09:35 AM 1/23/2002 +0100, Nick Wilson wrote:
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>
>* and then Jason G. blurted
> > If cookies do not work, then you must have a session_id appended to the
> > URL. HTTP is a "stateless" protocol. So
Hello General and Dev list,
Considering the fact that it is good practice to use htmlspecialchars()
anytime you are outputting non-html content to the browser...
After typing the 16 characters in the htmlspecialchars() function thousands
of times...
I was wondering if it would be feasible to
First of all, make sure the $root->children() returns an array of objects.
Second of all, remove the space between $All_nodes and [1].
Your code should look like:
$childNodes=$All_nodes[1]->children();
If that does not work, you may have to create a temp var to use...
$tmp = $All_nodes[1];
$chi
What you need to do is simply set the variables before you include the script.
When you include a script with include() or require(), they fall into the
same namespace as the include() or require() function that called them.
Best Regards,
Jason Garber
IonZoft.com
At 06:54 PM 1/28/2002 -0800,
Just send a redirect header.
header("Location: nextpage.php");
exit;
-Jason Garber
IonZoft.com
At 08:45 AM 12/11/2001 -0800, Todd Cary wrote:
>I open a socket if I am in the middle of a php script to branch to a
>page so that I can send the header information. However, I understand
>that this
What about the small difference there will be between server time and local
time?
-Jason Garber
At 10:40 PM 12/8/2001 -0500, Alex Shi wrote:
>Basically I agree with you. But the second time to get time must be done
>after the page is rendered on local browser. So I suggest to use Javascript
>for
Assuming you have the variable member_id (for the member in question)...
Get the score for that member and store it to $score...
"SELECT score FROM members WHERE id=$member_id"
Then to determine rank, just do this...
SELECT COUNT(*)+1 as rank FROM members WHERE SCORE>$score;
-Jason Garber
IonZ
You may want to check out something like auto_prepend_file. Look at the
PHP configuration help.
I was thinking that you may be able to include your class definition there
- IF auto_prepend_file IS INCLUDED BEFORE session.auto_start starts the
session.
Otherwise, use auto_prepend_file to incl
Hello all,
I have ran across this error a number of times, and for those of you who
are or will pulling out your hair, read on.
When you get a:
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or
`T_VAR' or `'}'' in your_script.php on line 2149
Check to see if you have al
Doing this is very simple, although a pain in the rear...
For those of you that have any confusion on this issue, pay very close
attention to this script. It effectivly demonstrates how to deal with a
form, and display intellegent errors WITHOUT any of that "...Please click
your browsers back
Miles,
I have come from a QBASIC to VFP to VC++ to PHP (VFP and PHP are my primary
languages), so I'll try to clear it up a bit.
In VFP, there is no constructor. I believe that the equivalent is the
init() method. The init() method, or the constructor (in PHP, C++, etc)
are useful for doing
Miles,
I have come from a QBASIC to VFP to VC++ to PHP (VFP and PHP are my primary
languages), so I'll try to clear it up a bit.
In VFP, there is no constructor. I believe that the equivalent is the
init() method. The init() method, or the constructor (in PHP, C++, etc)
are useful for doing
Yeah, use a real client program like Terra Term.
-Jason Garber
At 05:07 PM 11/24/2001 +, cosmin laslau wrote:
>I've got a huge table that I'm trying to get information about. I use a
>MySQL database, and the windows telnet utility to access it. To see info
>about the table, the DESCRIBE c
Also, If you have an array of addresses, use the implode() function.
$sAddressList = implode(',', $aAddressArray);
and then use that with the Bcc: header in the mail function.
-Jason Garber
IonZoft.com
>Hi Henk,
>
>You don't need a special class, just use:
>
>$to = "[EMAIL PROTECTED]";
>$sub
Keep it mind that EGPCS is in that order for a reason. Changing it can open
up security problems...
-JAson Garbr
At 01:16 PM 11/20/2001 -0800, Fred wrote:
>If you want certain variables to over ride cookie variables you need to
>change the setting of the variables_order directive in ph
You could also try:
if(! ereg('^http://', $url))
$url = 'http://' . $url;
-JAson Garber
At 11:15 PM 11/20/2001 +0100, Daniel Alsén wrote:
> > How about:
> >
> > if (substr($url,0,7) <> "http://";)
> > $url = "http://"; . $url;
>
>Thanks!
>
>That´s just the function i am looking f
"Bcc: [EMAIL PROTECTED],[EMAIL PROTECTED]"
Or
"Cc: [EMAIL PROTECTED],[EMAIL PROTECTED]"
Or
"To: [EMAIL PROTECTED],[EMAIL PROTECTED]"
Put a comma between email addresses.
-Jason Garber
IonZoft.com
At 01:00 PM 11/19/2001 -0600, Anthony Ritter wrote:
>Hi,
>Thanks to all that helped me out yesterd
We are not writing in perl...
Php offers a very handy feature, the ability to go in and out of html/php
code by just using and the ability to echo data by using
Seperate as much of your HTML from your PHP as possible. It will assist in
readability, and
maintenance.
Well, you can make good use of regular expressions, or write your own function.
(It turns out i needed the functions, so I just wrote them, and included
them here)
**
//This regex checks for > 1 letters in a string - anything else will fail
if
I believe that there is something like crontab for windows... If not, then
you could write one in C or C++ or VB etc...
From apache/mod_php, set a marker in a file, or in a db.
Every minute, or 5 minutes, or 15 minutes (you decide), your crontab
equivalent will call a cgi/php script that che
Use the $HTTP_SERVER_VARS['REMOTE_IP'] variable...
At 01:58 AM 11/19/2001 -0800, Heidi Belal wrote:
>Does anyone have any idea how i can detect a clients
>IP address? I've found javascripts on the net but
>they only work on netscape and only when java is
>enabled. I need it to work on IE.
>Than
I needed this once, but I could not figure out how to just create the vars
in current scope.
If my_extract() is called from within a function, then the variables will
not be available unless you declare them global (which kinda makes the
function pointless).
Any ideas?
-Jason Garber
IonZoft.
Check the return value of mysql_query(). It should either evaluate to
false, or true. If false, then output some error messages using
mysql_error() and mysql_errno().
-JasonGarber
IonZoftDotCom
At 01:29 PM 11/17/2001 -0500, Jeff Lewis wrote:
>I am wondering if there are any difference betwee
You could check the list archives... This question flys by every week or
two...
-Jason Garber
IonZoft.com
At 01:41 PM 11/17/2001 +0530, Adrian D'Costa wrote:
>Hi,
>
>Is there somewhere on the PHP site that give a list of advantages, speed,
>etc in comparsion with other similar programs. I hav
It seems to me that the use of a temp variable may be the clearest
solution, and I doubt any overhead would matter really.
$a = "dog";
$tmp = "MY".$a; //$tmp = "MYdog";
So the following two would be the same:
$$tmp = "Spot";
$MYdog = "Spot";
Good Luck,
Jason Garber
IonZoft.com
At 09:47 PM 11
try this..
Raw html code here for
as long as
you want
More
Raw
Html
Code
Here
Ok, I figured out that just using echo seems to be the best way to do this
>under PHP. In ASP, you can end your code block and
it seems that...
$newarray = array()
foreach($oldarray as $key => $value)
if(! isset($newarray[$key]))
$newarray[$key] = $value;
-JAson Garber
IonZOft.com
At 10:42 AM 11/14/2001 +0100, Spunk S. Spunk III wrote:
>Thanks everyone for the ideas,
>Here's what I came up wit
your error reporting must be set to E_ALL.
a very simple way is:
$checkbox_3 = isset($checkbox_3);
Now, $checkbox_3 will be either TRUE or FALSE with no errors!
-Jason Garber
IonZoft.com
At 06:03 AM 11/14/2001 +, [EMAIL PROTECTED] wrote:
>In am HTML form, checkboxes NOT checked are not pas
Hello,
Does anyone know of a way, that from within a function, you can determine
what line number and file the function was called on?
I did try:
function myfunc($lineno = __LINE__)
{
echo $lineno;
}
but this just outputted the very line that __LINE__ resides on.
This would be very hel
I am just learning them, but I think something like this may be in order...
I know that you would use the | (or) operator.
if(! (ereg('^[a-z|A-Z|0-9|\-]+$', $fn) && (ereg('^[a-z|A-Z|0-9|\-]+$', $fs)))
{
Either $fn or $sn failed the match
}
-Jason Garber
IonZoft.com
At 04:41 PM 11/13/
try ".mysite.com"
-Jason Garber
At 12:07 PM 11/13/2001 +1100, Chris Kay wrote:
>I have a simple question that bugging me..
>
>I have a site which I am designing with users auth, I have decided to use
>cookies as I need to store variables after the user leave the site..
>
>Problem I am having is
Try putting exit; right after the header() function...
-JAson Garber
IonZoft.com
At 06:54 PM 11/4/2001 +0100, Martin wrote:
>Jack Dempsey wrote:
>
> > you're assigning, not checking for equality...use two ='s
>
>Still not redirecting ...
>
>Martin S
>
>--
>PHP General Mailing List (http://www.ph
I tried and tried. I finally got it to work (multipart/alternative) after
reading the rfc. Read RFC 1521 at
http://www.faqs.org/rfcs/rfc1521.html. Look at section 7.2.2. It will
tell you all you need to know.
By the way everyone, from faqs.org, WHICH I AM SURE MOST OF YOU USE TIME TO
TIME
Regarding your mysql_insert_id() function:
I believe that it works on a connection by connection basis. Therefore, if
you execute an insert, and then call that function, you are guarenteed to
have the correct ID. Look up the LAST_INSERT_ID() function in the MySQL
manual on www.mysql.com for
Just a thought...
Check out crescent internet toolkit by Progress Software. It has a control
for VB that lets you post data to a script, rather than relying on an HTML
form...
Can you just use a query string? you may have to code your own urlencode()
function in VB, but that may be an optio
I just did that tonight.
Lookup the predefined variables in the manual.
$argc gives a count of the arguments
$argv is an array of the arguments
Ex:
php -q myscript.php Apple Orange
$argc == 3
$argv[0] == 'php -q myscript.php' or something like that
$argv[1] == 'Apple'
$argv[2] == 'Orange'
-Ja
I've just been watching the posts regarding this issue.
I can see the following:
You SHOULD test it on *nix JUST to narrow down the problem.
You ask for help from all the *VERY NICE* people on this list, and then
WILL not do what they say will help???
If you do not like the php smtp implementat
READ THE MANUAL.
variable variables
$i=1;
$sName = "seat$i";
$value = $$sName;
At 04:40 PM 10/31/2001 +1100, sc wrote:
>Hey all;
>
>If i have a variable say, $seat and i want to go through variables with a
>number, ie. $seat1 , $seat2 etc. how would i go about it? i have one setup
>where $p in
Ever consider reading the online manual?
First, say header("Content-type: image/png");
Second, create image.
third use ImagePNG() function
fourth, destroy image.
fifth, go directly to the php script that generates the image, then you
will see PHP generated errors.
-Jason Garber
IonZoft.com
At
Second comment is that we are not a review board for specific products.
At 10:40 PM 10/30/2001 +0300, you wrote:
>Good day!
>
>I try to wrote Web-interface for DNS. Only simple test version now. I'd like
>to listen your comets to make real good and useful thing. mail me you
>coments
>please
>
>G
Give ImagePNG a try...
-Jason Garber
At 10:22 PM 10/29/2001 -0800, costa wrote:
>The text printed on this image looks sloppy and grainy. (This image is being
>generated on a linux server RH 7.1, Apache 1.3.19, with GD 1.8) I remember
>seeing something about adjusting the quality of the image, bu
Set the expire date to be 0. then the browser will delete them after the
browser window is closed.
-Jason Garber
IonZoft.com
At 02:39 PM 10/29/2001 +0100, Andy wrote:
>Hello,
>
>I have developed a member login system with cookies. Now I have the prob,
>that the session stayes existend when the
I believe one of your boundarys has -- at the end. According to the RFC
dealing with this subject, stick -- on the end of only the last boundary.
-Jason Garber
IonZoft.com
At 02:13 PM 10/12/2001 +0530, Sharat Hegde wrote:
>Hello,
>
>I am trying to send multiple attachments by email from
Umm...
function top($image = '')
{
echo("bla bla $image bla");
}
Might need to use an IF (because of having 2 spaces if the image is empty)
-Jason Garber
IonZoft.com
At 10:14 AM 10/24/2001 -0700, Richard S. Crawford wrote:
>function top ($image) {
> if ($image) echo "blah bla
It may be possible to do something of the following:
I know that on rollovers, Javascript can preload the images needed to
rollover to... Hmm... Maybe you could have javascript load an image
during the unload event with the image's src pointing to a php script...
-Jason Garber
At 04:51 PM
From the manual:
Unlike include(), require() will always read in the target file, even if
the line it's on never executes. If you want to conditionally include a
file, use include(). The conditional statement won't affect the require().
However, if the line on which the require() occurs is no
Chip,
I read all of the posts regarding this topic that I could find, and just
*had* to reply.
(Take the TIME to look at this. It is about the most Efficient, Powerful
way I know of)
Do this!
__
txtNAME="Required";
if(empty($txtADDRESS))
Why don't you do something like this:
Then search for a regx something like (I am not sure of the
exact syntax).
Then parse the found tag, generate your I'm reading some HTML text from a file and echoing it to
>stdout. The HTML text contains but I would rather
>have the server do the work o
Take a look at the exec() and system() functions.
-Jason Garber
www.ionzoft.com
At 08:55 PM 10/2/2001 +0200, Bjornie wrote:
>Hi everybody!
>
>I have a problem :/
>I just said yes to a project, which includes webmail. I know how to send
>mail and how to receive mail with imap, but can I in any w
Give the select tag an ID. You can then reference the element by its ID.
alert(aname.value);
-Jason Garber
IonZoft.com
At 01:25 PM 10/2/2001 +0200, Sebastian wrote:
>Hi all
>
>If i use multiple select fields in a from
>i use name[] to access it in php afterwards
>
>test1
>test2
>
>
>
t wrote:
>But how would you use this to create new global variables with $td as the
>prefix?
>
>$td = "foo";
>
>then we want new global variables
>
>$foo_error and $foo_ok created.
>
>--
>Justin Garrett
>
>"Jason G." <[EMAIL PROTEC
want to access $sHello_error and
>> > $sHello_ok in this function.
>> >
>> > Any idea how I can make this variable gloabl and whats the easyst way to
>> > access this var then?
>> >
>> > Martin
>> >
>> >
>>
>>
>>
>
I have used:
global $$td;
in the past with success...
-Jason Garber
IonZoft.com
At 07:38 PM 9/30/2001 -0700, Justin Garrett wrote:
>Maybe something similar to this?
>
>function test($td){
>
> $global = "global \$$td"."_error, \$$td"."_ok;";
> eval($global);
>
> $set = "\$$td"."_e
&zE: wrote:
>
>From: Jason G. <[EMAIL PROTECTED]>
>Date: Thu, Sep 27, 2001 at 03:25:16AM -0400
>Message-ID: <[EMAIL PROTECTED]>
>Subject: Re: [PHP] handling errors
>
> > Placing an @ symbol before the function name will suppress any errors.
> > @GetI
check out the serialize() and unserialize() functions in the manual.
replace this:
print(" sort ");
with this
sort
Excerpt from the manual:
http://www.php.net/manual/en/function.serialize.php
If you are passing serialized data between pages in hidden form
fields (or in a query string), you n
Placing an @ symbol before the function name will suppress any errors.
@GetImageSize()
At 09:09 AM 9/27/2001 +0200, * R&zE: wrote:
>
>From: Joseph Bannon <[EMAIL PROTECTED]>
>Date: Wed, Sep 26, 2001 at 11:09:39AM -0500
>Message-ID:
><[EMAIL PROTECTED]>
>Subject: [PHP] handling errors
>
> > How d
A good question is: Do you REALLY need the speed difference, or should you
be asking which is the best language to do Dynamic Web Development
in??? Which is better supported, which is most cost effective, which is
Open Source, which is Better...
-Jason Garber
deltacron.com
At 02:48 PM 9/27/
echo "
Missing end quote and semicolon on this line may be the reason...
Try properly indenting and formatting your code. Also take advantage of
going in and out of php mode to seperate your code from your display of
content...
Ex:
instead of this:
$sContent"); ?>
Try this:
Or even this:
Try This...
for($i=1; $i<=35; $i++)
{
$sVarName = "link$i";
if(empty($$sVarName))
{
//Do Something
}
else
{
//Do Something Else using $$sVarName...
}
}
-Jason Garber
deltacron.com
At 01:42 PM 9/25/2001 -0400, Jordan Elver wrote:
>Hi,
>I'm feeling a
First of all, you need to type
header("Location: thankyou.html");
exit;
Try that...
-Jason Garber
deltacron.com
At 09:26 AM 9/25/2001 +0600, Tshering Norbu wrote:
>Hi list,
>I can not get the form (from thesitewizard) working. When I submit the form,
>I get this error: "Warning: Failed to Con
Mark,
PHP, at this point, does not support MultiDimension arrays. However, you
can get around this by placing array's inside arrays.
Thus:
$myarray[0] = array("element00", "element01","element02");
$myarray[1] = array("element10", "element11","element12");
$myarray[2] = array("element20", "el
Sorry,
In this case, use explode() instead of split() ...
Andras,
$aRay = split('.', 'mypicture.jpg');
$aRay[0] will be the filename
$aRay[1] will be the extension
-Jason Garber
www.deltacron.com
At 03:14 PM 9/20/2001 -0700, Andras Kende wrote:
>Hi,
>
>I trying to cut the last 4 char of a s
Andras,
$aRay = split('.', 'mypicture.jpg');
$aRay[0] will be the filename
$aRay[1] will be the extension
-Jason Garber
www.deltacron.com
At 03:14 PM 9/20/2001 -0700, Andras Kende wrote:
>Hi,
>
>I trying to cut the last 4 char of a string but sometimes its cut 3 sometime
>4 char
>
>$pic1
One of my largest is a function of a complete session management class that
I wrote - 150 lines. The class is ~ 450 lines.
When you find yourself writing HUGE functions, it may be better to split it
into smaller, more clearly defined functions or classes and do it that way...
-Jason Garber
Le
Well,
Here is a function that may be helpful. The bad part is that I never
finished it, so it only accepts dates in the MDY format...
http://www.deltacron.com/source/check_date.php
BTW... If you already have a connection to MySQL, you could send simple
queries to it to take advantage of its
Well,
Here is a function that may be helpful. The bad part is that I never
finished it, so it only accepts dates in the MDY format...
http://www.deltacron.com/source/check_date.php
-Jason Garber
www.deltacron.com
At 08:56 PM 9/20/2001 -0700, you wrote:
>ey guys.. how do i check if the pos
Please only post a question ONCEE
PHP does all of it's work on the server, Going back to a previous page
(without reloading it) is done by the Web Browser.
The only way I know of is maybe to have php generate an empty page html
that has:
onLoad="javascript:history.go(-2);" in the body tag
Please only post a question ONCEE
PHP does all of it's work on the server, Going back to a previous page
(without reloading it) is done by the Web Browser.
The only way I know of is maybe to have php generate an empty page that has:
At 03:49 PM 9/20/2001 -0400, Wee Chua wrote:
>Hi all
The php manual mentions about compiling php with Open API headers for Ingres. We are
using the commercial version of Ingres II for NT. Is this a different animal from
Ingres for Linux or should I contact Computer Associates to get those headers? How do
I get php to access directly to Ingres II
85 matches
Mail list logo