Hi,
Is it possible under PHP4 to get the name of the file that a function was
called from? To clarify, here's an example of what I'd like to do:
--- main.php ---
--- include.php ---
Does anyone know of a way to do this? I've tried several different things,
i
This looks like it should do exactly what I need. Thanks for pointing that
out.
Marek Kilimajer wrote:
> See function debug_backtrace(), it's available since 4.3.3
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying the example client code under Socket Functions in the
documentation and I get the error:
Fatal error: Call to undefined function: socket()
Is there any way to enable this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
I saw was "mysql.default_socket"
which doesn't seem relevant.
Any other ideas?
Michael Stearne wrote:
> If you make a page with phpinfo() you will see all the compile options
> that were used for the particluar build you have (at the top of the page).
>
> Michael
>
If I am incorrect in this belief, please tell me how to enable this.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
m
not sure performing a manual request is necessary, but maybe it is.
Chris
--- Todd Cary <[EMAIL PROTECTED]> wrote:
# now we build our query
$query = "GET $abs_url" .
"HTTP/1.0\r\n" .
"Accept-Language: en-us\r\n".
"Host: $host:$port\r\n".
"Connection: close\r\n";
--
any thanks..
Todd
--
I am running PHP in a RedHat 7.3 environment and I notice that the graphic
functions are not present. Since I am quite new to Linux, I would appreciate
it if someone could explain to me what I need to do to have graphic functions.
Many thanks.
Todd
--
Are there any instructions on how to configure the GD libraries and compile
PHP? I guess then I will have to recompile Apache so that it includes the
"new" PHP??
Todd
Scott Hurring wrote:
With RedHat, AFAIR you have to compile PHP from source
*after* first configuring the GD
syntax and order for doing this?
Todd
--
Is there a function that can be implemented with PHP to do the
equivalent of a mysqldump?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
AddType application/x-httpd-php .php
However, I get an error when Apache tries to load the dll. Has any successfully
installed PHP and Apache on Windows XP? If so, what changes are made to
the conf file?
Todd
--
I am having a problem getting Apache to load the php4apache.dll.
I have tried putting the "/" and "\" in every way I can think of and I
get an error that Apache cannot find
c:/active_php/sapi/php4apache.dll (and it IS there).
LoadModule php4_module c:/active_php/sapi/php4apache.dll
I have even
security of XP and Win 2K SP 3 that
does not let the dll load and run. Ever since I loaded SP 3 I have had
problems - like many others!
Now to figure why it will not let Apache load and run the dll?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
I am a PHP newbie, and I am having difficulty in getting my records to display
here is my code
\n");
print ("\n");
print ("\n");
print ("Calender
\n");
print ("\n");
print("$result[meeting_name]\n")or die ("you suck");
mysql_close ($Link);
?>
any help?
Okay...I am now having difficulty with putting things INTO the database.
The form is on another page, and links to this one.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Access
Does anyone here have any idea how to connect access to PHP?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I have figured out how to connect it, I think
But now I get this error
I have it connected, now I am getting the following error
Warning: SQL error: , SQL state 0 in SQLConnect in c:\program files\apache
group\apache\htdocs\test.php on line 7
Any ideas?
I was just checking to see if the connection was working
This one lacked a sql statment
- Original Message -
From: "Paul Roberts" <[EMAIL PROTECTED]>
To: "Todd Barr" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 11:57
Hello,
I am having an issue. I am using an access database, where the names have
whitespace.
Now, when I try to generate a link within the php script I get just their
first name
But in the link itself I get the whole name
so the html link looks something like this
http://www.whatever.com/dave
Hello all
I am having issues passing vars in the url
example
here is my url
http://localhost/tsatest.php?Sub_Task=2
and here is my code
$link = odbc_connect( 'TSA','','');
$Query = "SELECT * from projects where sub_task='$Sub_Task'";
$Result = odbc_do($link, $Query);
All this returns is a blan
I am having difficulty putting results into an form
Once the query runs, I have this for my output
print "";
This results in an HTML error
being apache finds an error AFTER the tag
Any ideas?
Parse error: parse error in C:\apache\htdocs\tsadbatest.php on line 148
Its the line after the html ends
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Todd Barr" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, Febru
Hello folks,
I was wondering if anyone had anyluck with empty fields in Access.
Basically, I have an update page, and sometimes items are left blank on purpose.
but when I click to update, it gives me an error, as some fields are left blank.
Is this an access thing, or can I code around it. Th
Hello,
I am having issues after I upgraded from 4.0.5 to 4.3
Alot of my link pages were based in www.something.com/phptest.php?foo=9323
Now that I have upgraded, I get foo errors.
It says that it no longer gets the foo value...
how can I fix this?
THanks
-T
lderrno = ldap_errno($ldlink);
print "ERROR: $lderrstr ($lderrno)\n";
}
Thanks,
- Todd
here is my code
$Query = "SELECT Last_Login and Current_Login from Security where PM_ID=$_SESSION[ID]";
$Getdates = odbc_do($link, $Query);
while(odbc_fetch_row($Getdates))
{
$Last=odbc_result($Getdates, 1);
$Now=odbc_result($Getdates, 2);
Now I get an error that tells me that #2 is out
I have tried this 3 different ways and none of them worked...
I am trying to get javascript to generate a popup, with a variable passed along in the
url.
echo"";
this doesn't work, neither does stopping PHP and then restarting...
Blah, any advice on how to embed javascript?
I want to display a file under program control in the same manner as one
would with using an >a> tag e.g.
Click here to open the Race Schedule
In other words, if certain conditions are met, then I want to display
the file. What is the best way to do that?
Many thanks.
Todd
--
OK! This makes sense. What is the syntax to do
b) output an appropriate header for the file type
c) pass through the actual file contents
if I were doing an HTML file - if I were doing a PDF file?
Todd
Justin French wrote:
Same way
image.php would do simular things to what view.php does
ld like to open the file in a new window and I am not sure how
to do that.
Todd
--
Ariste Software, Petaluma, CA 94952 \n [EMAIL PROTECTED]
application that can intercept the Socket stream?
Todd
--
hat is the best solution for this?
Todd
--
<>
I understand what has to be
done, but I do not know the steps or syntax. Is there documentation
available for doing this?
Todd
--
<>
Brad Pauly wrote:
Todd
Cary wrote:
Linux is quite new for me, so please forgive
me if my questions are rather basic.
I have RH 9 installed and I want to add the Interbase extensions to PHP
and then recompile Apache. Conceptually I understand what has to be
done, but I do not know
I would like to encode and embed an image in a file that can be
emailed. Is there some documentation on how to do this?
Todd
--
<>
submitted. Is there a way to
prevent this? Here is the code I tried:
When the above is executed, the page is submitted, and I do not want
that
Todd
--
<>
I have a client that insists that I use SQL Server as the DB (vs. MySQL
or Interbase). I have not used PHP's ODBC interface and I am wondering
if anyone on this list has had experience with ODBC and SQL Server.
Todd
--
<>
I am creating a "report" that the user can download and it is a HTML
table. Is there a way to put Page Breaks within the report so if the
user prints it, it will page break a predefined places?
Todd.
--
<>
Can the DB be on a different server than the page server?
Todd
--
--with-apxs=/usr/sbin
36 ./configure --with-interbase=/opt/interbase
--with-apxs=/usr/sbin/apxs
What do I need to add to this to include the graphics library?
Many thanks...
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
<<<
You'll probably
still want to get libjpeg and libpng, and link against them with the proper
configure options.
>>>
What is the correct syntax to do all of the suggestions?
Todd
Martin Helie wrote:
Well, not necessarily, since gd is included with php 4.3.x
I would like to have a reccommendation for a PHP class that generates a barcode.
Many thanks...
Todd
--
I am trying to get the Sample Barcode to run on my server, however the
following line does not execute:
echo "";
To see if it is executing, I have an "Echo" statement in the script.
The image.php file is in the same directory as the other script files.
What am I missing here?
Todd
--
ot;;
}
Alex Ciurea wrote:
did u made copy&paste with your code?
yes? then why don't you try to use the path='image.php?blahblahmoreblah'
no? then please give us more details about the error you're getting...
good luck,
Alex
- Original Message -
From: &quo
ing in the php.ini file that would prevent image.php from
executing? I do have
register_globals = Off
However, I get the variables with $HTTP_POST_VARS[] statements.
Todd
Marek Kilimajer wrote:
How do you
know it is not being accessed? You should output an image, and if it is
not an image, br
etting for register_globals :
on or off. As i stated, my preference is to have it "off".
Sorry for not setting register_globals = On right in the beginning...it
would have saved a lot of time :-)!!
Todd
Alex Ciurea wrote:
Ok Tod, this is what I understood so far:
1) image.php should generate f
Is there a way to check within an application if the "gd" library has been
installed?
Todd
--
I have noticed that quite a few applications are designed with the assumption
that "register_globals = Yes"; in other words, the application does not use
$HTTP_xxx_VARS. In contrast, I always retrieve my vars.
Is there a preference?
Todd
--
Wouldn't I then have to scan the results? I use phpinfo() to checks the
client's installation, but I would like to do it within the app.
Todd
Esteban Fernandez wrote:
"Todd Cary" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]...
ending the filename with PHP.
My hope is that their is some directive that I can output at the start that will
invoke the PHP interpreter so that my output will
be run as a PHP script rather than just HTML.
Thanks,
Todd Snyder
Code 6093, 812-854-1685
Electrochemical Power Systems
--
PHP General Ma
ce($image, 50, 0, $firstpage);
In other words, I want to put the barcode date into $data and I am not sure
how to do this. Any help is greatly appreciated.
Todd
--
ost wont
load the perl modules though. The company is
www.ipowerweb.com
Anyway, the suggestion to make a system call looks like my best route for doing this.
I also will take a fresh look at my code to see if I can divide it up better to make
use of PHP for the image prior to running my
perl scr
Below was their reply to me when requesting info about the imagemagick perl module
>>Thank you for contacting iPowerweb technical support.
>>
>>We do have image magic for PHP, but the one for Perl we do not have and cannot
>>install. You >>may or may not be able to shrink
images. Contact the crea
eg_replace("\\[^\\]+$","",$fullpath) . '\\';
What have I missed?
Todd
--
What is the best way to validate a "money" input? For example, 3452.67 versus
3452..67.
Todd
--
Hi,
I'm trying to work out how to schedule tasks in php. I would like to use at
but are having a few difficulties.
Does anyone have any suggestions on an alternate way to schedule a command
to run on the system via php.
Thanks a lot,
Todd.
--
PHP General Mailing List (http://www.ph
thing happens to me, however, sessions are working fine throughout
the entire site... just wondering.. is it actually inhibiting you from doing
anything?
todd.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
be
true.
Is there something im missing?
Todd
> What is the "and" "or" statement in php?
>
> I need this to see if the first statement is whatever, and or the second
> statement is whatever...
>
> if (!isset($PHP_AUTH_USER) "and
> Fatal error: Cannot redeclare class dmsql in
It looks like you are after include_once
http://www.php.net/manual/en/function.include-once.php
Todd
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 29, 2002 2:48 PM
Subje
> What is the proper syntax for storing an array in a session?
>
> is it $_SESSION["BILLARRAY"]=$ARRAY?
Yep, providing youre using session_start() and session_register("_SESSION")
you can assign any type of data, just like a regular hash.
Todd.
- Origin
fies the links for
a recorder I am building. You could do something simular with it, although
if you need the name, you might want...
$search '/(.*?)<\/a>/im';
And $4 would be your name.
I hope this helps.
Todd.
- Original Message -
From: "Charles Fowler" &
t allowing multiple character by using * or + or alternative
- having A-Za-Z instead of A-Fa-F
I hope this helps
Todd.
Note: I used /i to be non case dependant, maybe dropping it and having A-F
as well would be quicker.. not too sure.
- Original Message -
From: "Adam Alkins" &l
this in PHP?
By changing the useragent will this also resolve problems with javascript?, I'd like
the target server to think that I can view/run it.
Thanks heaps,
Todd.
You can use
exec($command, $result);
which will throw any stdout output into $result
Im not sure if it works with stderr as well, you will have to try it :)
Todd.
- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: <>
Sent: Friday, August 30, 2002 7:06
to be safe than sorry. There
is a remote chance that it is not a virus, but i dont trust microsoft and i dont trust
executable attachments.
Cheers,
Todd.
t need this as well. Im sure
you can relate.
Todd.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:)
thanks to anyone who thought about replying :)
Maybe this discovering might help someone else also, hence my post.
Later,
Todd.
> -Original Message-
> From: Todd Pasley [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 30 August 2002 6:19 PM
> To: [EMAIL PROTECTED]
> Subject:
Hi
Instead of
> retrun false;
im sure you meant
return false;
The reason its working with confirm and the like is because of their return
code which is actually true.
Try changing it to return true, im pretty sure that will fix it.
Cheers,
Todd.
> -Original Message-
Ooops, thats right. I should check over before i send i guess.
Sorry,
Todd
> $_SESSION is a predefined variable, session_start()
> session_register('BILLARRAY') should work though :)
>
> Keith Vance
> Vance Consulting LLC
> www.vanceconsulting.net
> (206) 355-
Use ; instead of |
e.g.
shell_exec("cd /change/to/dir; tar cvf /place/for/backup.tar files");
Todd.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 2 September 2002 9:40 AM
> To: php-general
> Subject: [PHP] using
resources.
Todd.
> -Original Message-
> From: Todd Pasley [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 2 September 2002 1:32 PM
> To: Richard Kurth; php-general
> Subject: RE: [PHP] using shell_exec
>
>
> Use ; instead of |
>
> e.g.
>
> shell_exec("cd
sv/printwn/language.types.string.php#language.typ
es.string.syntax.heredoc)
It doesnt matter whether you use EOD or EOT or any other (naming convention
compliant) identifier.
I hope this helps,
Todd.
> -Original Message-
> From: Voisine [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 3 September 2002 3
r the appropriateness of LOC as a measurement, I
have chewed up a lot of time with discussion over this so I'm not going to
bite this time :)
Thanks,
Todd.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You can get vi/vim for windows, without a doubt the best editor of all time
if you can be bothered learning the commands.
Todd.
> -Original Message-
> From: Bryan McLemore [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 21 September 2002 11:16 PM
> To: PHP GEN LIST
> Subjec
Sure you can, however,
1) u prob. want $_SESSION['name'] = $_POST['name'];
2) remember that if you are calling this within the scope of a function you
will have to use $GLOBALS to declare $name as a global before you utilise
session_register.
Todd.
> -Original Mes
I use
http://place.to.redirect.to>
Todd.
- Original Message -
From: "Sascha Braun" <[EMAIL PROTECTED]>
To: "PHP Mailingliste" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 9:42 AM
Subject: [PHP] Redirection
Hi,
I want to post a form a
ht be possible if you write an applet, otherwise, pretty much the only
thing you should be able to write to the hard drive is a cookie.
HTH
Todd.
> -Original Message-
> From: Diana Castillo [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, 29 September 2002 12:03 AM
> To: [EMAIL PRO
string that will be
in a valid format for use with imagecreatefromstring.
Any help at all would be greatly appreciated.
Cheers,
Todd.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What you seem to be looking for are the javascript functions, alert, confirm
and/or prompt. for a billion examples see...
http://www.google.com/search?num=20&hl=en&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&;
safe=off&q=confirm+alert+prompt&btnG=Google+Search
Todd.
>
Try looking at the following paper, it looks very good.
http://conf.php.net/pres/slides/oci/paper.txt
HTH
Todd.
> -Original Message-
> From: Juan Antonio Ruiz Zwollo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 2 October 2002 11:28 AM
> To: [EMAIL PROTECTED]
> Subject
pointers or
sites they have found on this subject..
Thanks
Alan Todd
Webmaster : Gibhut.com
icq : 159944
-- while( !asleep() ) sheep++; --
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My coding is not very concise and I would appreciate suggestions on how
to clean this up even though it works:
/* MySQL to date */
function mysql_to_date($mysql) {
$retval = "";
if ($mysql) {
$parts = explode("-", $mysql);
$mo = $parts[1];
$dy = $parts[2];
$yr = $parts
srand((double)microtime()*100);
$anticache= md5(rand(0,999));
and then
echo "\n";
Since this addition, i have never had a problem with cache,
HTH
Todd.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Realistically, there is no difference. It is *slightly* quicker to parse,
but thats about it.
I think it was introduced to satisfy those that have used this type of
syntax in other languages, like C and Perl (which users elsif).
I usually use elseif as its a bit nicer looking (IMHO)
Todd
I have an array of months (monthList) that I use for a drop-down. I
would like to initialize the month to "ThisMonth" using "time()". What
is the best way to get "November"? from "time()"?
Todd
--
Ariste Software, Petaluma, CA 94952
myvar=select2.
Is it possible to get both values?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
derstand
you suggestion, which works like a champ, the use of the "[]" tells the interpreter
to treat $myvar as an array.
Todd
Marco Tabini wrote:
Sure! Just add [] to the end of the name of the field. PHP will return
all the values in an array:
Marco
be a problem.
Todd
David Rice wrote:
On Tuesday, November 12, 2002, at 07:34 PM, Ernest E Vogelsinger wrote:
Sure it is - just name the listbox control "myvar[]" (note the angle
brackets). PHP will recognize this being an array, and you'll end up
with
$myvar = array(
ith a sample C program and a Perl script,
not to mention as I stated above PHP standalone works fine.
Im not sure what's happening to prevent the porper crypt support from
getting in. Any suggestions would be appriciated. System specs below.
TIA!
I am able to open a socket and send POST data, however I do not know the
format of doing the same for the GET method. Here is my POST Query:
Query: POST http://209.204.172.137:80/_calendar/php/selectevent.php HTTP/1.0
Accept-Language: en-us Host: 209.204.172.137:80 Connection: close Content-
Chris -
I must be missing something because when I execute the following code, open
the socket, and send the query, the form that the info is going to gets created
but it is corrupted. Do you see any obvious error?
Todd
if (!empty($request)) {
$path = $path
ery
$query = "GET $abs_url" .
"HTTP/1.0\r\n" .
"Accept-Language: en-us\r\n".
"Host: $host:$port\r\n".
"Connection: close\r\n";
Todd
Chris Shiflett wrote:
--- Todd Cary <[EMAI
stead of the generic 401 page.
Any ideas on how to avoid the 401 page?
Thank you,
Todd
. I have to get my information by calling what would ususally be the
indexes e.g. $HTTP_SCRIPTNAME.
Is there a switch I did not set?
Todd
--
Todd Cary
Ariste Software
2200 D Street Extension
Petaluma, CA 94952
707-773-4523
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
I agree completely. Here is an editor I like because it can be customized.
http://www.gwdsoft.com/
Todd
--
Todd Cary
Ariste Software
2200 D Street Extension
Petaluma, CA 94952
707-773-4523
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Is it possible to define a variable, such as:
$foo = "bar";
and then do as follows to create a totally different variable:
$$foo = "text here";
this seems to mean $bar = "text here";.
Is this a bug or can we legally use it.
Steve
I would like to provide the surfer with a text input area that would
give a means of using bold, underline and different text colors. Can
this be done with PHP?
Todd
--
<>
I would like to have a HTML editor on a Web site so the user can create
HTML based text. Google brings up too many matches when I type in
"Browser HTML editor Java" that do not match my needs. Does anyone
have a suggestion?
Todd
--
<>
1 - 100 of 779 matches
Mail list logo