Can anyone direct me to some sample PHP code that extracts HTML from a
template file and replaces the, say, "%field%" tags in the HTML with
variables from the PHP file.
Just like what Gossamer Threads Links program does with Perl. So, any 1 have
any links??
--
PHP General Mailing List (http:/
1) Is there any PHP command that'll convert a MySQL database timestamp into
a format that humans can read?!! For example, I want to change
"20010822001245" into "00:12.45 on the 22-08-2001"?
2) This is the hard question. I have a script that gets values from a
database and then includes a php pag
Ok, i have a script that creates a page that will be submitted to search
engines. I had originally planned on having one line of code on the search
engine page:
include(http://localhost/freelance.php3?id=1);
But for some reason, it doesnt work. I've tried everything, changing the
php3 to php and
I have a simple php script that searchs a MySQL database and returns results
that I made myself and I'm trying to implement code that splits the results
into x amount of pages, buts it really tricky.
Can anyone give me a link to some code or even better, a search database
script that I could adap
How do I find out with PHP who the current .htaccess user is??? Enviroment
variables?
--
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]
How do I find out with PHP who the current logged in .htaccess user is???
Enviroment
variables?
--
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 PR
well, i solved the last problem on my own but now i need help on my new one
:-)
how do you convert text to hexadecimal with PHP?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
rite,
my primary key column ("id") is set to auto_increment as usual which is very
handy. But when I delete a row, the auto_increment just keeps incrementing
and there's this 'hole' left where I deleted the row!
Apart from this looking ugly, it poses another problem. In my PHP script
where I can
i assume this is a simple question...
how can I SELECT * FROM 2 different tables in the same query, ORDER BYing
the 'hits' column, which both tables have.
eg, 2 tables i have are similiar and i want to merge them and then select
everything ordering by hits
--
PHP General Mailing List (http:/
When I create directories in PHP through the mkdir() command, what number
should I set the mode so I have the priveleges to delete the directory
through FTP? I used to always set them to 777 but then when I try to delete
the directories in FTP, it doesnt let me, and I have to write a PHP script
th
rite,
without access to the php.ini file, how can i get php to print all errors on
my web server. it runs linux
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing
i wrote a function do write a file for me on info taken from a db, and wrote
a script with a for loop going through every row in the db, and calling the
function. so the function is called about 200 times. but i'm getting weird
results, the files are corrupted. its grand when i just go one at a ti
; do this.
>
> unset($variable);
>
> OR
>
> $variable = "";
>
> Either will do.
>
> ~ Matthew
>
> -Original Message-
> From: Georgie Casey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 10:30 AM
> To: [EMAIL PROTECTED]
> Subject:
its supposed to write a MIDI file from some music notes, the start of the
MIDI file is grand but the end has some of the MIDI from the next database
record!
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
002e01c2479f$1dbf6590$8102a8c0@000347D72515">news:002e01c2479f$1dbf6590$8102a8c0@0003
How do you write files so that theyre chmoded 777 by default. the folders
theyre written to are 0777 but the files aren't. so i cant delete or modify
the files through PHP, i have to first chmod them with FTP, which takes
ages.
--
Regards,
Georgie Casey
[EMAIL PROT
before on my host, i could make directories and write files in PHP. now i
cant. my host removed frontpage extensions in the meantime, could they be
what allow me?
or do they have nothing to do with it
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http
is there any way to make variables NOT case sensitive??
A partner is posting information to one of my PHP scripts and cant gurantee
that variables passed will be lowercase
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
L PROTECTED]">news:[EMAIL PROTECTED]...
> Georgie Casey wrote:
> >
> > is there any way to make variables NOT case sensitive??
> > A partner is posting information to one of my PHP scripts and cant
gurantee
> > that variables passed will be lowercase
>
> Su
thinking one of these could be to blame. So my question is, does PHP
return this error when some loops aren;t closed??
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mai
In HTML, you can do this:
http://localhost/top_stuff.php?affiliate=1";>
But the script isn't executed before being used by the browser, it's
returned with PHP tags and all, which obviously gives JS errors. Is there
any setting you can change in Apache that let's you do this.
--
PHP Genera
The Javascript has to be called from other servers, some who might not even
support PHP. And yeah, when you actually visit the URL, it displays perfect
JavaScript
Thanks anyway
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTE
Solved the problem.
In case anyones wondering,
I had the PHP script starting with a and ending with when
I already had that done in the HTML page.
Simple
"Georgie Casey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> In HTML,
Can you fake IP addresses and referer addresses with the PHP header command.
I want to contact a remote php script and not have my page as the referer or
ip address. Is this possible with sockets or even just fopen()?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http
How do i setup safe mode scripting (each script has a different uid) on my
win32, apache, php setup? my plesk host has to use it and i want to be able
to test my scripts on my own computer.
i set "safe mode = On" in my php.ini file but the script still lets me
include a file, whereas the script o
How do i setup safe mode scripting (each script has a different uid) on my
win32, apache, php setup? my plesk host has to use it and i want to be able
to test my scripts on my own computer.
i set "safe mode = On" in my php.ini file but the script still lets me
include a file, whereas the script o
Does anyone know how to upload a file through PHP through the HTT interface.
I use fopen() to open remote php scripts using the GET method for non-file
uploads but it doesnt work with HTTP POST or file uploads.
Does anyone have any ideas?
--
Regards,
Georgie Casey
[EMAIL PROTECTED
dont
know of? or does the 2 queries not mka emuch of a difference
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Rite,
There's a PHP script that takes a monochrome BMP and converts it into some
sort of hex code and I've noticed some patterns with this code. This image
is 72 pixels wide by 14 high so there's 1008 pixels. In the code returned,
theres 252 chars, which is 1008 divided by 4.
So I guessed the im
OK, i thought I found my solution but...
How come if I convert from "1000" from Binary to Hex in calculator, it
returns 8, but when I use the PHP bin2hex function, it returns loads of 3s
and 0s
"Georgie Casey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECT
OK, I've a page for my users to sign up on my website and in the form,
there's a few checkboxes fields. So I set the name of the check boxes as
name[] and PHP made an array of all the options choosen. All the check boxes
values are numbers, so I got all the numbers from the array, put a comma
betw
fread" but that just printed "" to the static
page instead of replacing it with the value.
Any suggestions?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's Online Film Production Directory
***
--
returns the parsed PHP.
> Sounds like what you're looking for. (I.e. storing PHP code in a database,
> right?)
>
> J
>
>
>
> Georgie Casey wrote:
>
> > I want to extract information from a database table and create a
> > half-static, half-dynamic PHP page fr
then cancel that
query and query again with a "LIMIT" tag on the end to display the first 10
results. Is there a more efficient way of doing what I'm trying to do?
I coded it myself so its probably poor, design-wise. Am I going about it the
right way?
--
Regards,
Georgie Ca
the user page hits, use a text file; then use
> grep/awk/sed/perl/php to search for specific users with their page hits,
> etc.
>
> Define your requirements more explicitly, then choose a solution.
>
> -Original Message-
> From: Matthew Walker [mailto:[EMAIL PROTEC
illions of rows and very complex relational
> structures.
>
> -Original Message-
> From: Georgie Casey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 11:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] A MYSQL COUNTER
>
>
> whenever they're is
Rite, a user logs in at http://localhost/employers/login.php and PHP sets a
cookie, eusername, that has his username, funnily enough.
then he clicks on to the /employers/search.php, submits his query and clicks
on the page of http://localhost/freelancers/some_guy/index.php
When I have a bit of P
email me if you dont understand something about my question. I read it back
to myself, and it all sounds so complicated!
TIA
"Georgie Casey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Rite, a user logs in at http://localhost/
How do I configure my Win98 Apache/MySQL/PHP test server to be able to show
me WAP pages. I followed a tutorial on PHPBuilder but when I test pages with
my WAP emulator, it returns a "empty page" error.
Does anyone know any other web links for configuring to WAP, especially for
WIN32
--
PHP G
Rite, when you see a web form, you know you can simulate the submit by
filling in the values in the address field, just like a GET method, and it
usually works the exact same. But how do you do it when one of the fields in
the form is a file upload?!?!?!
For the record, its a GIF file you've to u
ge
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $im = createfrombmp("image");
> print "";
> print "";
> ?>
> you get the idea
>
> I think PHP does have other funtions for file uplading though.
>
> "Georgie Casey" <[EMA
understand the format.
>
> You need to use createfrombmp() not createfromwbmp()
>
>
> "Georgie Casey" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > i'm getting an error message saying my BMP file i'm t
the code on the form page, when i submit i'm told the $wordcv is a null.
WHY??
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's Online Film Production Directory
***
--
PHP General Mailing List (http://www
The date() function is returning the 19th of Januray 2038 as *ALL* dates no
matter what timestamp i feed it! whats goin on??
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's Online Film Production Dire
L PROTECTED]> wrote in message
077b01c1c0aa$7531dd20$c200a8c0@jrbrown...">news:077b01c1c0aa$7531dd20$c200a8c0@jrbrown...;
> Hi Georgie,
>
> > The date() function is returning the 19th of Januray 2038 as *ALL*
> dates no
> > matter what timestamp i feed it! whats goin on??
I'm getting loads of "undefined variable" errors with this script. any1 know
why?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
page.
But I'm still getting loads of these errors. The script is unusable because
of all the errors. Does anyone know what the problem is? Could it be
something to do with magic_quotes or something??
TIA
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind
no, registerglobals has nothing to do with it
"Dl Neil" <[EMAIL PROTECTED]> wrote in message
158e01c1c2fc$57b0db80$c200a8c0@jrbrown...">news:158e01c1c2fc$57b0db80$c200a8c0@jrbrown...;
> Georgie,
>
> > I'm getting loads of "undefined variable
oes anyone know a way round this?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's Online Film Production Directory
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
do you have to delete cookies on the same level (directory) you created
them? coz mine dont seem to be deleting
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's Online Film Production Directory
***
--
to to sort the results for a
> given criteria ..
>
> Gurhan
>
>
> -Original Message-
> From: Georgie Casey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 13, 2002 2:00 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-DB] Random Selecting from my
fix ure clock!!
"Erik Price" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Saturday, March 13, 2010, at 10:15 PM, Jennifer Downey wrote:
>
> > I am no DHTML expert and don't even know the language also didn't know
> > where
> > to post this. But after to
Hi,
On my site now, there's a lengthy register process where the user has to
fill in 5 forms, one after the another. I get the PHP script to echo the
values from the previous into the next form by using
";
?>
for example. Then I keep carrying the information over to each extra form
until the user
then get the program to open
this text file and yes, i closed the file before trying to exec the program
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing List
pear is automatically installed with php4 but i cant seem to find
it.
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
dont have to ask
the admin to do anyhting for me?
"Martin Jansen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Wed, 3 Apr 2002 20:12:46 +0100, Georgie Casey wrote:
>
> >The sites documentation is crap compared to PHP.
>
> I love to hear people c
using.
can any1 shed some light?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Would it be hard? Like, is it a lot of work for them and/or a security risk?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing List (http://www.php.net/)
To
t be viewed in the
source HTML
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
%3A+%0A45746",
"r") - Bad file descriptor
Warning: Supplied argument is not a valid File-Handle resource in
it works fine when testing on my win32 apache with php
WHY AM I GETTING AN ERROR?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.film
I want users to be able to select files from a folder and then a php script
would wrap em up in a tar file. Can zlib funtions do this?
the files are small gifs, if that helps
tia
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Ireland's O
I have a table set as auto_update for the primary ID field, but sometimes
the PHP script adds fields which don't fill up all of the ID numbers, as I
delete a few records manually. is there any way to ensure all primary id
field nos. are filled up
is this a potential problem
--
Regards,
Ge
61 matches
Mail list logo