Can I just ask what the difference is between ereg and preg_replace? Thanks.
Tryst
-Original Message-
From: Elizabeth M Smith <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Fri, 8 Feb 2008 14:26
Subject: Re: [PHP-WIN] string function
Viola Holownia wrote:
> hi
Should you also just that there are no blank spaces before the includes
statements in the script? Because the moment there is data (or blank spaces) in
a script then the headers are sent.
Thanks
Tryst
-Original Message-
From: Bill Bolte <[EMAIL PROTECTED]>
To: php-windows@lis
You basically need to find an SMS provider. They will then have a mechanism in
which you send them details (account username and password, recipient, text
etc). You could send this via a URL or through form submission.
But yeah, find a provider, check out their documentation and go from there.
Hi,
see if this webpage helps you...
http://www.php.net/manual/en/install.windows.manual.php
Tryst
-Original Message-
From: rjdani <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Mon, 15 Oct 2007 8.35pm
Subject: [PHP-WIN] PHP Install problems
I'm trying to wo
Look to use window.parent.location.href, and window.parent.location.search
(this gets the query string).
Assuming the frame is same within the main frame like an IFrame.
Tryst
-Original Message-
From: Gustav Wiberg <[EMAIL PROTECTED]>
To: 'GP' <[EMAIL PROTECTED]>; 'php-windows
I thought accessing files/directories above the www-root via the web was
impossible???
Tryst
-Original Message-
From: George Pitcher <[EMAIL PROTECTED]>
To: Gustav Wiberg <[EMAIL PROTECTED]>; php-windows@lists.php.net
Sent: Tue, 4 Sep 2007 12.04pm
Subject: RE: [PHP-WIN] open/do
Funny you should ask this.
We just had a bad experience of this on our live server where previous
developers had coded each logged in user to store a DataTable (using .NET)
object into a session. The DataTable object was a couple of hundred KiloBytes
and the session life was set to 1 hour. T
Yeah, thats the best way, to use a constant as you will only need to change it
in one place if the location of the images need to change in the future. Also,
I would'nt hard code your domain into the location path of the images as they
won't work locally for testing (localhost). You probs best
The best way I solved a problem like this was to set the CHMOD settings on the
relevant folders in my FTP app (SmartFTP).
Tryst
-Original Message-
From: [EMAIL PROTECTED]
To: php-windows@lists.php.net
Sent: Thu, 22 Feb 2007 2.04PM
Subject: [PHP-WIN] Rights to delete?
Hell
This may also be of use to you...
http://www.php.net/manual/en/install.windows.manual.php
Somewhere on there it states the directories in which PHP looks for the
php.ini file (one of which is in the Apache root, so you may have a file there
that is causing issues).
Tryst
-Orig
There is a small free app you can download called ExamDiff that allows you to
compare two files. This may be off use to you?
Tryst
-Original Message-
From: [EMAIL PROTECTED]
To: php-windows@lists.php.net
CC: [EMAIL PROTECTED]
Sent: Thu, 11 Jan 2007 3.45PM
Subject: Re: [PHP-W
Hi Stefan,
thats probably it :) Will give it a try when I get home.
Tryst
-Original Message-
From: [EMAIL PROTECTED]
To: php-windows@lists.php.net
Sent: Thu, 4 Jan 2007 2.30PM
Subject: Re: [PHP-WIN] php5
Hi Trystan!
> Recently I had to perform a fix, so got the fil
I have the scenario where on my local PC I have PHP 5.0, but on the web
hosting server where my clients sites are held they have PHP 4.3.* (its version
4.*.*, I know that for sure).
Recently I had to perform a fix, so got the files off the server, and then
loaded them up on my local PC (run
Can you locate the included file via absolute path? I.E.
"/folder2/someclass.php"
Tryst
-Original Message-
From: [EMAIL PROTECTED]
To: php-windows@lists.php.net
Sent: Sat, 16 Dec 2006 9.53PM
Subject: [PHP-WIN] windows path problem: failed to open stream: No such file
or dir
Yes, you can run them at the same time, but like you say, they need to be on
different ports. I have Apache running on port 8080 (localhost:8080).
Tryst
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
php-windows@lists.p
So how exactly would this work? Would you have to put to php.ini files in the
same directory or something (obviously with different names)...
Tryst
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; php-windows@lists.php.net
Sent: Thu, 17 Aug 2006 7.23AM
Subje
Thats mean to be
localhost:
yeah?
Tryst
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; php-windows@lists.php.net
Sent: Fri, 11 Aug 2006 5.44AM
Subject: Re: [PHP-WIN] Localhost does not work
To get mine working, I had to use 'localhost,', wh
You're gonna have to provide a little more information than that :)
-Original Message-
From: [EMAIL PROTECTED]
To: php-windows@lists.php.net
Sent: Wed, 26 Jul 2006 1.30AM
Subject: [PHP-WIN] Another error:
The directory name is invalid.
--
PHP Windows Mailing List (http://w
You need to re-place the relevant mysql related .dll's don't you? I can't
remembr the name of iy/them off the top of my head, but if you search for a
tutorial on PHP MySQL you will be told.
Tryst
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; php-windows@lis
What is your connection string?
Tryst
-Original Message-
From: Dale D. Attree <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Mon, 19 Jun 2006 14:32:37 +0200
Subject: [PHP-WIN] PHP and SQL Server 2005
If anyone can help, please do.
Warning: mssql_connect() [function.mssql-co
Checkout the link below to see the order in which PHP looks for the
configuration file.
http://www.php.net/manual/en/configuration.php#configuration.file
Then, as someone suggested, search you HD for php.ini.
I remember I had this problem before and got in aright knot as I wanted
php5, and 4.
Yeah, me too! Textpad all the way. I also use for C#.
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thats useful.
Thanks for the nice function! :)
Tryst
-Original Message-
From: George Cherian <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: php-windows@lists.php.net
Sent: Sun, 5 Mar 2006 19:58:32 +0530
Subject: [PHP-WIN] Re: Fsockopen with ssl takes 8.4 seconds to return
on Windows
Hi George, thanks for informing us of this info.
Can I ask how managed to get these times of executing the fsockopen functions?
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You need to set the correct permissions on the folder inwhich you want to
upload the files into.
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maybe its something to do with who the system is trying to run the
command under?
I remember someone having problems try run WinZip through the exec()
command and it was down to what the service was being run under.
Tryst
-Original Message-
From: El Bekko <[EMAIL PROTECTED]>
To: php
Glad you solved it!
And thanks for letting us know what your solution was...good tip.
Tryst
-Original Message-
From: Chuck Anderson <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Fri, 02 Dec 2005 18:45:38 -0700
Subject: [PHP-WIN] Re: Exec problem (using Winzip - command line)
>Just enable Windows NTLM authentication in the PHP pages and use >PHP call
>GetEnv("LOGON_USER");
How exactly would you enable Windows NTLM Authentication in PHP pages?
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try the following...
";
else
echo "";
?>
... you just need to come out of the string and back into PHP code. You can do
it within the string but I prefer to separate my PHP from strings so that I
know where the logic is.
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsu
Are you getting anything in your Apache Error/Event logs?
Tryst
-Original Message-
From: Chuck Anderson <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Mon, 14 Nov 2005 16:31:57 -0700
Subject: [PHP-WIN] Exec problem (using Winzip - command line)
I wrote a script to backup my T
Maybe what your using to send data is not actually sending data. Can
you show us what your using to send data, please?
Thanks
Tryst
-Original Message-
From: kumar kumar <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Sat, 5 Nov 2005 04:41:43 -0800 (PST)
Subject: [PHP-WIN] file
Wow! This is pretty cool!
So if we were to use it, how exactly would we tie it in with our own php.ini
files?
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'd say not to both with serialize. Your just adding extra work when
there is no need to.
It is possible to pass Objects across Sessions. I do it on my
E-Commerce site by using a Shopping Cart object (it even says so on
php.net!). Are you sure there is nothing wrong in the Class (that it is
s
Also, try using print mysql_error(); after running the query. This will spit
out any error thats have occurred.
Thanks
Tryst
Sitepoint have got a good collection of PHP books that cover the OO
side things.
Tryst
-Original Message-
From: Jason Barnett <[EMAIL PROTECTED]>
To: php-windows@lists.php.net
Sent: Tue, 15 Mar 2005 11:03:02 -0500
Subject: [PHP-WIN] Re: recommending a PHP book?
Danny Lin wrote:
Can any o
Firstly, before evening uploading a file, you should check to see whether a
file has been selected (there is a filename in the textbox) - use JavaScript
for this. Then secondly, you should always perform some logic before actually
attempting the upload such as checking to see that it has a file
I think this was one of the main problems that came about when PHP used to be
shipped with register_globals set to OFF (as well as security measures). With
PHP register_globals set to ON, you are not allowed, or are not supposed to,
have local variables and $SESSION, $POST, $GET etc with the sam
try, session_unset('session_var_name'),
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Check this threrad out on Sitepoint forums. It doesn't exactly specify an exact
way of doing things, but more so is a strong debate amoungst professional what
they seem the best approach is...because after all, there is no 'CORRECT' way
of it :)
http://www.sitepoint.com/forums/showthread.php?t=
There is a good forum section at www.sitepoint.com/forums
Thanks
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>if (preg_match("/[a-z0-9]+/i"),$str)
So what denotes the end of the reg ex here? (if the '/' at the begin
identifies the start?
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
increase the amount of the times you are looping by one.
If you use a FOR loop and loop through the array by its length + 1
Tryst
Hi all,
How do I possibly call a function from with a Heredoc variable? I have tried
everyway possible, but to no avail :(
I states in the documentation that you should be able to call a function
through the following syntax...
{ function_call() }
... but this doesn't seem to work.
Tr
Can I actually look behind the scenes to see how LiveUser actually implements this?
Also, if I were to use LiveUser, would I be able to bolt it onto my online Application?
Sorry can you send me the link again, I seem to have accidentally deleted yopur
previous email.
Thanks
Tryst
--
PHP Wind
I meant be implemeting the User Access priviledges into the database, so then the code
being used will extract that this data for certain users and execute whats necessary.
For example...
CREATE TABLE User (
ID int not null
, Name varchar(30) not null
, PRIMARY KEY (ID)
);
CREATE TABLE Access
Am I correcting thinking that, when you use the mail() function on the hosting server,
the server will automatically pick up the SMTP server (i assume a hosting server will
already have the SMTP-Server value in the php.ini file, which we do not have access
to).
But if testing on a local server,
Hi all,
I am encountered with what seems a potentially difficult system to
implement. I need to implement a user level access control system. The application I
will create is a consultancy application, with various user categories, where
each user category will have access rights to a part
What exactly is your problem?
Cheers
Tryst
Exactly what extension's do I use to generate PDF documents in PHP 4.2.3?
Thanks
Tryst
There is obviously an error with you Apache configuration as the server is
not recognising the file type, and thus is trying to download it.
Have you inserted the Mime-type in the Apache httpd config file?
Tryst
try not to use the '\' as this is an escape character. Try using '/' and see what
happends.
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Here it is. Its the one you took the piss out of comments.
Hi all,
>
> I have a problem in that when I am retrieving data from MySQL that containes
> double quotes, the double quotes gets repeat, and also the string that does
> contain double quotes gets double quotes added to the begin and end
Then were is the solution to my Data retrieval problem! :)
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I take it you are referring to Paging?
Tryst
Sitepoint.com have a very nice tutorial/article on this.
I also have another tutorial URL in my house, so will have to post that link when I
get home.
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
>
> I have a problem in that when I am retrieving data from MySQL that
containes
> double quotes, the double quotes gets repeat, and also the string that does
> contain double quotes gets double quotes added to the begin and end of it
For
> example I get the following:
>
> "16"" Man
There are date functions that should allow you to manipulate and work with
date's and their corresponding attributes. Check them out.
For example, if you pass a date as a parameter to the 'mktime()' function you
will get returned an integer value that represents the amount of seconds
passed sin
Hi all,
I have a problem in that when I am retrieving data from MySQL that containes
double quotes, the double quotes gets repeat, and also the string that does
contain double quotes gets double quotes added to the begin and end of it For
example I get the following:
"16"" Manikin"
>From what
Check out my thread on a similar issue...
http://www.sitepoint.com/forums/showthread.php?t=158703
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Are you trying to create a breadcrumb trial?
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have an entry in your MySQL databases that states a/the users level (admin, user etc).
Then when they attempt to login check against this value against their
username/password credentials and then determine the logic yourself.
You could even have a dropdown box populate with the types of admin/u
If I was to save an excel file as CSV file, would the file then just contain a list of
values (the excel cell values) delimited by commas? No column headings(assuming Excel
allows column headings).
Cheers
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
If you a beginner, then the online manual might not be a good start. I still
find the maual quite complex (must just be me :s). Got to HotScripts.com, theu
have some tasty scrripts there, with some actual hands on implementations of
PHP and MySQL.
Tryst
I know. This has been going on since this morning. Iwas amusing then, but now it is
the end of the day, so lets chill a bit.
Peace
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can I just point out that, being a student myself it is sometimes t time
consuming to wad through loads of books etc to find a problem, so posting a
question to the knowledgable ones is sometimes a better option, and much
quicker.
At the end of the day, we will learn the problem via both so
Could you explain that query a little more please?
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I'm having a problem with my scripts in that I'm having the follwoing error
message when I try to include a file into a script...
Warning: Failed opening 'C:\Program Files\Apache Group\Apache\htdocs\mymarket
emplates\header.php' for inclusion (include_path='.;c:\php4\pear') in
C:\Progr
Ok, thanks.
Is that because on the hosting server that I transfer my scripts to, they have their
own PHP.ini file that relates to all scripts that are run on that server?
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just out of curiosity, if I was to work with register_globals set to on (on
my home/testing/devel server), and then transfer my scripts across to a hosting
server for them to be run live, will my scripts run if the PHP.ini file is
configured to have register_globals set to off?
Tryst
--
PHP W
Hi all,
I am carrying out a PHP/MySQL tutorial and for some reason the PHP page I
require (index.php) doesnt load into my browser. The browser window just displays
nothing. I assume the page is being located as no error message is being
reported.
Index.php uses some include files to execute so
Sorry if this is a double post for some of you, but I sent this email earlier
today and had a strange email in a foreign language which seems like an email
blocker. If any of you have received this email today, please delete it.
Hi all,
I am a newbie to OO programming in PHP, and am having a fe
Hi all,
I am a newbie to OO programming in PHP, and am having a few teething problems
with the extends keyword (inheritance). I think that the following code
doesn't work because the 'Another' class doesn't extend the 'Something' class (I
have created it, but is not in this sample code). The se
Right then, i've just finished having a heated debate with an AOL technician
and he says I am unable to send emails with PHP via the SMTP of my ISP (which
is AOL). I dont think the technician fully understands what I am trying to do,
but i'm also a little confused over the subject.
If AOL is my
Hi all, I've been using PHP over the last year now, and have become quite
capable with the language, but, there is one function/feature that I have yet to
try/use, and that is the mail() function.
I am gonna start to learn it to night, but was wondering if there was any
adjustments that were ne
Uhm, reffering to my post yesterday about IE try to open my PHP document as an XML
docuemnt I think I have located the problem.
If I don't make the PHP document XHTML compliant, then the PHP document loads into IE
ok. If I make the PHP document XHTML compliant, and build up a query string using
When ever I try to load my PHP document in IE I get the following error
message...
XML page cannot be displayed. Cannot view XML input using style sheet.
Invalid at the top level of the document. Error processing resource
'http://localhost/Sessions/login.php'. Line 1, Position 1
...and then it
This is the some of the code that is contained within the PHP page...
more HTML & PHP etc...
?>
More HTML etc...
When the submit button is pressed the nothing happens.
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, I have a login HTML form within a PHP page that I want to call itself
when submitted. But when I press the submit button within the form, the form
doesn't load itself for some reason. I have tried two ways of solving this
but can't get it to work. It would be great if someone could identify
Hi, all, i'm relatively new to PHP, but am creating a website that has a
login screen as the first page within a website, and once a user has
authenticated themselves gain access to the remainder of the website to
perform actions specific to their details. (e.g. i'm creating an online
dental su
Hi, where can I locate a cookie that I set through my PHP script. I use the
following line:
setcookie("username", $name, time()1209600);
...with the $name variable being "Tryst" for example. I've search my Computer
(Windows XP) and can't find the cookie. I've seached for the word "Username"
an
Can anyone help.
I can't seem to access/run any of my programs from the start menu. I can run
a program such as Microsoft Word when I open a file associated with it, but I
can't get a program to run from the start men u options. I think I might have
a virus, 'cause I can access any system sett
Hi, all, i'm going to upgrade my OS from XP home to XP Pro. Now at the mo i'm
running Apache, PHP, and MySQL. If I perform the upgrade, will everything
still run as normal?
Has anybody been in a situation like this before?
Tryst
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe
82 matches
Mail list logo