| Subcribe via RSS


[function.move-uploaded-file]: failed to open stream: Permission denied

February 24th, 2008 | 1 Comment | Posted in php by dreamluverz




[function.move-uploaded-file]: failed to open stream: Permission denied

Encountered this error. I’ve checked the path, permission it’s all correct. Then I tried changing the permission of the folder on where to move the files to 777… problem solved. Thanks God! :)

Tags: , ,

I wish one day…

February 24th, 2008 | No Comments | Posted in Poetry & Art by denigmaz




I wish one day…

I wish one day it’ll be over
I wish one day to see the sun shines before me
I wish one day to breath fresh air
I wish one day it’ll be a good tomorrow

I wish one day to see the smile on my face
I wish one day to take the pain inside me
I wish one day to feel how it’s good to be happy
I wish one day…

~denigmaz~

Tags: ,

dying rose

February 24th, 2008 | No Comments | Posted in Poetry & Art by denigmaz

DYING ROSE

From the day this flow’r started to bloom
it’s beauty captured your sight
it’s scent tickles your senses
Oh how lovely it is
so young and full of beauty

Yet as time passed by
it slowly started to die
from the beautiful red rose as it was
the petals became dark as the night

It longs for sunshine
It longs for water
It lost it’s beauty
It lost it’s scent

Now it’s a dying rose
that ccould be lost forever

~denigmaz~

Tags: , ,

SET ME FREE

February 24th, 2008 | No Comments | Posted in Poetry & Art by denigmaz

SET ME FREE

If you still care for me then hold me
If you still love me then hold me tightly
But if you love me no more
then let me go so I could be free

It may be difficult, it may be painful
But it’s harder staying when it’s no more

Take away all my love,Take away all my pain
Take away all my sorrow so I will be sane.

Don’t hold me tighter if you don’t want it to
Don’t pull me closer if you’ll just hurt me
So let me go and set me free
Even I know it’s hard for you and me.

~denigmaz~

Tags: ,

IT HURTS YET IT FEELS SO GOOD

February 24th, 2008 | No Comments | Posted in Poetry & Art by denigmaz

IT HURTS YET IT FEELS SO GOOD

Being always sad will make you used to it
Being always in pain will make you feel it’s good
Being always in tears will make you crave for more

Oh how it feels so bad and yet it feels so good
Oh how it makes you lonely and yet it makes you happy
Oh how it kills you deeply and yet it makes you strong

Being always sad not only makes you mad
Oh it also makes you long for it
Being always in pain not only makes you insane
Oh it makes your life to keep going.

~denigmaz~

Tags: , ,

select box - things you can do with selectbox

February 23rd, 2008 | No Comments | Posted in html by dreamluverz

At one point, I wanted to modify things on selectbox, like make some of it’s options inactive, modifying the different styles on the select options and so on. Luckily I found this site http://www.cult-f.net/2007/12/14/elselect/ on how to do it.

For instance I got a select box with options Yes, No, Maybe and wanted to disable Yes. You can do it like this

<select name=”sel”>
<option value=’yes’ disabled>Yes</option>
<option value=’no’ class=”cls1″>No</option>
<option value=’maybe’  class=”cls2″>maybe</option>
</select>

Tags: ,

gallery2 plugin for wordpress

February 23rd, 2008 | No Comments | Posted in wordpress by dreamluverz

Error: Options not available until WPG2 Plugin is Validated.

I’m getting this error and lots of different errors when activating the gallery2 plugin in wordpress. I got path error and so on. First of after installing wpg2 and activated it on plugins, when I go to wpg2 section on admin it lists several error messages. It’s looking for embed.php and realized I got a wrong path for the gallery2. But still I got an error options not avaialable until wpg2 is validated. Later I realized I just extracted the file for gallery2 but not installed it. hehehe. so installed it have the right path and all errors was gone:)

Tags: , , ,

Virtual Class — cannot instantiate

February 23rd, 2008 | No Comments | Posted in php by dreamluverz

I’m getting this error Virtual Class — cannot instantiate within nested class/functions. I checked the class reported by the error and instead of using extended class when using other class inside that specific class, I used class::function, it solved problem.

Tags: , , ,

[function.getimagesize]:could not make seekable

February 21st, 2008 | No Comments | Posted in php by dreamluverz

I’m getting this error using the function getimagesize: [function.getimagesize]:could not make seekable

I’ve checked the path it’s right, checked if the image existed. It was. I took a closer look on the details of getimagesize on php manual for the accepted file types and it says jpg file type and mine was jpeg. MOdified it using photoshop to jpg file type and it solved my prob :)

Tags: , , , ,

install apache as a service

February 15th, 2008 | No Comments | Posted in apache by dreamluverz

Running Apache as a Service

Apache can be run as a service on Windows NT. There is some highly experimental support for similar behavior on Windows 9x.

You can install Apache as a service automatically during the installation. If you chose to install for all users, the installation will create an Apache service for you. If you specify to install for yourself only, you can manually register Apache as a service after the installation. You have to be a member of the Administrators group for the service installation to succeed.

Apache comes with a utility called the Apache Service Monitor. With it you can see and manage the state of all installed Apache services on any machine on your network. To be able to manage an Apache service with the monitor, you have to first install the service (either automatically via the installation or manually).

You can install Apache as a Windows NT service as follows from the command prompt at the Apache bin subdirectory:

httpd -k install

If you need to specify the name of the service you want to install, use the following command. You have to do this if you have several different service installations of Apache on your computer.

httpd -k install -n "MyServiceName"

If you need to have specifically named configuration files for different services, you must use this:

httpd -k install -n "MyServiceName" -f "c:\files\my.conf"

If you use the first command without any special parameters except -k install, the service will be called Apache2 and the configuration will be assumed to be conf\httpd.conf.

Removing an Apache service is easy. Just use:

httpd -k uninstall

The specific Apache service to be uninstalled can be specified by using:

httpd -k uninstall -n "MyServiceName"

Normal starting, restarting and shutting down of an Apache service is usually done via the Apache Service Monitor, by using commands like NET START Apache2 and NET STOP Apache2 or via normal Windows service management. Before starting Apache as a service by any means, you should test the service’s configuration file by using:

httpd -n "MyServiceName" -t

You can control an Apache service by its command line switches, too. To start an installed Apache service you’ll use this:

httpd -k start

To stop an Apache service via the command line switches, use this:

httpd -k stop

or

httpd -k shutdown

You can also restart a running service and force it to reread its configuration file by using:

httpd -k restart

By default, all Apache services are registered to run as the system user (the LocalSystem account). The LocalSystem account has no privileges to your network via any Windows-secured mechanism, including the file system, named pipes, DCOM, or secure RPC. It has, however, wide privileges locally.

Never grant any network privileges to the LocalSystem account! If you need Apache to be able to access network resources, create a separate account for Apache as noted below.

You may want to create a separate account for running Apache service(s). Especially, if you have to access network resources via Apache, this is strongly recommended.

  1. Create a normal domain user account, and be sure to memorize its password.
  2. Grant the newly-created user a privilege of Log on as a service and Act as part of the operating system. On Windows NT 4.0 these privileges are granted via User Manager for Domains, but on Windows 2000 and XP you probably want to use Group Policy for propagating these settings. You can also manually set these via the Local Security Policy MMC snap-in.
  3. Confirm that the created account is a member of the Users group.
  4. Grant the account read and execute (RX) rights to all document and script folders (htdocs and cgi-bin for example).
  5. Grant the account change (RWXD) rights to the Apache logs directory.
  6. Grant the account read and execute (RX) rights to the Apache.exe binary executable.
It is usually a good practice to grant the user the Apache service runs as read and execute (RX) access to the whole Apache2 directory, except the logs subdirectory, where the user has to have at least change (RWXD) rights.

If you allow the account to log in as a user and as a service, then you can log on with that account and test that the account has the privileges to execute the scripts, read the web pages, and that you can start Apache in a console window. If this works, and you have followed the steps above, Apache should execute as a service with no problems.

Error code 2186 is a good indication that you need to review the “Log On As” configuration for the service, since Apache cannot access a required network resource. Also, pay close attention to the privileges of the user Apache is configured to run as.

When starting Apache as a service you may encounter an error message from the Windows Service Control Manager. For example, if you try to start Apache by using the Services applet in the Windows Control Panel, you may get the following message:

Could not start the Apache2 service on \\COMPUTER
Error 1067; The process terminated unexpectedly.

You will get this generic error if there is any problem with starting the Apache service. In order to see what is really causing the problem you should follow the instructions for Running Apache for Windows from the Command Prompt.

There is some support for Apache on Windows 9x to behave in a similar manner as a service on Windows NT. It is highly experimental. It is not of production-class reliability, and its future is not guaranteed. It can be mostly regarded as a risky thing to play with - proceed with caution!

There are some differences between the two kinds of services you should be aware of:

  • Apache will attempt to start and if successful it will run in the background. If you run the command
    httpd -n "MyServiceName" -k start

    via a shortcut on your desktop, for example, then if the service starts successfully, a console window will flash up but it immediately disappears. If Apache detects any errors on startup such as incorrect entries in the httpd.conf configuration file, the console window will remain visible. This will display an error message which will be useful in tracking down the cause of the problem.

  • Windows 9x does not support NET START or NET STOP commands. You must control the Apache service on the command prompt via the -k switches.
  • Apache and Windows 9x offer no support for running Apache as a specific user with network privileges. In fact, Windows 9x offers no security on the local machine, either. This is the simple reason because of which the Apache Software Foundation never endorses use of a Windows 9x -based system as a public Apache server. The primitive support for Windows 9x exists only to assist the user in developing web content and learning the Apache server, and perhaps as an intranet server on a secured, private network.

Once you have confirmed that Apache runs correctly as a console application you can install, control and uninstall the pseudo-service with the same commands as on Windows NT. You can also use the Apache Service Monitor to manage Windows 9x pseudo-services.

source: http://httpd.apache.org/docs/2.0/platform/windows.html

Tags: , ,